context-budget

context-budget is a plugin for Claude Code from melodic-software/claude-code-plugins. Its token cost is not measured, scanned A, original, MIT.

A measurement tool for the fixed startup information that Claude Code loads before working, including the space used by individual built-in tools.

In plain words
What is it for?
Use it to measure context usage, compare settings before and after changes, and keep a record of the measured differences.
Why use it?
It shows which settings or tools consume the available conversation context, so you can make informed configuration changes instead of guessing.

Plugin for Claude Code

Written for Claude Code: a Claude Code plugin manifest. Also seen: mentions Claude Code.

Good fit Use it to measure context usage, compare settings before and after changes, and keep a record of the measured differences.

Compare 6 plugins from other repositories ↓
Install in Claude Code
/plugin marketplace add melodic-software/claude-code-plugins
/plugin install context-budget
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/melodic-software/claude-code-plugins

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for context-budget

README.md
[![agentmods](https://agentmods.dev/badge/plugins/melodic-software/claude-code-plugins/context-budget/github.svg)](https://agentmods.dev/plugins/melodic-software/claude-code-plugins/context-budget)
Your own site
<a href="https://agentmods.dev/plugins/melodic-software/claude-code-plugins/context-budget"><img src="https://agentmods.dev/badge/plugins/melodic-software/claude-code-plugins/context-budget/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for context-budget

Your own site · 80×15
<a href="https://agentmods.dev/plugins/melodic-software/claude-code-plugins/context-budget"><img src="https://agentmods.dev/badge/plugins/melodic-software/claude-code-plugins/context-budget.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session not measured What this adds to a session before it is invoked.
When invoked not measured Not applicable: nothing here is loaded into a session.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Security

Grade A, and why

context-budget scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/context-budget/.claude-plugin/plugin.json · 43 lines

What it actually says

{
  "name": "context-budget",
  "description": "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.",
  "author": {
    "name": "Melodic Software",
    "email": "[email protected]"
  },
  "version": "2.2.2",
  "license": "MIT",
  "engines": {
    "claude-code": ">=2.1.287"
  },
  "types": "./types/index.d.ts",
  "userConfig": {
    "context_budget_enabled": {
      "type": "boolean",
      "title": "Live breakdown module",
      "description": "Runs the live context breakdown module (pane, above-prompt band, and /context-budget command). Default true. Set false to turn the module off; overrides docs/conventions/context-budget.yaml for this user. When off, nothing draws or measures regardless of live_display.",
      "default": true
    },
    "live_display": {
      "type": "string",
      "title": "Live context display",
      "description": "Where the live context breakdown shows. pane opens it in a pane when you run /context-budget live; band keeps it above the prompt; off shows nothing and measures nothing. /context-budget live pane, band or off changes it for the session.",
      "default": "pane",
      "options": ["pane", "band", "off"]
    }
  },
  "keywords": [
    "context-window",
    "startup-payload",
    "token-budget",
    "tool-schemas",
    "measurement",
    "attribution",
    "ledger",
    "skill"
  ],
  "metadata": {
    "category": "claude-code"
  }
}
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed e74a9dc416c5
  2. yesterday Changed · +6 lines 14c32db0e51d
  3. 3d ago Changed fe5cea618d27
  4. 5d ago Changed 48eb86c97280
  5. 6d ago Changed f9a5e0e18825
  6. 8d ago Changed · +3 lines eaa72b1b935c
  7. 9d ago Changed ea6539020d20
  8. 11d ago Changed 76a90f163e58
  9. 12d ago Changed 6a2a1f205839
  10. 13d ago First seen · 34 lines scan A 3a72b41d9709

Subscribe to this mod's changes

context-budget is a plugin published in the GitHub repository melodic-software/claude-code-plugins (33 stars, last pushed today), licensed MIT. Its token cost is not measured: this kind of file is read by the harness, not the model. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

context-budget compared with plugins from other repositories

context-budget next to 6 plugins from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
context-budgetmelodic-software/claude-code-pluginsPlugin33todayMITA—Claude Code
humanizerblader/humanizerPlugin75k11d agoMITA—Claude Code
claude-plugins-official marketplaceanthropics/claude-plugins-officialPlugin49kyesterdayApache-2.0A—Claude Code
nextjsvercel/next.jsPlugin144ktodayMITA—Claude Code
themes-examplegoogle-gemini/gemini-cliPlugin109ktodayApache-2.0A—Gemini CLI
android-skillsandroid/skillsPlugin11k7d agoApache-2.0A—Claude Code
knowledge-work-plugins marketplaceanthropics/knowledge-work-pluginsPlugin37k4d agoApache-2.0A—Claude Code