Skip to content

[FEATURE]: customize the "max steps reached" prompt #28074

Closed as not planned
Closed as not planned

Description

@CalmCapybara

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

I'd like to request a new plugin hook (e.g., experimental.session.maxSteps) that allows overriding the system prompt sent to the agent when the maximum number of steps (steps limit) is reached.

The problem: In multi-agent workflows, when a subagent hits the steps limit, it receives the hardcoded "CRITICAL — MAXIMUM STEPS REACHED" prompt which forces it to respond with text only and disables all tools. This effectively destroys the subagent's response — instead of completing its task (which it may be very close to finishing), it just dumps a summary of what was done and what remains. The parent agent expects a real, completed response — it may be parsing the output, checking for specific data, or relying on the subagent to have modified files before returning.

A configurable prompt per agent would solve this by allowing:

  • Telling the subagent to return its results in a structured format instead of a narrative summary
  • Different max-steps behavior for different agent roles (researcher vs. editor)

Activity

  1. github-actions commented on Jul 17, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

  2. jucajuca commented on Dec 2, 2026

    @jucajuca

    related issue:
    #67735

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions