Thread Handoff
Use This Skill For
- Compressing long tasks into a compact, faithful context summary.
- Preparing a new thread to continue work without inheriting noise.
- Preserving decisions, constraints, evidence, current state, and next steps.
- Delivering the handoff to a new or existing thread when tools and user intent allow it.
Core Workflow
- Compress the old context.
- Preserve the goal, scope, user constraints, decisions, completed work, verification evidence, risks, and next step.
- Drop repeated status chatter, failed exploratory branches that no longer matter, and background the next thread can rediscover cheaply.
- Check summary fidelity.
- Verify the handoff covers the available task context needed for continuation.
- Mark anything not checked or possibly missing instead of pretending the summary is complete.
- Transfer or output.
- If the user asks to send, fork, create, or continue in another thread, look for thread-management tools and use them when available.
- If tools are unavailable, fail, or the user only wants a draft, provide a copyable handoff summary.
Handoff Format
Include these sections when relevant:
- Role
- Goal
- Must preserve
- Current state
- Completed work
- Evidence / verification
- Open risks
- Next safest step
- Do not repeat
- Possibly missing
- Ignore
Transfer Tooling
When the user asks to transfer the handoff to another thread, first look for available thread tools such as create_thread, fork_thread, send_message_to_thread, handoff_thread, or an equivalent Codex thread-management tool.
- Prefer direct delivery over writing a local handoff file when delivery tools are available.
- Do not claim delivery succeeded unless the thread tool succeeded.
- If no delivery tool is available, say so briefly and provide the handoff text as the fallback.
- Do not create or message a thread when the user explicitly asked only for a handoff draft.
Fidelity Check
Before delivery, check that the summary answers:
- What is the latest user goal?
- What constraints, boundaries, and "do not" instructions must survive?
- What files, pages, screenshots, links, commands, tools, or thread IDs matter?
- What has been completed, and what evidence proves it?
- What failed paths or false starts should not be repeated?
- What remains blocked, risky, unverified, or pending user confirmation?
- What can the next thread safely ignore?
Guardrails
- Keep the handoff concise and executable.
- Do not restate all background unless it changes the next move.
- Do not claim completion without verification evidence.
- Do not broaden scope beyond the transfer point unless the user asks.
- Do not turn this into a project health audit. Inspect project health only when it directly affects the handoff.
- Do not write a local handoff file as the primary result when the user asked to send the handoff and thread tools are available.
Outputs
- A compact handoff summary.
- A fidelity note listing any possibly missing or unchecked context.
- A direct thread transfer when requested and available, or a copyable fallback when not.
- A short judgment on whether a new thread is justified.
References
references/handoff-format.md for the handoff template.
1---2name: thread-handoff3description: Compress an overgrown Codex conversation into a compact, faithful context summary and optionally deliver it to a new or existing thread. Use when a task needs continuity, context compaction, restart, transfer to another agent, or preservation of decisions, constraints, evidence, current state, and next steps. If thread-management tools are available and the user asks to hand off or continue in another thread, use those tools; otherwise provide a copyable handoff summary.4---56# Thread Handoff78## Use This Skill For910- Compressing long tasks into a compact, faithful context summary.11- Preparing a new thread to continue work without inheriting noise.12- Preserving decisions, constraints, evidence, current state, and next steps.13- Delivering the handoff to a new or existing thread when tools and user intent allow it.1415## Core Workflow16171. Compress the old context.18 - Preserve the goal, scope, user constraints, decisions, completed work, verification evidence, risks, and next step.19 - Drop repeated status chatter, failed exploratory branches that no longer matter, and background the next thread can rediscover cheaply.202. Check summary fidelity.21 - Verify the handoff covers the available task context needed for continuation.22 - Mark anything not checked or possibly missing instead of pretending the summary is complete.233. Transfer or output.24 - If the user asks to send, fork, create, or continue in another thread, look for thread-management tools and use them when available.25 - If tools are unavailable, fail, or the user only wants a draft, provide a copyable handoff summary.2627## Handoff Format2829Include these sections when relevant:3031- Role32- Goal33- Must preserve34- Current state35- Completed work36- Evidence / verification37- Open risks38- Next safest step39- Do not repeat40- Possibly missing41- Ignore4243## Transfer Tooling4445When the user asks to transfer the handoff to another thread, first look for available thread tools such as `create_thread`, `fork_thread`, `send_message_to_thread`, `handoff_thread`, or an equivalent Codex thread-management tool.4647- Prefer direct delivery over writing a local handoff file when delivery tools are available.48- Do not claim delivery succeeded unless the thread tool succeeded.49- If no delivery tool is available, say so briefly and provide the handoff text as the fallback.50- Do not create or message a thread when the user explicitly asked only for a handoff draft.5152## Fidelity Check5354Before delivery, check that the summary answers:5556- What is the latest user goal?57- What constraints, boundaries, and "do not" instructions must survive?58- What files, pages, screenshots, links, commands, tools, or thread IDs matter?59- What has been completed, and what evidence proves it?60- What failed paths or false starts should not be repeated?61- What remains blocked, risky, unverified, or pending user confirmation?62- What can the next thread safely ignore?6364## Guardrails6566- Keep the handoff concise and executable.67- Do not restate all background unless it changes the next move.68- Do not claim completion without verification evidence.69- Do not broaden scope beyond the transfer point unless the user asks.70- Do not turn this into a project health audit. Inspect project health only when it directly affects the handoff.71- Do not write a local handoff file as the primary result when the user asked to send the handoff and thread tools are available.7273## Outputs7475- A compact handoff summary.76- A fidelity note listing any possibly missing or unchecked context.77- A direct thread transfer when requested and available, or a copyable fallback when not.78- A short judgment on whether a new thread is justified.7980## References8182- `references/handoff-format.md` for the handoff template.