Show HN: Handoff – Claude Code writes its own handoff before auto-compaction
Category: devtools
Tags: claude-code, context-management, llm, plugin, token-optimization
Score: 6.5/10 (Innovation: 6, Technical: 6, Documentation: 8, Utility: 6)
Handoff is a Claude Code plugin that intercepts auto-compaction by having the agent write a structured handoff file before the context is cleared, then resuming from that compact file. It benchmarks significant token savings and context reduction versus Claude Code's default summarization, with a fallback chain ensuring compaction never blocks. The approach is a clever combination of existing Claude Code hooks and prompt engineering rather than a new mechanism.
Target audience: AI-assisted developers and engineers using Claude Code
Repository: https://github.com/salmanzafar949/claude-code-handoff · TypeScript · MIT
View on Hacker News