All Claude Code modsmelodic-software/claude-code-plugins
context-budget
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 totals, derived by A/B deny differencing. Falls back from an SDK meter to a headless /context parser, then to an error rather than a wrong number. Keeps a before/after ledger per lever. Shows a live context breakdown in a pane or above the prompt. Report-only by default; fix applies one approved project trim.
review UI rewrite
context-budget reaches L1 (reads) and passed claude plugin validate with warnings.
- Events hooked: 6
- API methods referenced: 16
- Access from classified calls: L1, reads: reads files, reads env vars, reads settings, reads mod state, draws
- Reads mod state: the scan does not record whose state, so this does not show that it reads another mod’s values
- Static scan, not a runtime test
Install hint
/plugin install context-budget --marketplace melodic-software/claude-code-pluginsFrom the repository's own marketplace. Confirm the plugin name in the repository's README before installing. Mods need Claude Code 2.1.287 or later.
Access
L1 Readsreads files, reads env vars, reads settings, reads mod state, drawsValidation
Passed with warningsListed under Context and usage meters for Claude Code.
View the source on GitHub Back to the list
What the scan recorded
- Observed events
- every prompt
- Hooks
session.start, session.end, prompt.submit, command.run {command=context-budget}, session.measure, ui.render {component=Pane, requestId=context-budget-live}, ui.render {component=AbovePrompt}- API calls
$.command.register, $.env.get, $.fs.read, $.fs.stat, $.session.root, $.session.surfaces, $.session.usage, $.settings.read, $.state.get, $.state.set, $.ui.close, $.ui.log, $.ui.open, $.ui.panes, $.ui.resolve, $.ui.toast- Validation
- Passed with warnings
- Scanned revision
f76277d549af- Marketplace passed
- melodic-software
- UI rewrite review
- UI hook source contains control-character strings. Review any values passed to next() as rewritten props.text; the scanner does not trace whether these strings reach that call. plugins/context-budget/hooks/mod-hook-enabled.ts:76, plugins/context-budget/hooks/mod-hook-enabled.ts:143, plugins/context-budget/hooks/mod-hook-enabled.ts:167
These are the hooks and API calls reported by claude plugin validate. Access levels describe the widest reach of those calls and are not safety ratings. Validation is a static check, not a runtime test, and a passing result does not prove that a mod works or is safe. What a mod can access and how the scan works.
More from melodic-software/claude-code-plugins
- context-usagePer-session context-window observability. A mod writes each session's context-window figures to a snapshot fi…
- desktop-notificationAlert you when Claude Code needs input: an audible terminal bell, an OSC 9 terminal notification, and an OS-n…
- display-redactionA mod that masks email addresses and secret-shaped text in what Claude Code draws, for recordings and screen…
- plugin-profilesSwitch which installed plugins are on with named profiles: one YAML file per profile, shipped, per user and p…
- rate-limitsRate-limit windows for loop lanes and Claude: a hooks module writes the subscription rate-limit windows to a…
- session-flowSession lifecycle: workflow (next stage), handoff (save-point, resume prompt), continue-in-background, keep-g…
- session-telemetryCollects telemetry about each Claude Code session (hook runs, session events and skill use) from this plugin'…
- themesBackdrop themes for the Claude Code desktop app. The first, bedroom, is a teenager's bedroom in the country,…
Badge for your README
Authors can show the latest scan result in their README. Each badge links to this page.
[](https://mods.aidojo.si/mods/melodic-software--claude-code-plugins--context-budget/)
[](https://mods.aidojo.si/mods/melodic-software--claude-code-plugins--context-budget/)