You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]: Allow disabling or replacing the built-in provider system prompt #39537
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
OpenCode selects a system prompt based on model family (anthropic.txt, gemini.txt, etc.) with no config option to disable or replace it.
This contradicts the tool's openness — anyone wanting full control over what gets sent to the model (custom personas, stripped-down prompts, compliance requirements) has no recourse short of patching the source.
A config option like "system_prompt": false or "system_prompt": "path/to/custom.txt" at the agent level would address this. The existing agent.prompt field is append-only.
Related: #34774 goes the opposite direction (protecting the built-in from accidental replacement).
This issue might be a duplicate of existing issues. Please check:
[FEATURE]: System prompt mode switcher (Default/Light) #15457: [FEATURE]: System prompt mode switcher (Default/Light) — proposes a similar mechanism to control or replace the built-in per-model system prompts, including a config option in opencode.json
Activity
github-actions commentedon Jul 29, 2026
This issue might be a duplicate of existing issues. Please check:
opencode.jsonYou already noted #34774 in your issue. Combined with #15457, these cover much of the same ground.
violog commentedon Aug 1, 2026
duplicate issue