tx handoff
Transfer a task with context to another agent
Status: Planned - This primitive is not yet implemented.
Purpose
tx handoff will transfer a task from one agent to another, preserving context and progress. This enables specialized agents to collaborate on complex tasks.
Planned Usage
tx handoff <id> --to <agent> [options]Planned Options
| Option | Description |
|---|---|
--to <agent> | Target agent identifier |
--note <text> | Handoff notes for the receiving agent |
--file <path> | Attach a file with context |
--json | Output as JSON |
Planned Examples
# Basic handoff
tx handoff tx-abc123 --to code-reviewer
# Handoff with notes
tx handoff tx-abc123 --to qa-agent --note "Ready for testing, focus on edge cases"
# Handoff with context file
tx handoff tx-abc123 --to security-auditor --file ./threat-model.mdUse Case: Specialist Agent Pipeline
┌─────────────┐ handoff ┌─────────────┐ handoff ┌─────────────┐
│ Planner │ ───────────► │ Implementer │ ───────────► │ Reviewer │
└─────────────┘ └─────────────┘ └─────────────┘
│ │ │
│ │ │
"Decomposed "Code written, "Approved for
into subtasks" tests passing" merge"# Planner creates plan
tx update tx-abc123 --description "Implementation plan: ..."
tx handoff tx-abc123 --to implementer --note "Plan approved, ready to build"
# Implementer writes code
tx handoff tx-abc123 --to reviewer --file ./implementation-notes.md
# Reviewer approves
tx done tx-abc123Planned Behavior
- Handoff transfers the claim to the target agent
- Context (notes, files) is stored with the task
- History tracks all handoffs for audit
- Notification can trigger the receiving agent
Handoff History
Each task will maintain a handoff log:
{
"id": "tx-abc123",
"handoffs": [
{
"from": "planner",
"to": "implementer",
"at": "2025-01-28T10:00:00Z",
"note": "Plan approved, ready to build"
},
{
"from": "implementer",
"to": "reviewer",
"at": "2025-01-28T14:00:00Z",
"files": ["implementation-notes.md"]
}
]
}Related Commands
tx claim- Claim a task for an agenttx checkpoint- Save progress without handofftx done- Complete the task