Skip to content

How to make opencode always reply in another language (for example: Chinese), including the /init command. #2594

Closed

Description

@canomh
No description provided.

Activity

  1. github-actions commented on Sep 14, 2025

    @github-actions
    Contributor

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

    Feel free to ignore if none of these address your specific case of configuring opencode to always respond in Chinese.

  2. rekram1-node commented on Sep 14, 2025

    @rekram1-node
    Contributor

    I think you could make a global AGENTS.md and include things like:

    I only speak mandarin so you must always respond in chinese.
    
    Assume I know little to no english.
    
    <CRITICAL>
      ALWAYS RESPOND IN CHINESE
    </CRITICAL>
    

    You most likely would want this prompt to be at least a few sentences and consider using xml tag style sections to help llm.

    Here are docs for AGENTS.md files. You also may want your prompt to be in chinese instead of english too btw.

  3. self-assigned this
    on Sep 14, 2025
  4. rekram1-node commented on Sep 14, 2025

    @rekram1-node
    Contributor

    Can you try that and lmk how it works for u?

  5. canomh commented on Sep 15, 2025

    @canomh
    Author

    I followed the instructions given above to make the configuration, and then attempted to interact with OpenCode in 2 to 3 different models. It works for me either way.

    Additionally, in the "thinking block" of the reasoning model, I observed "... ,but they previously stated that they only speak Mandarin and want me to always respond in Chinese. I should respond in Chinese as requested. …”

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions