handoff ยท git:20260610.52b7df7 ยท 2026-06-10 ยท sha256 072b45ff240359d2

handoff git:20260610.52b7df7A

Immutable. This exact content never changes and is served at /api/v1/blob/072b45ff240359d2.

---
name: handoff
description: Compact current session context into a handoff document for seamless continuation in a new session. Use when context window is exhausted, switching machines, handing work to another agent, or ending a long session mid-task.
---

# /supergraph:handoff

Compress session state to a compact document. The next session picks up exactly where this one left off.

Announce: "๐Ÿ“ฆ /supergraph:handoff โ€” compacting session state..."

## Steps

### 1. Capture current state

Gather live state โ€” do not rely on memory:

```bash
git status --short
git log --oneline -10
```

Read active plan file (if any) from `docs/supergraph/plans/`.

### 2. Write handoff document

Save to `$TMPDIR/supergraph-handoff-<YYYY-MM-DD>.md` โ€” NOT in the workspace (avoids accidental commits).

```markdown
# Supergraph Handoff โ€” <YYYY-MM-DD>

## Goal
[One sentence: what we were trying to accomplish]

## Status
[In-progress / Blocked / Ready for next phase]

## Active Plan
Path: [docs/supergraph/plans/<slug>.md]
Current task: Task N โ€” [description]
Remaining tasks: [list with Status values]

## What Was Done
- [Completed task summaries โ€” brief, no code]

## What Is Left
- [Remaining tasks, in order]
- [Any stuck tasks and why]

## Blockers / Open Questions
- [List โ€” or "none"]

## Key Files Changed
- [path] โ€” [what changed, one line]

## Git State
Branch: [branch name]
Last commit: [hash] [message]
Uncommitted: [list or "none"]

## Environment Context
[Copy from plan's Environment Context section]

## Suggested Skills for Next Session
1. /supergraph:scan (always first)
2. /supergraph:execute plan <slug> (continue tasks)
   or /supergraph:tdd (if resuming single task)
3. /supergraph:fix โ†’ /supergraph:verify โ†’ /supergraph:review

## Notes
[Anything non-obvious a fresh agent needs to know]
```

Rules for content:
- Reference artifacts by **path or URL only** โ€” never duplicate code or file content
- Keep the document under 150 lines
- No session-specific context (e.g., "as I said earlier") โ€” self-contained

### 3. Report handoff location

```
โœ… /supergraph:handoff complete
- Document: $TMPDIR/supergraph-handoff-<date>.md
- Status: [current status]
- Resume: /supergraph:scan โ†’ read handoff doc โ†’ /supergraph:execute plan <slug>
```

## Rules

- Never save to workspace โ€” always `$TMPDIR`
- References only, no content duplication
- Under 150 lines โ€” force brevity
- Always include "Suggested Skills" so the next session has a clear entry point