Skip to content

Add --max-turns N flag (or raise default 10 cap) for headless runs #384

@vipulgupta2048

Description

@vipulgupta2048

Feature Description

Add a --max-turns N flag for headless / -p mode so the default turn cap can be raised, and surface a clear warning when the cap is hit instead of ending silently.

cmd -p "" --max-turns 50

Optionally raise the default cap above 10 for headless runs.

Use Case

Hit the 10-turn cap on a moderately-sized migration task in headless mode. The conversation was silently truncated at ~30% completion — no warning, no signal until the output stopped. For agent-driven loops and longer automated tasks, the current cap is too low and the silent truncation makes it hard to detect.

Additional Context

How important is this to you?

Important for my workflow

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions