delegate-kimi
Delegate implementation tasks to Kimi in a sandboxed git worktree. Kimi runs autonomously, optionally looping on a test command. Use start, status, and collect to manage the task and review changes.
Instructions
Delegate an implementation task to Kimi in an isolated git worktree. Kimi runs autonomously (--yolo) on a fresh branch, optionally looping against a test command. Returns a taskId; later 'collect' to grab the diff. Safe: changes are sandboxed, caller reviews & applies.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | No | What Kimi should accomplish (required for action=start). | |
| model | No | ||
| action | No | start: spawn delegated task; status: check progress; collect: stop + return diff + cleanup option. | start |
| taskId | No | ||
| cleanup | No | On collect: also run `git worktree remove` after grabbing the diff. | |
| autoTest | No | Shell command Kimi should run after editing to validate (e.g., "npm test"). If passed, Kimi is told to loop until it passes. | |
| baseBranch | No | Branch/commit to base the worktree on (default: current HEAD of repo). | |
| branchName | No | Name for the new branch in the worktree. Default: kimi/<random>. | |
| workingDir | No | Repo root (default: resolved automatically). | |
| acceptanceCriteria | No | Bullet list of criteria the implementation must satisfy. | |
| maxRalphIterations | No | Extra autonomous iterations (Ralph mode). Default 5 (use -1 for unlimited). |