Builder win: soft warn / hard stop for coding-agent spend (Cursor + Claude Code)

I’ve been running Cursor and Claude Code hard enough that mid-loop spend became the problem, not model quality.

The loop feels cheap while you’re in it. The invoice (or rate limit) shows up later. Vendor meters and “upgrade Max” don’t give you a session-level control plane — and alerts that fire after the spend already happened aren’t controls.

What I built: LoopBudget. Sidecars / Stop hooks watch the session trail, estimate spend, and apply a policy — soft warn at a threshold, hard stop at a cap — then write a receipt you can hand to finance (or your future self). Cursor and Claude Code both work today via a static CLI (no Node on the GA path).

What I learned shipping it:

- “Hard stop” in early access is a policy decision + alert + receipt first — not a mid-tool SIGKILL. Killing mid-edit creates worse failure modes than surprise spend.

- Soft warn has to come first or the product is just a brick wall.

- Context re-send makes cost climb faster than turn count; dollar caps alone lag that. Progress-based stops (no file change / no new tool result) are the next primitive.

- Observability (Sentry-style traces) and FinOps policy are different jobs. Seeing tokens ≠ capping the loop.

Invite-only early access for people already hitting this pain:

https://loopbudget.com

PH / CLI if useful:

https://www.producthunt.com/products/loopbudget

https://github.com/LoopBudget/cli

Happy to answer sidecar wiring or where soft vs hard should trip for your setup.