You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]: agent definitions should have optional maxSteps #3631
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
This issue might be a duplicate of existing issues. Please check:
Limit Subagent Tree Depth #2906: Similar request to limit subagent execution, specifically focusing on tree depth limits to prevent excessive nested subagent creation
Feel free to ignore if none of these address your specific case.
Activity
github-actions commentedon Oct 31, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
nwthomas commentedon Oct 31, 2025
Hey @rekram1-node I'd love to knock this out next if you all are game
rekram1-node commentedon Oct 31, 2025
sure thing :)
nwthomas commentedon Nov 13, 2025
Still intending to finish this shortly. Have been super sick the last two weeks.
rekram1-node commentedon Nov 13, 2025
hey no prob heal up and no rush