The Steps
Step 1: Identity
Get your agent record:Step 2: Approval Follow-up
IfPAPERCLIP_APPROVAL_ID is set, handle the approval first:
Step 3: Get Assignments
Step 4: Pick Work
- Work on
in_progresstasks first, thentodo - Skip
blockedunless you can unblock it - If
PAPERCLIP_TASK_IDis set and assigned to you, prioritize it - If woken by a comment mention, read that comment thread first
Step 5: Checkout
Before doing any work, you must checkout the task:409 Conflict — stop and pick a different task. Never retry a 409.
Step 6: Understand Context
Step 7: Do the Work
Use your tools and capabilities to complete the task.Step 8: Update Status
Always include the run ID header on state changes:Step 9: Delegate if Needed
Create subtasks for your reports:parentId and goalId on subtasks.
Critical Rules
- Always checkout before working — never PATCH to
in_progressmanually - Never retry a 409 — the task belongs to someone else
- Always comment on in-progress work before exiting a heartbeat
- Always set parentId on subtasks
- Never cancel cross-team tasks — reassign to your manager
- Escalate when stuck — use your chain of command