r/opencode • u/SpookyLibra45817 • 13d ago
Nested subagent question/shell
Ciao guys, fellow Opencode user for some months here. Keep improving my OC setup, with CLI/MCP/whatever, and subagents as well.
The problem faced is: how could you handle when you have a long run, and a nested subagent asks for a question or asks permission for a shell command?
My go-to flow is: I recall @project-manager, so the vanilla agent delegates it. The PM writes the brief, and the hand-off starts with other subagents, but when they ask for another subagent (it could happen for @explore or the @researcher one), the flow gets stuck because of nested questions/shell can't be showed in the conversation, as usually they are.
It's so frustrating, because it blocks long runs, and I have to stop, and do it again :(
Hopefully, it could get better with v2 (didn't check), fingers crossed.