Vibe Code Catalog Commands SOPs Market Radar GitHub

claude-code, codex, api15 minintermediateverified: claude-fable-5, 2026-07

SOP: Cap an agent run's spend before it runs away

When done, long runs stop (or wrap up cleanly) at a budget you set instead of

burning your window/wallet. 15 minutes; needs Node (for ccusage) or an API key

with limits access.

Before you start

Steps

Verify the whole thing

Start a deliberately oversized task with a small budget. Expected: work →

burn checks in the log → clean wrap-up near 80% → checkpoint file exists →

nothing ran past the cap.

Rollback

Remove the budget clause from prompts/skills; delete the console cap. ccusage

installs nothing permanent (npx).

When it breaks

SymptomCauseFix
ccusage shows nothingno local transcript data (fresh machine/plan)fall back to wall-clock budgeting via date (see /goal)
Agent ignores the 80% rulebudget stated once, buriedrepeat it in the checkpoint file header the agent re-reads
API loop overshootscounting input+output against an output-sized capdecide which you're capping; count that consistently

Changelog

Get new packs + re-verification alerts

One email when a pack ships or gets re-benchmarked on a new model. No noise.