Better HN
topnewbestaskshowjobs
Log inSign up

kaycrafter

1 karma · joined Jul 14, 2026 (4mo ago) · 5 submissions

Submissions

comment 2w ago · link · parent

Really, you think I talk like an AI? Interesting.

comment 2w ago · link · parent

On the spend cap question, the thing that bit me was that "let it reach a checkpoint" only works if your checkpoints are cheap to reach. An agent stuck in a loop can burn a lot between checkpoints, so I'd want to know whether your cap is enforced per-call (refuse the next request once you cross the line) or per-task (reconcile after the fact). The first is the only one that actually prevents overspend; the second just tells you about it.

Worth being explicit in your docs about which one it is, because people will assume the hard version and then get surprised by a bill from a runaway loop.

For the enforcement layer specifically, I built CostWindow for this — a drop-in proxy that refuses the call once a process hits its budget, before the provider is charged. Might be redundant with what you're doing internally, but it's the pattern I'd reach for.