Home / Claude Code mods / Cost & usage / context-budget

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.

Updated 2026-10-10

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.

TypeClaude code mod
AuthorZinzan48
RepositoryZinzan48/claude-mods
Popularityno public popularity data yet
CategoryCost & usage
SecurityLow risk (80/100)
Rank#9,377 of 9,397 Claude Code mods; #1,886 in Cost & usage
LicenseMIT
Last commit2026-10-10
Hooks8 events
Seescompaction, every prompt, subagent spawns
Draws onAbovePrompt

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.

CheckResult
No network accessPass
Starts no processesPass
Writes no files or configPass
Doesn't read environment variablesPass
Watches every prompt or eventReview
Drives Claude (model calls, prompts)Note
Validator reported problemsNote
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.now
$.command.register
$.command.rundrives Claude
$.model.forkdrives Claude
$.prompt.fillwrites the prompt box
$.prompt.read
$.session.id
$.session.messagesreads the transcript
$.session.usage
$.settings.readreads settings
$.state.get
$.state.set
$.store.deletekeeps its own state
$.store.getkeeps its own state
$.store.keyskeeps its own state
$.store.setkeeps its own state
$.ui.resolvedraws interface
$.ui.statusdraws interface
$.ui.toastdraws interface

How do I install context-budget?

  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/Zinzan48/claude-mods
    claude plugin validate ./claude-mods/context-budget
  3. 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.