ctx-keeper

ctx-keeper is a Claude Code mod by irfanfaraaz that cache countdown, context, limits and cost band; past 350k it runs /re-fresh, copies it, compacts and pastes it back.

Updated 2026-10-11

What is ctx-keeper?

ctx-keeper is a Claude Code mod by irfanfaraaz that cache countdown, context, limits and cost band; past 350k it runs /re-fresh, copies it, compacts and pastes it back. It is listed under Cost & usage and has no public popularity data yet.

TypeClaude code mod
Authorirfanfaraaz
Repositoryirfanfaraaz/claude-kit
Popularityno public popularity data yet
CategoryCost & usage
SecurityHigh risk (52/100)
Rank#3,462 of 5,272 Claude Code mods; #640 in Cost & usage
Last commit2026-10-11
Hooks7 events
Sees/"^TaskCreate$"/ calls, /"^TaskUpdate$"/ calls, compaction
Draws onAbovePrompt

Is ctx-keeper safe to install?

ctx-keeper scores 52/100 on the MCPMods security check: High risk. Things to review: starts processes outside the sandbox; writes files or config; reads environment variables. It passed 2 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
No network accessPass
Starts processes outside the sandboxReview
Writes files or configReview
Reads environment variablesReview
Only sees the events it hooksPass
Drives Claude (model calls, prompts)Note
Validator reported problemsNote
No license detectedNote

API calls in its code

CallWhat it means
$.agent.list
$.clock.after
$.clock.every
$.clock.now
$.command.rundrives Claude
$.env.getreads env vars
$.fs.writewrites files
$.process.runruns processes
$.prompt.submitdrives Claude
$.session.model
$.state.get
$.state.set
$.ui.copydraws interface
$.ui.invalidatedraws interface
$.ui.resolvedraws interface
$.ui.toastdraws interface

How do I install ctx-keeper?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/irfanfaraaz/claude-kit
    claude plugin validate ./claude-kit/mods/ctx-keeper
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    git clone https://github.com/irfanfaraaz/claude-kit && claude --plugin-dir ./claude-kit/mods/ctx-keeper

Or ask Claude to set it up

Paste this into Claude Code and it installs ctx-keeper for you:

Install the "ctx-keeper" Claude Code mod from https://github.com/irfanfaraaz/claude-kit/tree/main/mods/ctx-keeper. Run claude plugin validate on it first and show me what it can access before you enable it.

More from irfanfaraaz/claude-kit

This repository has at least 9 Claude Code mods on MCPMods.

  • carousel-ship: After a carousel render: Caption, Queue Threads and Log ledger buttons; blocks Threads posts with a part over 500 charac (Low risk)
  • commit-guard: Never commits docs/superpowers, never pushes unless you said push, asks before committing on main/staging/prod (High risk)
  • env-bootstrap: Per-project Node version on PATH and env file auto-loaded for Bash, so Claude stops typing nvm use / source .env (Review before installing)
  • git-band: Git state above the prompt: branch, upstream, ahead/behind, Claude vs your changes, PR and CI, worktree, stash; toasts w (Low risk)
  • hybrid-agents: Subagents default to Sonnet; pasting a plan path adds the hybrid rule (inline small tasks, Sonnet subagents for big ones (Low risk)
  • rm-to-trash: Rewrites rm into macOS trash so deletes are recoverable and stop hitting the rm deny rule (Low risk)
  • tool-preload: Keeps context-mode, jcodemunch, claude-mem, WebSearch, Task and Supabase tools loaded so Claude stops calling ToolSearch (Low risk)
  • turn-coach: One fork per turn: a verdict on work turns (solved, gaps, shortcuts) plus up to 3 next prompts, in one compact block abo (Low risk)