claudemods

All Claude Code modsmelodic-software/claude-code-plugins

context-budget

A Claude Code mod in melodic-software/claude-code-plugins

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.

context-budget reaches L0 (draws and remembers) by its classified calls and passed claude plugin validate on Claude Code 2.1.302.

Install hint

/plugin install context-budget --marketplace melodic-software/claude-code-plugins

From 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 Reads filesother: $.state.get, other: $.state.set, draws

Validation

Passed on Claude Code 2.1.302

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, $.session.usage, $.state.get, $.state.set, $.ui.close, $.ui.open, $.ui.panes, $.ui.resolve, $.ui.toast
Validation on 2.1.302
Passed
Scanned revision
704bc4196da1
Marketplace passed
melodic-software

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. How the scan works.

More from melodic-software/claude-code-plugins

Badge for your README

Reach badge for context-budget Validation badge for context-budget

Authors can show the latest scan result in their README. Each badge links to this page.

[![reach](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/melodic-software--claude-code-plugins--context-budget-reach.svg)](https://mods.aidojo.si/mods/melodic-software--claude-code-plugins--context-budget/)
[![validates](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/melodic-software--claude-code-plugins--context-budget-validates.svg)](https://mods.aidojo.si/mods/melodic-software--claude-code-plugins--context-budget/)