Show HN: Stop Claude Code from compacting mid-task
Category: devtools
Tags: claude-code, plugin, context-management, developer-productivity, ai-assistant
Score: 7.3/10 (Innovation: 6, Technical: 7, Documentation: 9, Utility: 7)
catnap is a Claude Code plugin that prevents mid-task context compaction by prompting Claude to finish its current piece, write a handoff note, and compact at a clean break. It replaces Claude Code's summary with Claude's own handoff, cutting compaction time from ~20 seconds to under a second. The project includes benchmark evidence and a self-check tool for users to estimate benefits.
Target audience: developers using Claude Code and other AI coding assistants
Repository: https://github.com/LippInc/catnap · TypeScript · MIT · 5 stars
View on Hacker News