[PR #6350] feat: add assistant info block to system prompt #11851

Open
opened 2026-02-16 18:16:47 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/6350

State: open
Merged: No


Add model identity information to the system prompt, informing the assistant of its name, model ID, provider, and the current OpenCode version.

Models often misidentify themselves when asked (see #3063 where Claude Sonnet 4.5 reported itself as "Claude 3.7 Sonnet"). This adds a single sentence to the prompt to make the assistant self-aware.

Fixes #9065

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6350 **State:** open **Merged:** No --- Add model identity information to the system prompt, informing the assistant of its name, model ID, provider, and the current OpenCode version. Models often misidentify themselves when asked (see #3063 where Claude Sonnet 4.5 reported itself as "Claude 3.7 Sonnet"). This adds a single sentence to the prompt to make the assistant self-aware. Fixes #9065
yindo added the pull-request label 2026-02-16 18:16:47 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11851