What is context-budget?
context-budget is a Claude Code mod by Zinzan48 that compact reminders as the context grows, a check before resuming a large session after the prompt cache expires, and per-type models with a minimum effort for subagents. It is listed under Cost & usage and has no public popularity data yet.
| Type | Claude code mod |
|---|---|
| Author | Zinzan48 |
| Repository | Zinzan48/claude-mods |
| Popularity | no public popularity data yet |
| Category | Cost & usage |
| Security | Low risk (80/100) |
| Rank | #9,377 of 9,397 Claude Code mods; #1,886 in Cost & usage |
| License | MIT |
| Last commit | 2026-10-10 |
| Hooks | 8 events |
| Sees | compaction, every prompt, subagent spawns |
| Draws on | AbovePrompt |
Is context-budget safe to install?
context-budget scores 80/100 on the MCPMods security check: Low risk. Things to review: watches every prompt or event. It passed 5 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 no processes | Pass |
| Writes no files or config | Pass |
| Doesn't read environment variables | Pass |
| Watches every prompt or event | Review |
| Drives Claude (model calls, prompts) | Note |
| Validator reported problems | Note |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.now | |
$.command.register | |
$.command.run | drives Claude |
$.model.fork | drives Claude |
$.prompt.fill | writes the prompt box |
$.prompt.read | |
$.session.id | |
$.session.messages | reads the transcript |
$.session.usage | |
$.settings.read | reads settings |
$.state.get | |
$.state.set | |
$.store.delete | keeps its own state |
$.store.get | keeps its own state |
$.store.keys | keeps its own state |
$.store.set | keeps its own state |
$.ui.resolve | draws interface |
$.ui.status | draws interface |
$.ui.toast | draws interface |
How do I install context-budget?
- 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/Zinzan48/claude-mods claude plugin validate ./claude-mods/context-budget
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add Zinzan48/claude-mods && claude plugin install context-budget@zinzan-mods
Or ask Claude to set it up
Paste this into Claude Code and it installs context-budget for you:
Install the "context-budget" Claude Code mod from https://github.com/Zinzan48/claude-mods/tree/main/context-budget. Run claude plugin validate on it first and show me what it can access before you enable it.