Allow for system prompts for models hosted elsewhere #3829

Open
opened 2026-02-16 17:41:37 -05:00 by yindo · 1 comment
Owner

Originally created by @bcardarella on GitHub (Dec 24, 2025).

Originally assigned to: @thdxr on GitHub.

Description

I notice a significant difference in behavior and outcomes when using Opus 4.5 through Antigravity vs through Anthropic. The same for when I used Opus 4.5 via OpenRouter.

I don't know, but I suspect that the ANTHROPIC.txt is only being used for the Anthropic hosted models.

I couldn't find a way to force Opencode to use the ANTHROPIC.txt prompt for specific providers/model combinations. If that doesn't exist it would be great to have that option.

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @bcardarella on GitHub (Dec 24, 2025). Originally assigned to: @thdxr on GitHub. ### Description I notice a significant difference in behavior and outcomes when using Opus 4.5 through Antigravity vs through Anthropic. The same for when I used Opus 4.5 via OpenRouter. I don't know, but I suspect that the ANTHROPIC.txt is only being used for the Anthropic hosted models. I couldn't find a way to force Opencode to use the ANTHROPIC.txt prompt for specific providers/model combinations. If that doesn't exist it would be great to have that option. ### OpenCode version _No response_ ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the bug label 2026-02-16 17:41:37 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 24, 2025):

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

  • #3195: Dynamic system prompts for custom agents
  • #5728: [FEATURE]: Ability to override tool prompts - create model toolsets
  • #1891: Per-Model Instructions

These issues discuss similar functionality for allowing custom or model-specific system prompts and configuration. Feel free to ignore if your specific case about model providers (Antigravity, OpenRouter, etc.) is not addressed by these.

@github-actions[bot] commented on GitHub (Dec 24, 2025): This issue might be a duplicate of existing issues. Please check: - #3195: Dynamic system prompts for custom agents - #5728: [FEATURE]: Ability to override tool prompts - create model toolsets - #1891: Per-Model Instructions These issues discuss similar functionality for allowing custom or model-specific system prompts and configuration. Feel free to ignore if your specific case about model providers (Antigravity, OpenRouter, etc.) is not addressed by these.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3829