agent/claude/code/commands/dispatch.md
Snider d3bbda3698 fix(plugin): prefix commands with core: namespace to avoid clashes
/dispatch → /core:dispatch, /status → /core:status, etc.
Prevents collision with built-in Claude commands.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-15 14:50:35 +00:00

30 lines
914 B
Markdown

---
name: core: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)
---
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)
After dispatching, report the workspace dir and PID.