chore: default to opus/sonnet aliases in config templates#109
Merged
Conversation
Shift `defaultModel` and `defaultFallbackModel` in config.yaml and the config.local.yaml.example from pinned versions (`claude-opus-4-6`, `claude-sonnet-4-6`) to the `opus` / `sonnet` aliases so fresh installs auto-track the latest recommended model for their account tier without requiring config edits on each Anthropic release. Document the `[1m]` suffix in both files so users know how to opt into the 1M-token context window on a per-agent basis. Validated in a live setup: `model: opus[1m]` on main resolves to `claude-opus-4-7[1m]` and the 1M window is active end-to-end. No code changes — config.ts already passes the model string through unchanged to Claude Code CLI, which handles alias resolution. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
Updates the repository’s default configuration templates to prefer Claude Code model aliases (to follow Anthropic’s recommended model per tier automatically) and documents the [1m] suffix for opting into the 1M-token context window.
Changes:
- Switch
defaultModel/defaultFallbackModelinconfig.yamlfrom pinned model names toopus/sonnet. - Update
config.local.yaml.exampleto recommend aliases by default while still showing how to pin full model names. - Add template documentation for the
[1m]suffix (e.g.opus[1m]) and note plan eligibility caveats.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| config.yaml | Changes fleet-wide defaults to opus/sonnet and documents alias/pinning + [1m] usage. |
| config.local.yaml.example | Mirrors the alias-by-default guidance and adds an example for per-agent [1m] opt-in. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Summary
claude-opus-4-6/claude-sonnet-4-6defaults for theopus/sonnetaliases inconfig.yamlandconfig.local.yaml.example.[1m]suffix for opting into the 1M-token context window.Why
Test plan
npx tsx bot/src/config.ts --validatepasses on new config.model: opus[1m]on main agent resolves toclaude-opus-4-7[1m]and the subprocess confirms 1M context window.