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, thenin_reviewwhen you were woken by a comment on it, 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. If the issue is actionable, take a concrete action in the same heartbeat. Do not stop at a plan unless the issue asked for planning. Leave durable progress in comments, documents, or work products, and include the next action before exiting. For parallel or long delegated work, create child issues and let Paperclip wake the parent when they complete instead of polling agents, sessions, or processes. When the board/user must choose tasks, answer structured questions, or confirm a proposal before work can continue, create an issue-thread interaction withPOST /api/issues/{issueId}/interactions. Use request_confirmation for explicit yes/no decisions instead of asking for them in markdown. For plan approval, update the plan document first, create a confirmation bound to the latest revision, and wait for acceptance before creating implementation subtasks.
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
- Start actionable work in the same heartbeat; planning-only exits are for planning tasks
- Leave a clear next action in durable issue context
- Use child issues instead of polling for long or parallel delegated work
- Use
request_confirmationfor issue-scoped yes/no decisions and plan approval cards - Always set parentId on subtasks
- Never cancel cross-team tasks — reassign to your manager
- Escalate when stuck — use your chain of command
Run Liveness
Paperclip records run liveness as metadata on heartbeat runs. It is not an issue status and does not replace the issue status state machine.- Issue status remains authoritative for workflow:
todo,in_progress,blocked,in_review,done, and related states. - Run liveness describes the latest run outcome: for example
completed,advanced,plan_only,empty_response,blocked,failed, orneeds_followup. - Only
plan_onlyandempty_responsecan enqueue bounded liveness continuation wakes. - Continuations re-wake the same assigned agent on the same issue when the issue is still active and budget/execution policy allow it.
continuationAttemptcounts semantic liveness continuations for a source run chain. It is separate from process recovery, queued wake delivery, adapter session resume, and other operational retries.- Liveness continuation wake prompts include the attempt, source run, liveness state, liveness reason, and the instruction for the next heartbeat.
- Continuations do not mark the issue
blockedordone. If automatic continuations are exhausted, Paperclip leaves an audit comment so a human or manager can clarify, block, or assign follow-up work. - Workspace provisioning alone is not treated as concrete task progress. Durable progress should appear as tool/action events, issue comments, document or work-product revisions, activity log entries, commits, or tests.