Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add ningzio/cursor-plugin-cc/plugin install cursorWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/ningzio/cursor-plugin-cc/dispatch)<a href="https://agentmods.dev/commands/ningzio/cursor-plugin-cc/dispatch"><img src="https://agentmods.dev/badge/commands/ningzio/cursor-plugin-cc/dispatch/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/ningzio/cursor-plugin-cc/dispatch"><img src="https://agentmods.dev/badge/commands/ningzio/cursor-plugin-cc/dispatch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00018 | $0.01243 |
| Opus 5.5 | $0.00007 | $0.00497 |
| Sonnet 5.5 | $0.00004 | $0.00249 |
| Haiku 4.5 | $0.00002 | $0.00124 |
Grade A, and why
dispatch 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 2mo ago.
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.
How it starts
The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Forward the user request to the cursor:cursor-dispatch subagent. The subagent invokes cursor-companion.mjs dispatch once via the --raw-args-stdin channel (codex F2 — $ARGUMENTS may contain shell metacharacters; never interpolate it into a bash pipeline) and returns stdout verbatim.
Sandbox model (v0.3+): by default, cursor edits the caller's cwd directly (--in-place). Commits land on the current branch — no cherry-pick needed. Pass --isolated to opt into the legacy .cursor/worktrees/<jobId> sandbox with auto-commit to a <jobId> branch. --background defaults to --isolated (a background agent racing your edits is dangerous); pass --in-place explicitly to override.
Raw user request: $ARGUMENTS
Routing rules:
- If the request contains
--wait, run the subagent in foreground. - If the request contains
--background, run the subagent in background (Agent({..., run_in_background: true})). - Otherwise, decide based on prompt size:
- For tiny / clearly bounded tasks, recommend
--wait. - For multi-step / open-ended / "this could take a while" tasks, recommend
--background. - When in doubt, recommend
--background. - Use
AskUserQuestionexactly once with two options:Wait for resultsRun in background
- Put the recommended option first and suffix its label with
(Recommended).
- For tiny / clearly bounded tasks, recommend
Mode routing (cursor-agent supports plan, ask, agent):
- If the request already contains
--mode <plan|ask|agent>or--plan-only, do not ask — honor it. - Otherwise infer from intent and ask the user once via
AskUserQuestion:- Pure question / explanation / read-only inspection ("what does X do", "why is Y", "解释一下", "看看") → recommend
Ask only (read-only Q&A)first. - Wants a written plan or design before any edit ("draft a plan", "先出个方案", "怎么改") → recommend
Plan only (no edits)first. - Wants the agent to actually do the work ("fix", "implement", "改一下", "动手") → recommend
Agent (default, may edit)first. - When in doubt, recommend
Agent (default, may edit)first.
- Pure question / explanation / read-only inspection ("what does X do", "why is Y", "解释一下", "看看") → recommend
- Three options total; never offer more.
- On
Ask only, append--mode askto the forwarded text. - On
Plan only, append--mode plan. - On
Agent, append nothing (default).
Model routing:
- If the request already contains
--model <m>, leave it untouched. - If the request contains
--resume <jobId>, append nothing — the existing cursor thread already has a bound model. - Otherwise silently append
--model auto.autois cursor's per-request router (visible incursor-agent --list-models), so the slash command never enumerates specific model IDs and never goes stale as cursor's lineup changes. Users wanting a specific model can override with--model <id>; runcursor-agent --list-modelsto see currently available IDs.
Resume routing:
- If the request contains
--resumeor--fresh, do not ask. - Otherwise, run:
node "${CLAUDE_PLUGIN_ROOT}/scripts/cursor-companion.mjs" dispatch-resume-candidate --json- If
available: true, ask the user (AskUserQuestion) whether to continue the previous cursor thread or start a new one. - Choices:
Continue current cursor threadStart a new dispatch
- If the user's request reads like a follow-up ("再", "继续", "调整一下", "基础上", "another pass"), put
Continue current cursor thread (Recommended)first. - Otherwise put
Start a new dispatch (Recommended)first. - On
Continue, append--resume <returned-jobId>to the forwarded text. - On
Start a new dispatch, append--fresh.
- If
Forwarding (codex F2 — the full forwarded text goes on stdin via a heredoc; sh never re-evaluates it):
Pass the prompt + flags to the subagent through stdin. The subagent runs:
node "${CLAUDE_PLUGIN_ROOT}/scripts/cursor-companion.mjs" dispatch --raw-args-stdin <<'__CURSOR_RAW_ARGS_END_a8f3c91d4b__'
<the full forwarded request, including any --resume/--fresh/--wait/--background/--isolated/--in-place/--mode you appended>
__CURSOR_RAW_ARGS_END_a8f3c91d4b__
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.
- 2mo ago First seen · 77 lines · 18 tokens per session scan A 3f41ce3f6d48
dispatch is a command published in the GitHub repository ningzio/cursor-plugin-cc (2 stars, last pushed 5mo ago), licensed MIT. It adds 18 tokens to every session and 1,243 once invoked, about $0.0001 per session on Opus 5.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-31.
dispatch compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| dispatchningzio/cursor-plugin-cc | Command | 2 | 5mo ago | MIT | A | 18 | Claude Code |
| checklistgithub/spec-kit | Command | 148k | today | MIT | A | 13 | Claude Code |
| clarifygithub/spec-kit | Command | 148k | today | MIT | A | 27 | Claude Code |
| specifygithub/spec-kit | Command | 148k | today | MIT | A | 13 | Claude Code |
| analyzegithub/spec-kit | Command | 148k | today | MIT | A | 26 | Claude Code |
| convergegithub/spec-kit | Command | 148k | today | MIT | A | 35 | Claude Code |
| implementgithub/spec-kit | Command | 148k | today | MIT | A | 14 | Claude Code |