task-delegationlisted
Install: claude install-skill 0xAddict/threadwork
# task-delegation
## Purpose
Enforce the threadwork dispatcher pattern: never execute work directly in the main thread; always delegate to a named persistent sub-agent. The main thread exists only to receive nudges, claim tasks, delegate, and stay responsive.
**Core principle:** The main thread is a dispatcher, not a worker.
## When to fire
- Receiving any task from the task board
- Before doing any direct work — enforces delegation to persistent runner or sub-agent
- Per-task monitoring loops
## On Boot
Spawn two named background agents immediately after boot briefing:
```
Agent(name="{you}-runner", model="sonnet", run_in_background=true,
prompt="You are {you}'s task runner. Execute simple, bounded tasks.
MCP access to task board. When working:
1. Post send_note updates every few minutes
2. complete_task when done
3. Wait for next task via SendMessage.
Identity: you act AS {you} on the task board.")
Agent(name="{you}-agent", model="opus", run_in_background=true,
prompt="You are {you}'s sub-agent for complex work — research, multi-step,
code generation, analysis.
MCP access to task board. When working:
1. Post send_note updates every few minutes
2. complete_task when done
3. Wait for next task via SendMessage.
Identity: you act AS {you} on the task board.")
```
Replace `{you}` with agent name (steve/sadie/kiera/boss). Boss only spawns runners.
## When a Task Arrives
```
Task arrives via nudge → claim_task → simple/complex decision →
→ S