Advanced
Open
Pro
Diagnosing Why Turn Caps Alone Weren't Enough
A nightly triage job runs claude -p once per open issue with
--max-turns 8 and no --max-budget-usd. Most nights it costs about
$2 total across ~40 issues. One night, cost jumps to $40, but the run
still completed within its turn caps for every issue — nothing errored
out or hit the 8-turn ceiling.
- Give a concrete mechanism by which a run can stay within
--max-turnsand still spend far more than typical. - Why would adding
--max-budget-usdcatch this failure mode when--max-turnsalone didn't? - Besides adding a budget cap, what's one change to the prompt itself that would reduce the chance of this recurring?
Share this question