--- name: delegate description: Delegate bulk/repetitive tasks to Kilo Code or format task lists for parallel AI tool execution. Use when a task is too simple for Claude Opus but needs doing across many files. argument-hint: [task description for Kilo Code] allowed-tools: Bash, Read, Grep, Glob --- # /delegate — AI Tool Task Delegation Route tasks to the optimal AI tool based on complexity and scope. ## Delegation Matrix | Task Type | Route To | Why | |-----------|----------|-----| | Architecture, planning, complex reasoning | **Claude Code** (self) | Opus-level intelligence needed | | Bulk file edits, boilerplate, repetitive | **Kilo Code** | Cost-effective parallelism | | Inline completions while typing | **Copilot** | Fastest feedback loop | | Morning reports, Notion curation | **Gemini** (Archivist agent) | Large context + Notion | ## When invoked: ### 1. Analyze the task from $ARGUMENTS - Is it complex reasoning? → Do it yourself - Is it bulk/repetitive? → Format for Kilo Code - Is it completions/autocomplete? → Tell user to use Copilot ### 2. If routing to Kilo Code: Format a clear task specification: ``` TASK FOR KILO CODE: Files: [list specific files or glob pattern] Action: [exact operation per file] Constraints: [don't modify X, preserve Y] Verification: [how to check it worked] ``` Output this to the terminal so the user can paste it into Kilo Code's chat window in VS Code. ### 3. If routing to self: Just proceed with the task normally — no need to delegate. ### 4. After Kilo completes: If the user reports Kilo is done, run a verification pass: - Check the files Kilo modified - Verify the changes are correct - Flag any issues for manual review ## Kilo Code Reference - Extension: `\.vscode\extensions\kilocode.kilo-code-5.10.4\` - Task storage: `\AppData\Roaming\Code\User\globalStorage\kilocode.kilo-code\` - Kilo handles: Architecture mode, Coder mode, Debugger mode - Kilo supports MCP tools (can access same servers as Claude)