context-budget

by Melodic Software · ★ 23 · updated today

PanesBandsCommandsPromptvalidates

0

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...

install context-budget

Install

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

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
session.startsession.endprompt.submitcommand.runsession.measureui.render
API calls
$.command.register$.session.usage$.state.get$.state.set$.ui.close$.ui.open$.ui.panes$.ui.resolve$.ui.toast
Draws
PaneAbovePrompt
Can see
every prompt
Reach
level 1 of 3 other: $.state.getother: $.state.setdraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/melodic-software/claude-code-plugins
Path in repo
plugins/context-budget
Source commit
a8de0a4 the exact code the scan read
Author
Melodic Software @melodic-software
License
MIT
First published
Last pushed
First listed here

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.

More from melodic-software/claude-code-plugins

context-guard

melodic-software/claude-code-plugins

Per-session context-window observability. A mod writes each session's context-window figures to a snapshot file and shows the person a toast and a transcript line when the context zone (smart, acceptable or dumb, from bands in zones.json) worsens; with model_notices on (off by default) it also tells Claude the zone at each crossing, approach and compaction. /context-guard prints status and...

★ 23BandsGuardsCommands

display-redaction

melodic-software/claude-code-plugins

A mod that masks email addresses and secret-shaped text in what Claude Code draws, for recordings and screen shares. It changes the screen only; the transcript, the model's context and the files on disk are untouched, so it is not a privacy or data control.

★ 23ReskinsCommands

harness-ops

melodic-software/claude-code-plugins

Claude Code operations: audit-skill-visibility (skills the listing budget hides), inventory (all commands, skills, agents, tools, plugins), audit-install-state (~/.claude), audit-performance (slowness), audit-native-overlap (skills duplicating built-ins), observability (telemetry), known-issues (Claude bugs, status), changelog, behavior-probes, prerequisites, check, machine-profile, plugins...

★ 23GuardsPromptAutomation

rate-limit-guard

melodic-software/claude-code-plugins

Shared rate-limit guard for loop lanes and Claude: a hooks module writes the subscription rate-limit windows to a fixed machine-scope file and toasts window changes (telling Claude too only with model_notices on, off by default), a StopFailure hook records rate-limit stops reactively, and a reader contract fixes how consuming sessions pause and resume.

★ 23BandsGuardsCommands