/pratyaksha-context-eng-harness:budget [last <n> | reset]from pratyaksha-context-eng-harness
Show local token budget gauge plus recent cost ledger entries (per-model totals, last N calls). Optionally reset the gauge.
Ships in pratyaksha-context-eng-harness. Installing the plugin adds it to Claude Code.
Show the local token budget gauge and recent cost ledger entries for the current Claude Code session.
/budget # show recent 20 ledger entries
/budget last 50 # show recent 50 ledger entries
/budget reset # zero the local gauge (does not clear the ledger)
When this command is invoked:
last <n> if present (default 20).reset, ask for explicit confirmation before
calling the underlying tool — the gauge is informational only, but
resetting it mid-session loses the running total.budget_status({last_n: n}) and format with the template below.## Local token budget
**Gauge:** {budget_used} / {budget_total} ({pct_used:.1f}% used, {remaining} remaining)
**Status:** {exhausted ? "⛔ EXHAUSTED" : remaining < budget_total * 0.1 ? "⚠️ near limit" : "✅ healthy"}
### Cost ledger
- Total recorded calls: {ledger_n_calls}
- Total recorded tokens: {ledger_total_tokens}
#### By model
| Model | Tokens |
|---|---|
| {model} | {tokens} |
| ... | ... |
#### Recent (last {n})
| ts (UTC) | tokens | model | note |
|---|---|---|---|
| {iso(r.ts)} | {r.tokens} | {r.model} | {r.note} |
| ... | ... | ... | ... |
---
**Tip:** the gauge is a local mirror — Claude Code's own usage telemetry
is authoritative. Budget figures here exist so the agent can self-throttle
without round-tripping the runtime.
budget_record with the spend it just incurred. The
manas and buddhi agents do this automatically; user-level
/sublate, /compact-now, and /context-status are read-only and
cost approximately one MCP call each.~/.cache/pratyaksha/cost_ledger.jsonl
— you can tail -f it during long sessions to watch spend in real time./budget after a reset will still show the historical entries.What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub sharathsphd/pratyaksha-context-eng-harness --plugin pratyaksha-context-eng-harness4 commands in this plugin
/compact-now/compact-nowForce a boundary-triggered compaction on the recent conversation window with optional scope (qualificand, task_context) and z-score threshold./context-status/context-statusShow current state of the Pratyakṣa context store — qualificand surface, per-bucket counts, mean precisions, witness invariant token count, and recent ledger spend./sublate/sublateManually sublate (bādha) one element by another, or sublate with new evidence. Refuses if newer precision does not strictly exceed older.Other plugins' commands for the same job