Claude Code mod

catnap

Claude compacts its own conversation at a clean break, then carries on by itself. A gentle note at 50% context or 300K tokens, whichever comes first, a strict one at 60% or 400K, Claude Code's auto-compact at 70% or 500K as the backstop, and a compact_now tool. All the lines are settings.

8 starsContext & usage mods Plugin marketplaceValidates on Claude Code 2.1.325 Source

Install

Inside Claude Code
/plugin marketplace add LippInc/catnap
/plugin install catnap@lippinc

Mods install like plugins. Run /reload-plugins or start a new session to load it.

What it can access

Reach
L2Writes or runs: writes files, sets env vars, drives Claude, reads files, reads env vars, draws
Sees
/"^mcp__catnap__compact_now$"/ calls, every prompt, every skill, every tool call, compaction
Hooks
session.starttool.callprompt.submitskill.promptturn.startturn.stepturn.completesession.compactsession.end

From a static scan of the mod's code by awesome-claude-code-mods. It shows what the code asks for, not a security review.

How Claude Code mods work

  • A mod is a plugin with a JavaScript or TypeScript module that runs inside Claude Code (version 2.1.287 or later). It can draw panes beside the transcript, a band above the prompt, buttons and toasts, restyle the spinner and tool rows, and watch or rewrite tool calls and prompts.
  • It installs like any plugin: add its marketplace with /plugin marketplace add owner/repo, then /plugin install name@marketplace.
  • Check what a mod can reach before installing: it runs with your permissions. Reach goes from drawing only, to reading files, to writing files or running processes, to the network. Run claude plugin validate on a clone to list its hooks and calls without running it.
  • Turn one off from the Installed tab in /plugin, or start Claude Code with --safe-mode to skip every customization for a session.
Claude Code docs

Details

Repository
LippInc/catnap
Folder
.
Marketplace
lippinc
Author
Martin Lipp
License
MIT
Last updated
22 October 2026

FAQ

What is catnap?

Claude compacts its own conversation at a clean break, then carries on by itself. A gentle note at 50% context or 300K tokens, whichever comes first, a strict one at 60% or 400K, Claude Code's auto-compact at 70% or 500K as the backstop, and a compact_now tool. All the lines are settings. It is a mod for Claude Code, from LippInc/catnap on GitHub.

What can the catnap mod access?

Its widest reach is "writes or runs" (writes files, sets env vars, drives Claude, reads files, reads env vars, draws). It sees /"^mcp__catnap__compact_now$"/ calls, every prompt, every skill, every tool call, compaction. Like any mod, it runs with your permissions.

How do I install catnap?

Inside Claude Code (v2.1.287 or later), run /plugin marketplace add LippInc/catnap and then /plugin install catnap@lippinc.

Is catnap popular?

LippInc/catnap has 8 GitHub stars and 0 forks, and is included in 1 curated Claude Code list. It was last updated on 22 October 2026.

More context & usage mods

autotel

8

jagreehal/autotel

OpenTelemetry for Claude Code plugins: adds $.autotel in the engine.create fold so a plugin records spans, traces every hook dispatch with the chain beneath it, and shows each tool call's settled duration on its row. Exports OTLP/HTTP to OTEL_EXPORTER_OTLP_ENDPOINT (autotel-devtools claude sets it).

Context & usage mods

claudedeck

8

MarvelCollin/ClaudeDeck

Switch Claude accounts from a sidebar in Claude Desktop and Claude Code: live usage per account, a Claude Desktop window per account that never restarts, and auto switch that spends the weekly quota that runs out first

Context & usage mods/plugin install

agent-trace

8

krika2810/agent-trace

Prompt flow pane: every step after a prompt is sent, in order, colored by type, with tokens, cost and failures

Context & usage mods/plugin install

mod-usage

8

jack21/claude-mod-usage

Shows Claude context, 5-hour and 7-day usage as gradient progress bars above the prompt (Claude Code Desktop / VS Code / mobile). 12 languages.

Context & usage mods

cache-ttl-timer

3

WQGGSEY/cache-ttl-timer

A prompt-cache countdown in the prompt footer, beside the model and effort: how long until your next message has to re-cache the whole conversation.

Context & usage mods/plugin install

tool-hub

8

Szotasz/claude-mods

Toolbox: a button at the bottom right of the prompt footer (or /eszkozok) opens switches above the prompt for Szabolcs's mods (focus mode, usage bar, project pane, snake game, Supabase guard, push guard, decision popup, ...). Hungarian or English.

Context & usage mods/plugin install

Browse the most popular Claude Code mods, all context & usage mods, or the skills and MCP server directories.