[PR #8982] feat: add Question tool instructions to system prompts #12938

Closed
opened 2026-02-16 18:17:49 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/8982

State: closed
Merged: No


Summary

  • Add instructions for using the structured Question tool to the main provider system prompts (anthropic, gemini, qwen)
  • The Question tool was already registered and available but models weren't being instructed to use it, resulting in plain text questions instead of the structured multi-choice UI
  • This aligns with how the plan agent already instructs models to use the question tool for clarifications

Changes

  • anthropic.txt: Added "Asking questions" section with guidance on when and how to use the Question tool
  • gemini.txt: Added "Asking Questions" section in the same style as other operational guidelines
  • qwen.txt: Added "Asking questions" section similar to anthropic.txt

Test plan

  • Start a session with the build agent (default)
  • Ask a question that requires clarification (e.g., "help me add authentication to my app")
  • Verify the model uses the Question tool with structured options instead of plain text questions
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/8982 **State:** closed **Merged:** No --- ## Summary - Add instructions for using the structured Question tool to the main provider system prompts (anthropic, gemini, qwen) - The Question tool was already registered and available but models weren't being instructed to use it, resulting in plain text questions instead of the structured multi-choice UI - This aligns with how the plan agent already instructs models to use the question tool for clarifications ## Changes - `anthropic.txt`: Added "Asking questions" section with guidance on when and how to use the Question tool - `gemini.txt`: Added "Asking Questions" section in the same style as other operational guidelines - `qwen.txt`: Added "Asking questions" section similar to anthropic.txt ## Test plan - [ ] Start a session with the build agent (default) - [ ] Ask a question that requires clarification (e.g., "help me add authentication to my app") - [ ] Verify the model uses the Question tool with structured options instead of plain text questions
yindo added the pull-request label 2026-02-16 18:17:49 -05:00
yindo closed this issue 2026-02-16 18:17:49 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12938