Skip to content

chore: default to opus/sonnet aliases in config templates#109

Merged
fitz123 merged 1 commit intomainfrom
chore/default-model-aliases
Apr 26, 2026
Merged

chore: default to opus/sonnet aliases in config templates#109
fitz123 merged 1 commit intomainfrom
chore/default-model-aliases

Conversation

@fitz123
Copy link
Copy Markdown
Owner

@fitz123 fitz123 commented Apr 19, 2026

Summary

  • Swap pinned claude-opus-4-6 / claude-sonnet-4-6 defaults for the opus / sonnet aliases in config.yaml and config.local.yaml.example.
  • Document the [1m] suffix for opting into the 1M-token context window.

Why

  • Fresh installs auto-track the latest recommended model for the account tier without config edits each Anthropic release.
  • Operators who need version pinning still can (full names still work — config.ts passes the model string through unchanged).
  • The 1M-context opt-in story was undocumented in the templates; users had to find Claude Code docs on their own.

Test plan

  • npx tsx bot/src/config.ts --validate passes on new config.
  • Live check: model: opus[1m] on main agent resolves to claude-opus-4-7[1m] and the subprocess confirms 1M context window.
  • CI (gitleaks) passes.

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>
Copilot AI review requested due to automatic review settings April 19, 2026 14:49
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 / defaultFallbackModel in config.yaml from pinned model names to opus / sonnet.
  • Update config.local.yaml.example to 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.

@fitz123 fitz123 merged commit aa952b4 into main Apr 26, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants