Skip to content

Add Claude Opus 4.7, simplify pre-commit and LGTM workflow#2548

Merged
hiroshinishio merged 1 commit intomainfrom
wes
Apr 17, 2026
Merged

Add Claude Opus 4.7, simplify pre-commit and LGTM workflow#2548
hiroshinishio merged 1 commit intomainfrom
wes

Conversation

@hiroshinishio
Copy link
Copy Markdown
Collaborator

@hiroshinishio hiroshinishio commented Apr 17, 2026

Summary

  • Add Claude Opus 4.7 as the new default paid model (claude-opus-4-7, $5/$25 per MTok, 1M context, 128K output)
  • Move Opus 4.6 to fallback-only (user_selectable=False), same pattern as Opus 4.5
  • Update fallback chain: 4.7 → 4.6 → 4.5 → Sonnet 4.6 → 4.5
  • Remove dead strip_strict_from_tools guard — all current models (4.5+) support strict tool use, verified via real API calls
  • Add branch guard to pre-commit hook to block commits directly to main
  • Delete list_changed_files.sh and simplify LGTM workflow from 12 to 10 steps
  • Add per-model tests across registry, pricing, fallback chain, quality checks, and evaluate_condition

Social Media Post (GitAuto)

Claude Opus 4.7 is now the default model

  • Upgraded default paid model to Claude Opus 4.7
  • Extended fallback chain: 4.7 → 4.6 → 4.5 → Sonnet 4.6 → 4.5
  • Added pre-commit branch guard to prevent direct commits to main

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.

- 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
@hiroshinishio hiroshinishio self-assigned this Apr 17, 2026
@hiroshinishio hiroshinishio merged commit e559903 into main Apr 17, 2026
1 check passed
@hiroshinishio hiroshinishio deleted the wes branch April 17, 2026 21:44
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.

1 participant