ClaudeCodeMod

All shelves / Mods / Usage

context-keeper

By mishgoldenberg

context-keeper is a Claude Code usage mod by mishgoldenberg.

Opens a pane of what fills the context window with tips to trim it, and saves a handoff note of the goal, decisions, files, and TODOs to .claude/checkpoints/.

Draws

Install

The marketplace name is claude-mods.

In your shell
claude plugin marketplace add mishgoldenberg/claude-mods
claude plugin install "context-keeper@claude-mods"
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.1.2
License
MIT
Repo stars
11
Last change
2026-10-05

What it can reach

  • Draws in the session
  • Reads usage or context figures

Needs Claude Code 2.1.286 or newer. Restart Claude Code after installing. The README's main install adds mod-manager and picks mods from its /mods pane; this line is from its loop that installs every mod without the manager. Panels dock beside the chat in the desktop app or a terminal 144 columns wide or more, and open inline in narrower ones. Options appear in /config. Function hooks are early access, and a Claude Code update can break a mod. /ctx opens the pane, /checkpoint saves a handoff note now, and /resume-checkpoint loads the latest one into the prompt box after /clear. It toasts a tip when context passes 70%, set by warnAt, and writes a handoff note on its own at 85%, set by checkpointAt, 0 for off. The handoff note asks the model for a summary over the already-cached conversation, through your own session, so it is mostly cache reads. It also archives the raw transcript to .claude/checkpoints/ before every compaction, for zero tokens.

The marketplace name is claude-mods. The marketplace also holds mod-manager, which installs the others from a pane, and ten more mods. This one installs on its own. The README's loop installs every mod with claude plugin install "$m@claude-mods"; this page puts this mod's name in place of $m. What fills the context, and keeping the thread across /clear and /compact, is why this page files it under usage. context-lens pins how full the context window is and opens the breakdown by category. catnap has Claude write a handoff and compact at a clean break. This one saves the handoff note to a file you load back with /resume-checkpoint, and keeps the raw transcript before each compaction. In the source, the handoff note is a $.model.fork call.

Demo

From the author's repo.

What it hooks into

  • session.startWhen a session starts
  • command.runWhen you run its slash command/ctx/checkpoint/resume-checkpoint
  • turn.completeWhen a turn ends
  • session.compactWhen the context is compacted
  • ui.renderDraws into the sessionPane

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Slash commands 3

  • /ctxOpen the context-keeper panel
  • /checkpointSave a handoff note of this session to .claude/checkpoints
  • /resume-checkpointLoad the latest checkpoint into the prompt box (use after /clear)

Files

The author's source, 3 files. They load when you open them.

Facts

Author
mishgoldenberg
Category
Usage
Marketplace
claude-mods
Repo
mishgoldenberg/claude-mods
Folder
plugins/context-keeper
Version
0.1.2
License
MIT
Repo stars
11
Last change
2026-10-05
Language
TypeScript
Files
5

Other mods in Usage

usage-metermishgoldenbergOpens a pane of the 5-hour and 7-day plan limits with reset countdowns, burn rate and when a limit fills, session cost, cache hit ratio, and tokens per turn.usage-quotaanantraghunathDraws the 5-hour and weekly limits with a forecast at reset and the context window above the prompt, with a Compact button and Auto compact at a set percent.usage-graphdonvitoDraws cards above the prompt for the 5-hour limit, the weekly limit, and the context window, each with its percentage, a bar, and when it resets.wavy-usageBatuhanCakmakkDraws liquid-filled rings above the prompt for the 5-hour and 7-day limits, the context, and the prompt cache, a jet for the effort, and a pane of recent turns.usage-band-modjonathanlocksDraws one line above the prompt with the model, session cost, context, the 5-hour and weekly limits, and a per-model weekly limit, led by a pixel crab mascot.usage-statsconnorchuang32Opens /usage-stats in the desktop app: a heat map of tokens per day, trends and models tabs, and a Wrapped-style card you can save as an SVG.session-infodougcunhaHolds a commandOpens a pane of the session: context, cost, prompt cache, plan usage, agents, checks, CI runs, and Git, and holds a prompt that would rewrite an expired cache.ccbaremaballarinDraws a quiet band above the prompt: model and effort, the GitHub repo and branch with lines changed, a context bar split as /context, tokens, and plan limits.token-monitor-hudfractal-manifoldDraws the 5-hour and 7-day windows above the prompt with reset times and where each lands at this pace, plus Codex and Antigravity quotas if they're signed in.cost-ledgerFynnXlandKeeps a ledger of what every chat cost, plus other mods' model calls, and draws /ledger: today, 7 and 30 days, projects, top chats, models, and plan limits.limit-barsFynnXlandDraws the 5-hour and weekly limits as two slim bars above the prompt, a ring for how long the prompt cache stays warm, and asks before a costly cold send.claude-loadGerruxOpens a /load pane of CPU and memory per Claude Code session, with orphaned dev servers you can end, and draws a load line above the prompt under high load.
All 183 in Usage