Skip to content

[FEATURE] Add --max-turns flag for automatic session limits #21

@jwesleye

Description

@jwesleye

Feature Description

Automatically stop session after a maximum number of conversation turns.

Problem/Motivation

For unattended or automated sessions, need a way to prevent infinite loops or runaway conversations.

Proposed Solution

chat_loop myagent --max-turns 10

# After 10 queries/responses:
# ⚠️ Maximum turns reached (10/10)
# Session ending gracefully...

Benefits

  • Safety for automated sessions
  • Prevent infinite loops
  • Controlled testing
  • Pairs well with --budget for dual limits

Priority

  • Critical
  • High
  • Medium
  • Low

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requeststatus: staleNo activity for extended period

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions