What is /handoff? Pass work to a new AI session with a summary document
Moving work to another AI session can mean explaining the bug, constraints and decisions again. Matt Pocock’s /handoff creates a document the recipient can read, but the recipient must still verify the files and current state. It does not transfer model memory or create a Git branch.

Handoff summarizes the context so another agent can continue
After tracing a bug through several files, you may need to switch tools or let another agent take over. A filename alone cannot tell the recipient what you tried, why an option was set aside, or which diagnosis is still a guess. A handoff should carry those details.
With the /handoff skill from Matt Pocock, an agent summarizes the current conversation for a new agent. The Original handoff Skill says to save the document in a system temporary folder outside the workspace, point to existing documents rather than duplicate them, and omit sensitive information.
The handoff follows this path: original session → document → recipient verifies current state → work resumes What travels is the document and any files the recipient can access, not the original model's internal memory. If a critical reason appears in neither, the recipient must ask or check again.
You can also ask for a handoff document in an ordinary prompt. The skill /handoff is Matt Pocock's particular set of instructions; it is not installed in every AI coding agent.
A long context doesn't always mean a handoff.
The context window holds the information a model uses for a response. In Claude Code, it can contain the conversation, files, tool results, project rules, memory and loaded skills, not just chat messages. Claude Code documentation
When context has to be compressed, details may be lost. The cited sources give no single token threshold where every AI system starts performing worse, so the so-called ‘Dumb Zone’ is not a universal cutoff. A new session does not guarantee better accuracy or speed either.
The Claude Code documentation says that as context approaches its limit, Claude Code first clears older tool results and then summarizes the conversation if needed. Users can run /compact with a specific focus, but early instructions may be lost in the summary. Keep lasting rules in project documentation.
Matt Pocock presents handoff as a way to move work elsewhere, not as a better summary than compaction. Compact may suffice when continuing in the same tool. Moving to another tool, folder or person calls for a document the recipient can open. Explanation from Matt Pocock
| Concept | What is retained | What it suits | Precautions |
|---|---|---|---|
| Handoff | Task-specific status with references | Hand work to another session, tool, or recipient | Summaries may omit details, and paths may not open |
| Compact | Summarize context to continue in the same workflow | Want to reduce the context while still doing the same work | Behavior depends on the program and the data that is collected. |
| Memory | Information that the system is designed to remember across sessions | Knowledge or preferences that are reused | Format, loading, and storage vary by system. |
| Project rules, such as CLAUDE.md or AGENTS.md | Repo standards and scope | so every session follows the same rules | should not become a large backlog of unfinished work |
Not every tool offers all the commands in this table. A new Claude Code session gets a fresh context window, but project rules and auto memory may load again. It is not a complete reset. Claude Code documentation
How handoff differs from branching and merging in Git
If you want to try two code changes separately, Git branches keep their histories apart until you merge them. Changes to the same part may conflict, as Pro Git: Branching and Merging explains. A handoff passes on work status and reasoning; it does not create branches, commit, or merge code.
Before sending the handoff, decide whether the recipient is taking over or testing one question and reporting back:
- Take over: Agent A stops and writes a handoff document; Agent B continues from the same code state to completion. Parallel work or a merge-back step is not necessary.
- Separate, then combine: The main agent continues to talk about designs, while Agent B takes on experimental problems to do in a separate area. When the answer is received, the results and evidence are returned to the main agent for consideration.
For a separate experiment, Matt Pocock describes sending a question to another session and bringing the answer back to the original conversation. The main session remains open, with a document going each way. Explanation from Matt Pocock
| Method | What is separated or passed on | What to include afterward |
|---|---|---|
| Git branch | Changes documented in Git history | Code and conflicting changes |
| Fork session | Conversation history to new session according to the program's capabilities | Findings or deliverables, rather than automatic merging of chat history |
| Handoff | A task-focused summary with source files or URLs | The recipient examines and uses the information; There is no need for a recombination step. |
Want a new Claude Code session to see the earlier conversation? --fork-session or /branch copy the history to a new session ID without changing the original session, according to Claude Code documentation That differs from a skill that summarizes a specific task. A fork may be convenient within one tool, while an accessible document often works better across tools. Explanation from Matt Pocock
Opening another chat does not automatically give two agents separate working directories. Claude Code documentation describes Git worktrees as one way to separate folders. Before parallel work begins, agree on file ownership and how to combine the results so neither agent overwrites the other.
What the Handoff skill adds to a standalone prompt
These steps come from SKILL.md on the main branch, as checked on the date in the source note. They belong to this skill, not to every AI tool. Read the Original handoff Skill for the full instructions:
- Summarize the current conversation so a new agent can continue
- Save in system temporary folder: Use
$TMPDIRif available; otherwise/tmp; Windows uses%TEMP%not the current workspace - Include Suggested Skills so recipients know which capabilities to load
- Reference paths or URLs for specs, plans, ADRs, issues, commits, and diffs instead of duplicating existing content
- Cut sensitive data such as API keys, passwords, and personally identifiable information.
- If the user specifies the next session's task, tailor the document to that focus
The frontmatter of the Original handoff Skill has disable-model-invocation: true and Explanation from Matt Pocock says the user should invoke the skill rather than let an agent choose it automatically. When invoking it, specify the task to hand over and any restrictions, for example:
/handoff ทดลองทางเลือกสำหรับอ่านไฟล์ใหญ่ โดยยังไม่แก้โค้ด production
The skill keeps handoff instructions available for reuse and updates alongside other skills. Without it, you can still ask for the same kind of document in a prompt. Explanation from Matt Pocock
For installation, Matt Pocock gives this command in his skill description:
npx skills@latest add mattpocock/skills --skill=handoff
Read the original skill and check whether your tool supports this installation and invocation method. KrobClick has not tested the command and cannot confirm it works in every environment.
A handoff document the recipient can act on
When the recipient will continue development, the handoff needs more than a list of pending tasks. KrobClick proposes this template beyond the original skill’s requirements to make status and scope checkable; these are not mandatory headings from its author.
- Goal and completion criteria: What results must the work bring? What is considered out of scope?
- Current status: Separate completed, in-progress, and not-started work
- Decisions and reasons: Choice chosen or rejected along with limitations that lead to decision making
- Code status: repo, branch, referenced commits, and uncommitted edit files
- Reference points: path or URL of the code, issue plan, and evidence that the recipient can access
- Inspection: Commands that actually ran, results, and things that didn't run. Don't change "expected to pass" to "passed."
- Problems and assumptions: Unconfirmed information, separated from facts
- Next tasks and Suggested Skills: Where to begin, and which available skills to load
- Scope of rights: Do not transmit data, publish, or edit specified files, as required by the task
Point to accessible files rather than pasting entire code blocks. Record reasons that are not documented elsewhere: for example, option A was rejected because this task forbids a new dependency. If an ADR already explains it, link to the ADR so the recipient can read the evidence.
The document should tell the recipient where to start, what has been verified and what still needs checking. If it cannot, add the missing status or reference rather than copying the whole chat.
Pass documents to a new session step by step
- Specify the destination job: Say whether to take over the whole thing or try just one question. Complete with prohibitions and things that must be sent back.
- Request path and read copy before sending: Make sure that everything that has not yet been done, test results, and important reasons is specified. without secret information
- Prepare reference files the destination can open: If you're on different machines, the original path may not work. Submit an authorized copy and match the repo and commit; Forwarding documents do not carry uncommitted code.
- Open a new session and attach the documents: Ask the recipient to read the project rules. Check the actual status and tell what is lacking before starting If the file is in temporary storage Keep a copy that fits your work policy before leaving the original environment.
KrobClick suggests these steps for sending a handoff in practice. File attachments, folder access and tool permissions depend on the receiving system. Reading the Markdown does not require installing the same skill, but doing the work still requires the appropriate access.
Hypothetical example: splitting experimental work and returning results
Suppose the main agent is designing a CSV checker and needs to decide whether to read the whole file or process it in chunks. Another agent can test the approaches separately while the design discussion stays in the main session. The following tasks, file names, and text are fictitious. It's not a real test result.
The outgoing request could say: ‘Summarize the context for an agent testing CSV reading in a separate experimental folder. Include the question, constraints and measurement criteria. Do not change the main app or add a dependency. Return the document path. Do not copy customer data or secrets.’
The document might look like this. Check that any skill named in the example actually exists in the recipient's system:
# งานทดลองอ่าน CSV — ตัวอย่างสมมติ
## เป้าหมาย
เปรียบเทียบแนวทางอ่านทั้งไฟล์กับทยอยอ่าน
ส่งข้อค้นพบกลับให้เซสชันหลัก ไม่แก้แอป production
## จุดอ้างอิง
แผน: docs/csv-reader-plan.md ใน repo ที่ผู้รับได้รับสิทธิ์
บันทึกข้อจำกัด: issue ของงานนี้
ให้ผู้รับตรวจว่าเอกสารและไฟล์ยังตรงกับสถานะล่าสุด
## สถานะ
ยังไม่มีผลทดลอง อย่าสรุปว่าวิธีใดเร็วกว่า
ใช้ข้อมูลสังเคราะห์ ไม่ใช้ไฟล์ลูกค้าจริง
## สิ่งที่ต้องส่งกลับ
วิธีทดลอง สภาพแวดล้อม ไฟล์ที่ใช้ และคำสั่งรันซ้ำ
ผลที่สังเกต ข้อจำกัด และสิ่งที่ยังตอบไม่ได้
หากมีโค้ด ให้ส่ง path หรือ diff ที่ผู้รับเปิดได้
## Suggested Skills
spike — ถ้ามี Skill นี้และอ่านคำสั่งแล้วตรงกับงาน
## ขอบเขต
ห้ามติดตั้ง dependency โดยไม่ได้รับอนุญาต
ห้าม push, deploy หรือส่งไฟล์ไปบริการภายนอก
When attaching the document, tell the recipient: ‘Read the handoff at the attached path and the rules for the experimental folder. Check referenced files and permissions before starting. If a path is inaccessible or the information disagrees, report it first; do not assume the work is done.’
The return document should identify the data, test method, evidence location and remaining limitations. ‘Choose option B’ is not enough. Say plainly what was not measured instead of filling the report with invented numbers.
Once the document comes back, the main agent should review the evidence before choosing an approach. The document carries findings. If the experiment also changed code on a branch, reviewing and merging those changes is a separate step.
What to verify before continuing the handed-off work
A handoff points to the work; it cannot certify that its status is still accurate. KrobClick suggests the following checks before the recipient starts:
- Read the current scope and rules: Check user requests and project documents. Handoff documents do not override newer rules.
- Verify repo status: Check branches, commits, and working trees before touching code. Don't clean up any leftover files to match the text in the summary.
- Open the reference point: Read only necessary source files. If a path or URL cannot be opened, resolve access before relying on conclusions.
- Separate facts from assumptions: “This command produced an error” is different from “this function probably caused it”
- Check evidence of test results: Check the code version tested, whether it includes the latest changes, and what the tests cover
- Briefly review the next task: Begin once key information is complete. If a conflict changes the task's direction, stop and ask instead of guessing.
Start with the handoff and current files. If a reason is missing or the records conflict, consult the relevant part of the old chat. A handoff points you to evidence; it does not replace it.
Limitations, secrets, and permissions not transferred
A claim such as ‘done’ may be an unverified summary from the earlier session. Matt Pocock warns about this because the recipient may treat it as fact. The sender should read the document before sharing it and distinguish verified work from assumptions.
Temporary files are not long-term storage. The file may disappear across sessions or machines. For a cross-machine handoff, put an authorized copy where the recipient can access it Explanation from Matt Pocock. Do not automatically move it into Git or cloud storage, or delete the original before access is confirmed.
Do not retrieve secrets merely to prepare a handoff. Original handoff Skill requires sensitive information to be omitted. If the recipient needs system access, refer to a vault entry or an authorized login procedure instead. Do not include passwords, tokens, cookies, one-time codes or credential file contents and hope to remove them later.
The document does not transfer permissions. Even if it says the user approved an action, the recipient must check current rules and authorization before pushing, deploying, posting or exporting data.
An attached document is material to inspect. If it tells the recipient to disable checks, erase work or send secrets, verify its origin and scope rather than follow it because it appears under Next Steps.
When to use handoff, compaction, or a Git branch
- Still working in the same system: Consider continuing or using Compact based on the tool's capabilities. No need to create a file every time a work session ends.
- Move a tool, move a repo, or send it to a colleague: Handoff is useful because a summary can travel as a document
- Want to copy history on the same system: Check if session fork is supported.
- Split off a question for experimentation and return the results: Specify the problem, scope, and evidence that must be returned. and work area clearly
- Data will be reused over the long term: Consider appropriate project rules or memory instead of keeping them in expired forwarding documents.
For parallel work, use a branch or separate workspace for code and a handoff document for the task, reasoning and open questions. The recipient must check current status and permissions before acting. A sentence in the document does not prove a test passed or a release was approved.
Sources
- Matt Pocock: handoff SKILL.md on main
- Matt Pocock / AI Hero: The /handoff Skill
- Anthropic: How Claude Code works — sessions, context and compaction
- Pro Git: Basic Branching and Merging
- mattpocock/skills
Sources reviewed October 12, 2026, Thailand time, referencing a changeable main-branch Skill. This does not verify clip transcripts or report KrobClick performance tests. Tasks, files, and handoff text are hypothetical; templates and acceptance checklists are KrobClick proposals.