Feature 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