Add Claude Opus 4.7, simplify pre-commit and LGTM workflow#2548
Merged
hiroshinishio merged 1 commit intomainfrom Apr 17, 2026
Merged
Add Claude Opus 4.7, simplify pre-commit and LGTM workflow#2548hiroshinishio merged 1 commit intomainfrom
hiroshinishio merged 1 commit intomainfrom
Conversation
- Add OPUS_4_7 enum, registry entry, pricing, context/output limits - Move OPUS_4_6 to fallback-only (user_selectable=False) - Update fallback chain: 4.7 → 4.6 → 4.5 → Sonnet 4.6 → 4.5 - Remove strip_strict_from_tools guard (all 4.5+ models support strict) - Add branch guard to pre-commit hook (block commits to main) - Remove list_changed_files.sh, simplify LGTM workflow - Add/update tests for all models across registry, pricing, fallback, quality checks
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-7, $5/$25 per MTok, 1M context, 128K output)user_selectable=False), same pattern as Opus 4.5strip_strict_from_toolsguard — all current models (4.5+) support strict tool use, verified via real API callslist_changed_files.shand simplify LGTM workflow from 12 to 10 stepsSocial Media Post (GitAuto)
Claude Opus 4.7 is now the default model
Social Media Post (Wes)
Anthropic shipped Opus 4.7 so I spent the morning wiring it into our agent. Boring part: enum, registry, pricing, fallback chain. Interesting part: we had a guard stripping "strict" from tool definitions for older models. Tested it — every model we use supports strict now. Dead code gone, five fewer branches to think about.