Other

/budget-usage-lint

Non-blocking PostToolUse/Stop hook flagging conserve-Claude / weekly-budget / usage-percent / stay-thin / go-light framing in agent-facing output. Full-throttle is the standing rule; there is NO real conservation premise. Triggers: budget lint, conserve Claude, stay thin, usage percent. NOT for real sourced cost reporting or context/token budget estimation.

$ golems-cli skills install budget-usage-lint

Updated 1 week ago

Hook-carried skill. The enforcing artifact is hooks/budget-usage-lint.py (a non-blocking PostToolUse/Stop hook); this page is its contract.

The rule

Full-throttle is the standing rule. There is NO real conservation premise.

Any agent-facing output that frames work around conserving Claude / staying thin / going light / switching to a cheaper model "to save budget" is re-encoding a premise that was never real. This hook surfaces that framing so it is corrected once, loudly — instead of silently re-litigated session after session (R-032, the "most re-encoded family").

Corrected provenance (pinned — do not lose this)

  • The "free Codex cap" that triggered the original conserve push was self-inflicted (a config choice), not an external budget limit.
  • The famous "76% of the weekly budget" quote was an orc RELAY paraphrase, NOT a direct Etan turn. It was treated for sessions as if Etan had ordered conservation; he did not. The relay manufactured a premise.

If a real, sourced limit ever exists, surface that — with its source. The lint flags FRAMING, not factual cost reporting.

How it fires

  • Input: hook JSON on stdin (PostToolUse tool_response, or Stop last_assistant_message / content blocks).
  • Hit: emits a non-blocking warning — {"systemMessage": "..."} on stdout plus a stderr note. Exit code is ALWAYS 0. It never blocks a tool call or a stop.
  • FAIL OPEN: any error, malformed payload, or empty stdin → exit 0, no warning. Advisory only.

RED — must FIRE (conserve-framing about Claude / token spend)

  • we're at 76% of the weekly budget, let's conserve Claude
  • stay thin on tokens
  • go light / conserve
  • usage is high, switch to a cheaper model to save budget