feat(model-overlays): add sonnet-5 overlay + resolver mapping#2247
Open
chrisquorum wants to merge 1 commit into
Open
feat(model-overlays): add sonnet-5 overlay + resolver mapping#2247chrisquorum wants to merge 1 commit into
chrisquorum wants to merge 1 commit into
Conversation
Give claude-sonnet-5 a dedicated overlay instead of the generic claude fallback: inherits the claude base plus Sonnet-5 family nudges (literal instructions, scope-to-request, complexity-tracked verbosity). Adds the models.ts resolver mapping and a gate-tier test mirroring the opus overlays.
|
Merging to
After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here |
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.
What
Claude Sonnet 5 (
claude-sonnet-5) is the current Sonnet-tier flagship — near-Opusquality on coding and agentic work. Today
claude-sonnet-5*resolves throughmodels.tsto the genericclaudeoverlay. This adds a dedicatedsonnet-5overlay so it inherits the
claudebase plus Sonnet-5 family nudges.Changes
model-overlays/sonnet-5.md(new) —{{INHERIT:claude}}+ three nudges: literalinstruction following (state scope explicitly), scope work to the request (raise
effort rather than prompting around shallow reasoning at low effort), and
verbosity that tracks task complexity.
scripts/models.ts— addsonnet-5toALL_MODEL_NAMESand aresolveModelmapping (
/^claude-sonnet-5(-|$)/ → sonnet-5), placed before the genericclaudefallback.
claude-sonnet-4-6still falls through to genericclaude.test/model-overlay-sonnet-5.test.ts(new) — gate-tier test mirroring theopus-4-*overlay tests.Notes
following, effort-scoped work, complexity-tracked verbosity), kept to the short
form the other overlays use. Retune as more patterns emerge.
Validation
resolveModel('claude-sonnet-5')/'claude-sonnet-5-sol'→sonnet-5;claude-sonnet-4-6→claude,claude-opus-4-7, and bareclaudeunchanged.bun test test/model-overlay-sonnet-5.test.ts→ all pass.bun run gen:skill-docs→ no generated-doc churn (only the three files above).bun run typecheck→ no new errors in the changed files.