00
the demo
real output
Every command, one agent.
Each pane is what the costcatch CLI printed for the same project. Pick a command in the list.
Six calls and eight warnings, for $0.08. At 1,000 runs a day, this agent would cost $2,525 a month.
captured outputexit 1
costcatch --save python research_agent.py┌──────────────────────────────────────────────────────────────────────────────────────────────┐ │ costcatch claude-sonnet-4-20250514 · 18.0s $0.08 │ │ │ │ + Step 1 2.1s 537 tok in → 96 tok out $0.00305 │ │ ├─ > read_file(path="logs/checkout.log") → ~7.2k tok │ │ └─ × get_ticket(id="INC-2041") │ │ failed: TicketAPIError: ticket INC-2041 not found │ │ │ │ + Step 2 3.3s 6,061 tok in → 38 tok out $0.02 │ │ └─ × get_ticket(id="INC-2041") │ │ failed: TicketAPIError: ticket INC-2041 not found │ │ ∆ context grew 11.3× (537 → 6,061 input tok) │ │ │ │ × Step 3 286ms HTTP 429 │ │ └─ rate_limit_error Number of request tokens has exceeded your per-minute rate limit │ │ │ │ + Step 4 3.0s 6,135 tok in → 41 tok out $0.02 │ │ →→ retry of step 3 │ │ └─ × get_ticket(id="INC-2041") │ │ failed: TicketAPIError: ticket INC-2041 not found │ │ │ │ ∆ Step 5 4.7s 6,210 tok in → 300 tok out $0.02 █████ │ │ ∆ output cut off (max_tokens): the answer is incomplete │ │ │ │ + Step 6 2.3s 6,373 tok in → 74 tok out $0.02 │ │ └─ > submit(summary="Payment worker ran out of DB connectio…) → no result │ │ │ │ ── summary │ │ 6 LLM calls · 5 tool calls · 18.0s · $0.08 │ │ × 1 failed LLM call · 3 failed tool calls │ │ 15.7s in LLM calls · 2.3s between calls (your code and tools) │ │ 1 repeated prompt │ │ 25k tok in → 549 tok out │ │ at 1 run/day = $2.53/mo · at 100 runs/day = $252.55/mo · at 1000 runs/day = $2,525.49/mo │ │ │ │ ── warnings │ │ ● Step 3 failed: HTTP 429 rate_limit_error: Number of request tokens has exceeded your per-… │ │ ● get_ticket() was called 3 times with the same arguments (steps 1, 2 and 4); all 3 failed:… │ │ ● Context grew 12× across calls (537 → 6,373 tokens) │ │ ● Step 6 asked for submit(); the program exited with code 1 before sending its result back … │ │ ● Step 5 was cut off (max_tokens): the answer is incomplete │ │ ● Step 1: read_file() returned ~7.2k tokens, 100% of step 2's prompt, sent 5 times │ │ ● Step 4 retried step 3 (which failed), same prompt re-sent │ │ ● Context grew 11.3× between steps 1 and 2 (537 → 6,061) │ │ run 2026-11-18T09-09-15 │ └──────────────────────────────────────────────────────────────────────────────────────────────┘ + Trace saved: ~/oncall-agent/.costcatch/2026-11-18T09-09-15-research_agent.json
The agent is a Python on-call assistant that reads a log, looks up a ticket and files a summary. Its first version keeps retrying a ticket that does not exist, gets rate-limited, runs out of tokens and crashes.
diff, watch and replay show the fixed version. It talks to a local test API, not a real provider.