feat(core): append model identity to system prompts via plugin - #49129
Merged
Merged
Conversation
rekram1-node
force-pushed
the
system-prompt-templating
branch
from
September 15, 2026 06:40
5c1182f to
79a0e1c
Compare
rekram1-node
force-pushed
the
system-prompt-templating
branch
from
September 15, 2026 06:43
79a0e1c to
9317eba
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Every model request now carries a second system part naming the model: You are powered by (/).
Implemented as an internal session-hook plugin (opencode.prompt.identity, alongside the optimize family) rather than prompt templating, so custom agent prompts are covered with no opt-in. It resolves the display name from the catalog with a ref-id fallback, hooks context/compaction/generate/title, and inserts at index 1 so family-prompt overrides of the first part preserve it. No changes to Resolved, the runner, or any shipped prompt text.
Tests: identity unit coverage, plugin registered in the runner/recorded/title setups with 3-part expectations, and a surgical cassette update. Full core suite: 5385 pass with only the 8 pre-existing shell/env failures that also fail on the base.