ClaudeCodeMod

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.

In your shell
claude plugin marketplace add LippInc/catnap
claude plugin install catnap@lippinc
Open the repo

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

From the catnap README: /catnap:compact has Claude finish the piece it is on, write a handoff, compact, and carry on; after that it runs on its own at 50% of the context or 300K tokens; /catnap:check starts with a card, here from the author's last 30 days: 78 of 82 auto-compactions cut Claude off mid-task.
Screenshot of the author's GitHub page.

What it hooks into

  • session.startWhen a session starts
  • tool.callAround a tool call, where it can hold one
  • prompt.submitWhen you send a prompt
  • skill.promptA Claude Code event
  • turn.startWhen Claude starts a turn
  • turn.stepAt each step of a turn
  • turn.completeWhen a turn ends
  • session.compactWhen the context is compacted
  • session.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

Other mods in Usage

pitwallaxlaserDraws live cost, cache, and limits above the prompt and in a side panel, with a card per subagent you can stop, and fourteen themes that repaint Claude Code.jev-routerdominicricoAsks TypeSafe's Jev which Claude model and effort fit each prompt, step, and subagent, runs it there, and draws every pick in a band above the prompt.usage-statsomeerdvrnOpens a /usage-stats pane of this machine's Claude Code tokens over 7 days, 30 days, or all time, by day, project, and model, with Linear issues closed.claujev-modCivalskiHolds a commandDraws a status line of the checks and actions TypeSafe's Jev made today for the ClauJev plugin, with the effort Jev suggests, and can apply that effort.jev-orchestratorhiyokuSends each subagent's task to TypeSafe's Jev, which picks its model, effort, and tool profile, and draws the picks, tokens, and cost on the status line.vitalsnaicudDraws a framed live dashboard above the prompt: model, effort, context, plan limits with a forecast, cost, tokens and cache, subagents, shells, and tools.dispatch-gatewdsewdser-bitHolds a commandRefuses one tool call once the main session has made 8 requests in a row itself, and a subagent past 3 an hour, so Claude hands work out. A retry goes through.usage-baromeerdvrnDraws your 5-hour and 7-day plan limits under the prompt, used or left, with the git branch and file counts, the model, context, and the session's cost.limitsRyan-LTDraws a band above the prompt with the 5-hour and weekly limits, a pace warning, and context fill, and toasts at 75%, 90%, and 100%.context-guardmelodic-softwareShows a toast when the session's context crosses into a worse zone, smart, acceptable, or dumb, and can draw the zone and percent in a row above the prompt.rate-limit-guardmelodic-softwareShows a toast when the account's 5-hour or 7-day rate-limit window reaches 90% or 95% and when it resets, and can draw both windows in a row above the prompt.orca-quotamutlumehmetDraws the 5-hour and 7-day usage of every Claude account on this machine in one band above the prompt, and warns once before the current account hits its limit.
All 183 in Usage