Clatter LabsHelp Center

How do I limit how many steps a Line CLI run takes?

How-toUpdated
line -p "fix all lint errors" --max-turns 20

After 20 model steps Line stops: "Stopped at --max-turns. Session … saved: continue with line -c -p "continue"." The exit code is 2 and JSON output has subtype: error_max_turns.

Interactive sessions also pause after a very long turn: "Paused after 300 steps in one turn. Say "continue" to keep going."

Related articles

Still need help?

Tried the steps above and still stuck? Email us. We usually reply within the first hour, and always within 24 hours. A full support team is with you.

Infrastructure questions, or permanent deletion of your data
infrastructure@clatterlabs.xyz
For deleting your whole account or the data of one service.