Skip to content

[FEATURE]: Support custom system prompt per model in config #18177

Closed as not planned

Description

@mjdouglas

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

There are earlier issues, but they don't follow the template and seem dead.

Describe the enhancement you want to request

When configuring custom models via opencode.json, there's no way to specify a model-specific system prompt. The default behavior matches model IDs to built-in prompts (claude, gemini, gpt, etc.), but unknown models fall back to a generic prompt with no way to customize it.

The existing agent-level prompt field isn't sufficient here because agents and models are orthogonal concepts. A single model can be used across multiple agents, and a single agent can be switched between models. The system prompt should follow the model, not the agent — for example, a custom model may need specific formatting instructions or persona regardless of which agent uses it.

A prompt field on the model config would let users define a system prompt tailored to their model.

Activity

  1. github-actions commented on Mar 19, 2026

    @github-actions
    Contributor

    This issue doesn't fully meet our contributing guidelines.

    What needs to be fixed:

    • The title should start with [FEATURE]: (e.g. [FEATURE]: Support custom system prompt per model in config)
    • The feature request template requires a verification checkbox confirming you have searched for existing issues

    Please edit this issue to address the above within 2 hours, or it will be automatically closed.


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

    If you believe this was flagged incorrectly, please let a maintainer know.

  2. changed the title [-]Support custom system prompt per model in config[/-] [+][FEATURE]: Support custom system prompt per model in config[/+] on Mar 19, 2026
  3. github-actions commented on Mar 19, 2026

    @github-actions
    Contributor

    Thanks for updating the issue! It now meets our contributing guidelines. Appreciate you taking the time to fix it.

  4. github-actions commented on May 19, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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