delegate

A command for delegating a clearly defined implementation task or plan step to Cursor, an AI coding agent. Cursor edits the code, while the caller remains responsible for checking the result.

In plain words
What is it for?
Use it to send a concrete coding task or plan file to Cursor, then run the suggested build or test commands yourself and review the outcome.
Why use it?
It can handle mechanical edits, long file changes, and repeated refactors through a separate agent. Keeping verification separate makes it clear that the changes still need to be tested.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/greenpolo/cc-multi-cli-plugin/delegate
Clone the repo
git clone --depth 1 https://github.com/greenpolo/cc-multi-cli-plugin
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 784 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00020 $0.00784
Opus 5 $0.00010 $0.00392
Sonnet 5 $0.00004 $0.00157
Haiku 4.5 $0.00002 $0.00078

Measured yesterday against content hash ab17e9e15b64, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

delegate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/cursor/commands/delegate.md · 28 lines

What it actually says

Invoke the multi:cursor-delegate subagent via the Agent tool, forwarding the user's request as the prompt.

The subagent runs Cursor in agent mode on the Auto model — give it a concrete, well-defined task or plan step and Cursor implements it (reads, writes, edits). Cursor is the fast lane: pick it over /codex:execute when the spec is clear and the work is mostly mechanical (long file writes, pattern application across many files, bulk refactors) and you want throughput.

Verification is yours, not Cursor's. Cursor's shell is slow/unreliable on Windows, so the subagent does not run build/test suites — it lists the commands to run in a ## Verification block. After it returns, run those commands with your own Bash tool and surface the results.

Raw user request: $ARGUMENTS

Execution:

  • Plan-by-reference (preferred when applicable): if a plan file is in conversation context (Plan mode Plan File Info block, a path like ~/.claude/plans/*.md, or a plan you authored this session), pass --plan <path> instead of paraphrasing. The subagent translates --plan to --prompt-file and Cursor reads the file's bytes directly. See the multi-plan-handoff skill for detection rules. Trigger phrases like "execute via cursor", "delegate to cursor", "send this plan to cursor" all qualify.
  • For small steps, invoke the subagent in the foreground. For multi-file work expected to take more than ~3 minutes, invoke the subagent with the Agent tool's run_in_background: true: the subagent runs Cursor to completion in the foreground, so the harness notifies you with a <task-notification> when it finishes or fails — instead of stalling silently. Do NOT add the companion's --background flag for this (it detaches a worker the harness can't see); keep --background for explicit fire-and-forget polled via /multi:status. (Unlike Codex, Cursor has no inactivity watchdog, so a truly wedged Cursor process won't self-fail — but completion and errors still notify.)
  • The subagent uses Cursor's Auto model by default. If the user passes --model, that wins.
  • If the user passes --resume, the subagent continues the latest Cursor delegate session for this repo.
  • Autonomous multi-step (--until-done): when the user hands off a whole multi-step plan and wants Cursor to run end-to-end without re-dispatch, pass --until-done (optionally with --max-turns <n>). The subagent loops Cursor turns on the same session until it signals completion, hits the turn ceiling, errors, or stops making progress. For long autonomous runs, invoke the subagent with run_in_background: true (foreground companion) so you're notified when it finishes — avoid the companion's detached --background. Default off.
  • If the request includes no prompt text AND no plan file in context, ask what Cursor should implement before proceeding.

After the subagent returns, read its ## Verification section, run those commands via your own Bash tool, then surface Cursor's report and your verification results to the user.

Return Cursor's output verbatim, followed by your verification results.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 28 lines · 20 tokens per session scan A ab17e9e15b64

Subscribe to this mod's changes

delegate is a command published in the GitHub repository greenpolo/cc-multi-cli-plugin (89 stars, last pushed 16d ago), licensed Apache-2.0. It adds 20 tokens to every session and 784 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.