---
name: session-handoff
description: Summarizes the current session into a compact handoff document so a fresh agent or human can continue without re-reading the full thread. Use when stopping mid-task, rotating to another agent, ending a long chat, or when the user asks for a handoff, continuation brief, or "pick this up later."
category: loop-engineering
keywords: handoff, session, continuity, context, multi-agent
---

# Session Handoff

Distilled from high-install **handoff** skills on skills.sh (e.g. mattpocock/skills). The goal is **continuity without replaying the entire conversation**.

## When to apply

Use when work is **in progress** and the next actor might be a new chat, another teammate, or tomorrow-you. Not a substitute for commits, PRs, or ADRs — those stay authoritative; the handoff **points** at them.

## What to include

Write one Markdown document with these sections (omit empty sections):

1. **Objective** — What we are trying to finish; definition of done in one paragraph.
2. **Current state** — What is true on disk *right now* (branch, key files touched, tests/build status if known).
3. **Decisions** — Choices already made; alternatives rejected and why (brief).
4. **Open items** — Numbered list of what remains, in dependency order.
5. **Artifacts** — Paths or links only (`TODO.md`, PR URL, spec path, MEMORY entry). **Do not paste** large specs or diffs.
6. **Suggested skills** — Which skills from this library the next agent should load first (with `/skills/<slug>` slugs).
7. **Risks / do-not-touch** — Denylists, flaky areas, secrets to never quote.

## Safety and placement

- **Redact** API keys, tokens, passwords, and PII.
- **Default path:** OS temp dir (`$TMPDIR` / `/tmp`; `%TEMP%` on Windows) unless the project defines a handoff location (e.g. `docs/handoff-latest.md` in-repo when the user asks to keep it in git).
- If the user gives a focus argument ("next session is tests only"), narrow sections 3–4 to that scope.

## Workflow

1. **Scan** the thread for decisions, blockers, and partial work — not play-by-play narrative.
2. **Verify** against the repo when possible (`git status`, last test command, open PR).
3. **Draft** the document; keep it scannable (bullets, short paragraphs; aim for under two pages).
4. **Deliver** the path to the file and a 3-line executive summary in chat.

## Anti-patterns

- Dumping the full chat transcript.
- Handoff without open items (reader cannot act).
- Claiming tests pass without having run them in this session.

## Related skills

- [agent-development-loop](/skills/agent-development-loop) — Long-running work should also update MEMORY/TODO, not only a handoff file.
- [choose-skill](/skills/choose-skill) — List concrete slugs in **Suggested skills**, not vague advice.
- [loop-triage](/skills/loop-triage) — When open items are many, triage before the next session starts.