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.
| Type | Claude code mod |
|---|---|
| Author | irfanfaraaz |
| Repository | irfanfaraaz/claude-kit |
| Popularity | no public popularity data yet |
| Category | Cost & usage |
| Security | High risk (52/100) |
| Rank | #3,462 of 5,272 Claude Code mods; #640 in Cost & usage |
| Last commit | 2026-10-11 |
| Hooks | 7 events |
| Sees | /"^TaskCreate$"/ calls, /"^TaskUpdate$"/ calls, compaction |
| Draws on | AbovePrompt |
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.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts processes outside the sandbox | Review |
| Writes files or config | Review |
| Reads environment variables | Review |
| Only sees the events it hooks | Pass |
| Drives Claude (model calls, prompts) | Note |
| Validator reported problems | Note |
| No license detected | Note |
API calls in its code
| Call | What it means |
|---|---|
$.agent.list | |
$.clock.after | |
$.clock.every | |
$.clock.now | |
$.command.run | drives Claude |
$.env.get | reads env vars |
$.fs.write | writes files |
$.process.run | runs processes |
$.prompt.submit | drives Claude |
$.session.model | |
$.state.get | |
$.state.set | |
$.ui.copy | draws interface |
$.ui.invalidate | draws interface |
$.ui.resolve | draws interface |
$.ui.toast | draws interface |
How do I install ctx-keeper?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- 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
- 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)