/cost-guardian:cost-optimize [--minimal|--balanced]from cost-guardian
Analyzes recorded tool-event estimates and suggests up to three reversible workflow experiments to reduce costs.
Ships in cost-guardian. Installing the plugin adds it to Claude Code.
What the command file sets; muted values are Claude Code's defaults
Run env CLAUDE_PLUGIN_DATA="${CLAUDE_PLUGIN_DATA}" "${CLAUDE_PLUGIN_ROOT}/scripts/cost_guardian.py" session
and inspect only the recorded operation names and heuristic event sizes.
If multiple active ledgers are returned, keep hypotheses separate by session ID and disclose that the invoking session cannot be identified. Do not aggregate or select a ledger.
Offer at most three reversible experiments, such as narrowing a large read or batching repeated searches. Clearly label each suggestion as a hypothesis. Do not assign dollar savings, percentage savings, monthly projections, model switches, cache discounts, quality scores, or claims about task complexity—the hook data cannot substantiate them.
7-day visitors to each command page
5 commands in this plugin
/budgetEstimate budgetConfigure a session budget for heuristic tool-event estimates/costActive estimatesView active heuristic tool-event estimate ledgers/cost-reportEstimate reportReport recorded heuristic tool-event estimates/cost-shareLocal estimate exportCreate a local text or JSON export of heuristic estimatesnpx claudepluginhub belkins/cost-guardian --plugin cost-guardianOther plugins' commands for the same job