From Dev.to
How to detect Claude Code usage limits in headless runs (claude -p)
If you run claude -p unattended, the most expensive bug is the one where a usage-limit failure gets retried by the next successful run mentioned "rate limit". Run with --output-format json. The final...
