/session-recap
Converts the Hangar pre-compact snapshot into a short human-readable summary. Complements Claude Code's native /recap (v2.1.108+) by surviving compaction, session-end, and handoff boundaries.
Data sources (in order)
${TEMP}/claude-pre-compact-snapshot-<session>.json— pre-compact hook output.tasks.json— active task list at time of compactionSTATUS.md— project-level status fileHANDOFF.md— explicit handoff note if the user wrote onegit status --porcelain+git log --oneline -5— recent repo activity
If no snapshot exists, fall back to sources 2–5 and mark the recap as "live" rather than "restored".
Output modes
brief (default)
Session recap — <timestamp>
Branch: <branch> Uncommitted: <N files>
Last commit: <sha> <subject>
Active tasks (<N>):
- <task 1 subject>
- <task 2 subject>
Next: <recommended next action from STATUS.md or last in-progress task>
full
Brief output + last 5 commits, uncommitted file preview, HANDOFF.md inline, STATUS.md inline.
tasks-only
Just the active task list with status indicators. Use when pivoting between features.
Behavior
- Never mutates files — read-only recap
- Never invokes other agents — pure data aggregation
- Exits cleanly when no snapshot exists (fallback to live state)
- Recap is plain markdown, safe to quote back to the user