What is context-budget?
context-budget is a Claude Code mod by melodic-software that measures a Claude Code session's fixed startup context payload per item at a pinned binary version, including per-tool attribution of the built-in tool pools that /context reports only as. It is listed under Security and has 26 GitHub stars.
| Type | Claude code mod |
|---|---|
| Author | melodic-software |
| Repository | melodic-software/claude-code-plugins |
| Popularity | 26 GitHub stars |
| Category | Security |
| Security | Low risk (88/100) |
| Rank | #268 of 5,272 Claude Code mods; #45 in Security |
| License | MIT |
| Last commit | 2026-10-18 |
| Stars this week | +3 |
| Hooks | 6 events |
| Sees | every prompt |
| Draws on | Pane, AbovePrompt |
Is context-budget safe to install?
context-budget scores 88/100 on the MCPMods security check: Low risk. Things to review: watches every prompt or event. It passed 7 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 |
| Doesn't drive Claude | Pass |
| Passes claude plugin validate | Pass |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.command.register | |
$.session.usage | |
$.state.get | |
$.state.set | |
$.ui.close | draws interface |
$.ui.open | draws interface |
$.ui.panes | draws interface |
$.ui.resolve | 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/melodic-software/claude-code-plugins claude plugin validate ./claude-code-plugins/plugins/context-budget
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add melodic-software/claude-code-plugins && claude plugin install context-budget@melodic-software
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/melodic-software/claude-code-plugins/tree/main/plugins/context-budget. Run claude plugin validate on it first and show me what it can access before you enable it.
More from melodic-software/claude-code-plugins
This repository has 5 Claude Code mods on MCPMods.
- context-guard: Per-session context-window observability. A mod writes each session's context-window figures to a snapshot file and show (Review before installing)
- display-redaction: A mod that masks email addresses and secret-shaped text in what Claude Code draws, for recordings and screen shares. It (Low risk)
- harness-ops: Claude Code operations: audit-skill-visibility (skills the listing budget hides), inventory (every invocable surface), a (Review before installing)
- rate-limit-guard: Shared rate-limit guard for loop lanes and Claude: a hooks module writes the subscription rate-limit windows to a fixed (Review before installing)