All shelves / Mods / Usage
catnap
By LippInc
catnap is a Claude Code usage mod by LippInc.
Has Claude compact at a clean break: from 50% of the context it asks Claude to finish the piece it is on, write a handoff, and compact, then carry on by itself.
Draws
Install
The marketplace name is lippinc.
claude plugin marketplace add LippInc/catnap claude plugin install catnap@lippinc
It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.
- Version
- 0.3.12
- License
- MIT
- Repo stars
- 8
- Last change
- 2026-10-22
What it can reach
- Draws in the session
- Reads usage or context figures
- Sees tool calls
Claude Code 2.1.287 or later, or 2.1.286 in the desktop app. Inside a terminal session the install is /plugin install catnap --marketplace LippInc/catnap. A session that is already open needs /reload-plugins first. The install may say that 9 options are not set; catnap uses its defaults: a soft note at 50%, a strict one at 60%, and Claude Code's own auto-compact at 70%, or 300K, 400K, and 500K tokens on a 1M window, whichever comes first. /catnap:compact naps on demand. To see your own numbers before installing, run npx github:LippInc/catnap in a terminal, with Node 18 or later. CATNAP_OFF=1 turns it off for one process. claude -p runs keep Claude Code's own setting. The author has not tested macOS, the VS Code extension, or long real sessions in a terminal.
The marketplace name is lippinc, and it lists this one plugin, from the repository. Moving when the context gets compacted is why this page files it under usage. compact-handoff writes a handoff, replaces the conversation with it, and toasts once context passes 70%. compact-adviser draws a hint to run /compact when Jev calls the session a finished checkpoint. This one waits for Claude to finish the piece it is on: the notes ride on tool results, Claude passes its handoff to the mod's compact_now tool, and the compaction runs when the turn ends. By default Claude's handoff stands in place of Claude Code's summary, so no model call writes one. The mod sets the auto-compact line in Claude Code's own process, and its toasts say when a compaction failed. The author says it makes no network requests, no model calls of its own, and starts no processes.
Demo

What it hooks into
session.startWhen a session startstool.callAround a tool call, where it can hold oneprompt.submitWhen you send a promptskill.promptA Claude Code eventturn.startWhen Claude starts a turnturn.stepAt each step of a turnturn.completeWhen a turn endssession.compactWhen the context is compactedsession.endWhen a session ends
Read from the on() calls in its hook modules. Open its source under Files to check what each one does.
Files
The author's README and source, 4 files. They load when you open them.
Facts
- Author
- LippInc
- Category
- Usage
- Marketplace
- lippinc
- Repo
- LippInc/catnap
- Version
- 0.3.12
- License
- MIT
- Repo stars
- 8
- Last change
- 2026-10-22
- Language
- TypeScript
- Files
- 51