agent/claude/code/commands/dispatch.md
Snider 03b77bd9db fix(plugin): drop core: prefix — commands use code: namespace from dir
Plugin commands derive namespace from directory (claude/code/) not
the name field. Commands now: /code:dispatch, /code:status, /code:recall,
/code:review, /code:sweep, /code:scan.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-15 16:51:40 +00:00

33 lines
1.1 KiB
Markdown

---
name: dispatch
description: Dispatch a subagent to work on a task in a sandboxed workspace
arguments:
- name: repo
description: Target repo (e.g. go-io, go-scm, mcp)
required: true
- name: task
description: What the agent should do
required: true
- name: agent
description: Agent type (claude, gemini, codex)
default: claude
- name: template
description: Prompt template (coding, conventions, security)
default: coding
- name: plan
description: Plan template (bug-fix, code-review, new-feature, refactor, feature-port)
- name: persona
description: Persona slug (e.g. engineering/engineering-backend-architect)
---
Dispatch a subagent to work on `$ARGUMENTS.repo` with task: `$ARGUMENTS.task`
Use the `mcp__core__agentic_dispatch` tool with:
- repo: $ARGUMENTS.repo
- task: $ARGUMENTS.task
- agent: $ARGUMENTS.agent
- template: $ARGUMENTS.template
- plan_template: $ARGUMENTS.plan (if provided)
- persona: $ARGUMENTS.persona (if provided)
After dispatching, report the workspace dir, PID, and whether it was queued or started immediately.