About this mod
handoff-compact is a mod that takes over when Claude Code autocompact triggers, solving the high cost and quality degradation issues caused by context exceeding 200k in long unattended sessions. Instead of calling the built-in summarizer, it forks the entire session context, generates a handoff document covering goals, status and its evidence, next steps, decisions and reasons, ruled-out options, open questions, related files and commits, verification commands, and the last 10 prompts verbatim, then replaces the original conversation with that document. The effect is equivalent to handoff + /clear, but done automatically within the same session, mid-turn, and unattended. The author calls it vibe-coded and encourages users to take the idea or mod and customize it for their own environment. Requires Claude Code 2.1.287+ with mods enabled. Use /compact classic for a one-time built-in summary. The repository is MIT licensed.


