start_continuous_worker
Launch a Claude Code worker that processes queued features sequentially in a loop, reducing startup overhead by reusing one worker across multiple tasks.
Instructions
Start a Claude Code worker that processes multiple features sequentially in a loop. The worker picks up new tasks from a queue, reducing startup overhead. Inspired by the infinite-loop pattern from 'Building a C compiler with parallel Claudes'.
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": {
"projectDir": "<projectDir>",
"featureId": "<featureId>"
},
"name": "start_continuous_worker"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxTasks | No | Maximum features before worker exits (default: 10) | |
| workerId | No | Worker identifier (default: auto-generated) | |
| featureId | Yes | First feature to work on | |
| projectDir | Yes | Absolute path to the project directory |