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.

review UI rewrite

context-budget reaches L1 (reads) and passed claude plugin validate with warnings.

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 Readsreads files, reads env vars, reads settings, reads mod state, draws

Validation

Passed with warnings

Listed 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

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/)