Bump prompt-testing reviewer to Opus 4.7#16
Merged
mattgodbolt merged 1 commit intomainfrom May 6, 2026
Merged
Conversation
- Update default reviewer model in `reviewer.py`, `cli.py run --review`, and the standalone `cli.py review` command from `claude-opus-4-6` to `claude-opus-4-7`. Same `$5/$25` price tier with stronger reasoning. - Drop the hard-coded `temperature=0.0` from the reviewer's API call: Opus 4.7 rejects the parameter (`temperature is deprecated for this model`). - Replace the hard-coded `$15/$75` cost calc in `_run_reviews` with a lookup via `app.model_costs.get_model_cost(model)`. The previous calc would have over-reported review cost by 3x against the new Opus pricing and would silently drift again on any future model bump. Smoke-tested locally against three live cases (square_cpp_o1, basic_inline_001, factorial_beginner_assembly) — Opus 4.7 ran cleanly and flagged a real factual error in the Sonnet 4.6 explanation for square_cpp_o1 (incorrect three-operand `imul` form). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
mattgodbolt
approved these changes
May 6, 2026
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-6toclaude-opus-4-7inprompt_testing/reviewer.pyand both spots inprompt_testing/cli.py(run --review-modeland the standalonereview --model). Same$5/$25price tier, stronger reasoning.temperature=0.0from the reviewer'smessages.createcall — Opus 4.7 rejects the parameter (temperature is deprecated for this model).$15/$75cost calc in_run_reviewswithapp.model_costs.get_model_cost(model). The old calc would have over-reported review cost by 3× against the new Opus pricing and would silently drift again on any future model bump.Test plan
uv run pytest— 92 passinguv run pre-commit run --all-filesLive smoke test against the Anthropic API (3 cases × Sonnet 4.6 explainer + Opus 4.7 reviewer):
Cost arithmetic checks out:
(1120+1254+1491) × $5/M + (394+74+300) × $25/M = $0.0385✓Notable side-effect: Opus 4.7 caught a real factual error in the existing Sonnet 4.6 explanation for
square_cpp_o1— the explanation claimedimul eax, edi, ediwas a valid three-operand alternative, when in fact the third operand of three-operandimulmust be an immediate. Useful signal that the upgraded reviewer is paying off.🤖 Generated with Claude Code