handoff-compact: Claude Code mod auto-writes handoff docs instead of autocompact summary
speciallight · reddit · 2026-10-03
The author measured long unattended Claude Code sessions and found half the tokens came from turns past 200k context — expensive per-step resends plus quality decay from context rot. The handoff-compact plugin intercepts the autocompact trigger: a fork of the full session writes a structured handoff doc (goal, state, next step, decisions and rationale, ruled-out approaches, open questions, files/commits, verify command, last 10 prompts verbatim), then replaces the conversation — handoff + /clear mid-turn with nobody at the keyboard. MIT licensed, needs Claude Code 2.1.287+ with mods; /compact classic restores the built-in summary.
More from coding & agent
- FT: US tech outages blamed on rush to fix bugs found by AI — nordicinst · 2026-11-19
- Claude Code overtakes Cursor and Copilot in job-post mentions ahead of Anthropic IPO — antgoldbloom · 2026-11-19
- Dev submits PR adding periodic checkpoints to GKE sandboxes so agents don't lose progress — yoimnotkesku · 2026-11-19
- AWS adds private CA support to Bedrock AgentCore Identity for connecting agents to self-hosted IdPs — AWS ML Blog · 2026-11-19
- Orchestrator's Cloud Agents graduate from beta to general availability — julianweisser · 2026-11-19
- Zero users, 33 pages shipped: dev crowdsources audit for AI-agent trust schema — TheHamzaShahbaz · 2026-11-19