Skip to content

[FEATURE]: Allow disabling or replacing the built-in provider system prompt #39537

Closed

Description

@violog

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 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).

Activity

  1. github-actions commented on Jul 29, 2026

    @github-actions
    Contributor

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

    You already noted #34774 in your issue. Combined with #15457, these cover much of the same ground.

  2. violog commented on Aug 1, 2026

    @violog
    Author

    duplicate issue

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