Add `--max-turns` CLI option

Resolved 💬 4 comments Opened Feb 20, 2026 by 0kenx Closed Feb 21, 2026

What variant of Codex are you using?

CLI

What feature would you like to see?

--max-turns
Limit the number of agentic turns. Exits with an error when the limit is reached. No limit by default.

Additional information

_No response_

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗