[FEATURE]: Native AskUserQuestionTool (just like claude code) #4196

Closed
opened 2026-02-16 17:42:59 -05:00 by yindo · 1 comment
Owner

Originally created by @vkmenon on GitHub (Jan 4, 2026).

Originally assigned to: @thdxr on GitHub.

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

Opencode should also have an AskUserQuestionTool built in.

Subsequently, similar to CC's plan mode, OC could call AskUserQuestionTool at the end of plan mode and can officially ask permission to switch back to build mode (unsure how this would work with custom agents like in OhMyOpencode..).

Recently Opus 4.5 has been calling this tool (must've been RL'd to do this) more often right before or even sometimes during information phase and it helps clarify things for the agent.

I think this could be a useful primitive for opencode in general.

edit: seems like CC has ExitPlanMode which AskUserQuestionTool mode could call after plan agent is accepted?


side note: i often switch between OC+OmO and CC, and have been using this interview snippet which showed up on twitter and got kinda popular - https://gist.github.com/robzolkos/40b70ed2dd045603149c6b3eed4649ad

would love to be able to do this in opencode!

Originally created by @vkmenon on GitHub (Jan 4, 2026). Originally assigned to: @thdxr on GitHub. ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request Opencode should also have an `AskUserQuestionTool` built in. Subsequently, similar to CC's plan mode, OC could call AskUserQuestionTool at the end of plan mode and can officially ask permission to switch back to build mode (unsure how this would work with custom agents like in OhMyOpencode..). Recently Opus 4.5 has been calling this tool (must've been RL'd to do this) more often right before or even sometimes during information phase and it helps clarify things for the agent. I think this could be a useful primitive for opencode in general. edit: seems like CC has `ExitPlanMode` which AskUserQuestionTool mode could call after plan agent is accepted? --- side note: i often switch between OC+OmO and CC, and have been using this interview snippet which showed up on twitter and got kinda popular - https://gist.github.com/robzolkos/40b70ed2dd045603149c6b3eed4649ad would love to be able to do this in opencode!
yindo added the discussion label 2026-02-16 17:42:59 -05:00
yindo closed this issue 2026-02-16 17:42:59 -05:00
Author
Owner

@rekram1-node commented on GitHub (Jan 4, 2026):

yeah on the list

@rekram1-node commented on GitHub (Jan 4, 2026): yeah on the list
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4196