The problem
Claude Code sometimes gets stuck in on an iteration, running many turns and triggering compaction repeatedly and never arriving at a solution until usage limits are hit. However, this can often be fixed by killing the iteration and restarting the same task with
Proposed solutions
In config.yaml, could we add support for either:
- An iteration timeout in minutes, or
- Support for the
--max-turns flag documented here?