How to globally set the language for model thinking and answering #6933

Open
opened 2026-02-16 18:05:38 -05:00 by yindo · 3 comments
Owner

Originally created by @fashen97 on GitHub (Jan 20, 2026).

Originally assigned to: @rekram1-node on GitHub.

Question

The current preset prompt words are all in English. Even if I ask questions in other languages, the model's thinking process will still contain a lot of English. How to set up models to uniformly think and answer in a certain language

Originally created by @fashen97 on GitHub (Jan 20, 2026). Originally assigned to: @rekram1-node on GitHub. ### Question The current preset prompt words are all in English. Even if I ask questions in other languages, the model's thinking process will still contain a lot of English. How to set up models to uniformly think and answer in a certain language
Author
Owner

@github-actions[bot] commented on GitHub (Jan 20, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #7101: [FEATURE]: Allow custom system prompts in global, project or custom directories - requests the ability to customize system prompts at various levels
  • #7351: [FEATURE]: Add systemPrompt option to SDK like Claude Agent SDK - requests system prompt customization in the SDK for flexibility in setting language and behavior
  • #6827: Session summary mixes spanish and Russian - a related issue about language handling in the model's output

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 20, 2026): This issue might be a duplicate of existing issues. Please check: - #7101: [FEATURE]: Allow custom system prompts in global, project or custom directories - requests the ability to customize system prompts at various levels - #7351: [FEATURE]: Add systemPrompt option to SDK like Claude Agent SDK - requests system prompt customization in the SDK for flexibility in setting language and behavior - #6827: Session summary mixes spanish and Russian - a related issue about language handling in the model's output Feel free to ignore if none of these address your specific case.
Author
Owner

@zer0Black commented on GitHub (Jan 20, 2026):

Please refer to the response in #9615 :
This feature is available. Please write this requirement into the global AGENTS.md file, which should be located in the same directory as the opencode.json configuration file

My global AGENTS.md example:

# Output Language
- Output in Chinese 
- Generate AGENTS.md in Chinese using the /init command
@zer0Black commented on GitHub (Jan 20, 2026): Please refer to the response in #9615 : This feature is available. Please write this requirement into the global AGENTS.md file, which should be located in the same directory as the opencode.json configuration file My global AGENTS.md example: ``` # Output Language - Output in Chinese - Generate AGENTS.md in Chinese using the /init command ```
Author
Owner

@fashen97 commented on GitHub (Jan 20, 2026):

@zer0Black thanks

@fashen97 commented on GitHub (Jan 20, 2026): @zer0Black thanks
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6933