dispatch_task
Delegate bounded coding tasks to cheap or local execution workers in isolated Git worktrees; automatic scope checks and quality gates return a compressed review packet to save planner tokens.
Instructions
Dispatch a bounded coding task to a cheap/local execution worker (e.g. WorkBuddy) inside an isolated Git worktree. Automatically runs Scope Guard and gate commands before returning a compressed Review Packet to save planner tokens.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"repoPath": "<repoPath>",
"title": "<title>",
"prompt": "<prompt>",
"acceptanceCriteria": "<acceptanceCriteria>"
},
"name": "dispatch_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| async | No | If true, return immediately and poll via get_task_status (default: false). | |
| model | No | Optional model override passed to the worker. | |
| title | Yes | Short human-readable task title. | |
| prompt | Yes | Detailed implementation instructions for the worker. | |
| worker | No | Worker adapter name: "workbuddy" (default if detected), "openai-api", "generic-cli", or "mock". | |
| repoPath | Yes | Absolute path to the target Git repository root or subfolder. | |
| maxRounds | No | Circuit breaker max rounds before stopping rework retries (default: 3). | |
| timeoutMs | No | Per-round timeout in milliseconds (default: 300000). | |
| allowedPaths | No | Optional glob whitelist restricting editable files (e.g. ["src/auth/**", "tests/auth/**"]). Supports "!pattern" exclusions. | |
| gateCommands | No | Optional verification commands run automatically inside the worktree (e.g. ["npm run typecheck", "npm test"]). | |
| autoDetectGates | No | If true and gateCommands is omitted, auto-detect fast checks from package.json / go.mod / Cargo.toml / pytest (default: false unless enabled in .cortex-hands.json). | |
| maxTurnsPerRound | No | Max agentic turns per worker round (default: 15). | |
| acceptanceCriteria | Yes | Explicit checklist the worker and reviewer verify before merge. |