Skip to content

[FEATURE]: agent definitions should have optional maxSteps #3631

@rekram1-node

Description

@rekram1-node

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

Some people want to limit their subagents, I mean this would most likely work for primary agents too but the usecase is largely for subagents, once N steps are hit it should stop.

On the n-1 step, it should remove all tools from the request to force a text response

We control the agentic loop in packages/opencode/src/session/prompt.ts

This feature is lower priority for us but it is a good addition for new contributors

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions