Add opusplan builtin alias to Claude model routing#34263
Merged
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add support for opus and opusplan model aliases in claude engine
Add May 23, 2026
opusplan builtin alias to Claude model routing
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new built-in model alias (opusplan) to prevent ANTHROPIC_MODEL=opusplan from falling through to broader aliases (e.g., any) and unintentionally resolving to lower-tier models, by explicitly routing it to Opus with effort=high.
Changes:
- Added
opusplanto the embedded builtin alias map, expanding toopus?effort=high. - Extended unit tests to assert
opusplanis present and maps exactly to["opus?effort=high"]. - Updated reference documentation to include
opusplanand note that some meta-aliases include baked-in model parameters.
Show a summary per file
| File | Description |
|---|---|
| pkg/workflow/data/model_aliases.json | Adds the new builtin alias opusplan expanding to opus?effort=high. |
| pkg/workflow/model_aliases_test.go | Verifies opusplan exists in builtin aliases and resolves to the expected parameterized target. |
| docs/src/content/docs/reference/model-tables.md | Documents opusplan and clarifies that meta-aliases may embed model parameters. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 3/3 changed files
- Comments generated: 0
Contributor
|
|
This was referenced May 24, 2026
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.
ANTHROPIC_MODEL=opusplanwas not recognized by AWF, so Claude workflows silently fell through the alias chain and often resolved to Sonnet viaany. This change makesopusplana first-class builtin alias and maps it to Opus with high reasoning effort.opusplanto builtin model aliases inpkg/workflow/data/model_aliases.json.Behavioral coverage in tests
pkg/workflow/model_aliases_test.goto:opusplanexists in the builtin alias set,["opus?effort=high"].Reference docs alignment
docs/src/content/docs/reference/model-tables.mdto documentopusplanand clarify that some meta-aliases include baked-in model parameters (e.g.,effort=high).pr-sous-chef: updated branch to refresh mergeability. Run: https://github.com/github/gh-aw/actions/runs/26339837877