catnap
catnap is a Claude Code mod/plugin that tells Claude at 50% context to finish what it is working on, write a handoff, and initialize compaction itself; the handoff replaces Claude Code's default summary so work is not repeated, with configurable thresholds and the default auto-compact as a backstop.
What it addresses
Claude Code's default auto-compact interrupts long sessions mid-task, raising doubts about whether context is carried over correctly; the submitter measured 78/82 auto-compactions landing while Claude was working before catnap, and 0 of 129 naps mid-task after.
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
catnap
catnap is a Claude Code mod/plugin that tells Claude at 50% context to finish what it is working on, write a handoff, and initialize compaction itself; the handoff replaces Claude Code's default summary so work is not repeated, with configurable thresholds and the default auto-compact as a backstop.
Problem: Claude Code's default auto-compact interrupts long sessions mid-task, raising doubts about whether context is carried over correctly; the submitter measured 78/82 auto-compactions landing while Claude was working before catnap, and 0 of 129 naps mid-task after.
Posted by @LippInc · Original source ↗
Submitted URL · @LippInc · · Source ↗
https://github.com/LippInc/catnap
Source text · @LippInc · · Source ↗
catnap tells Claude at 50% context what the context is and that it should finish what it's working on, write a handoff, and then initialize compaction itself.
Source text · @LippInc · · Source ↗
Install (needs Claude Code 2.1.287 or later, where mods are on by default): claude plugin marketplace add LippInc/catnap claude plugin install catnap@lippinc
Source text · @LippInc · · Source ↗
Try it with nothing installed: npx github:LippInc/catnap
Source text · @LippInc · · Source ↗
For a long time I've had Claude in the middle of some difficult coding task, and then I see the auto-compact message pop up. Every time I wonder if Claude actually picks everything up correctly and nothing is lost.
Source text · @LippInc · · Source ↗
After I took on catnap, 0 of 129 naps came mid-task: 98 of them in benchmarks and 31 in my own sessions.