Skip to content

Enhancement/106 Migrate the review flow to Opus 5 / Sonnet 5 - #105

Open
s100ian wants to merge 3 commits into
mainfrom
claude/migrate-opus-sonnet-5-evma4l
Open

Enhancement/106 Migrate the review flow to Opus 5 / Sonnet 5#105
s100ian wants to merge 3 commits into
mainfrom
claude/migrate-opus-sonnet-5-evma4l

Conversation

@s100ian

@s100ian s100ian commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Closes #106

Migrates this repo's Claude model references off claude-sonnet-4-6, plus the prompt-side tuning that the model swap alone doesn't cover.

Companion to uni-dev-lab/uniplan#135, which makes the equivalent change on the backend side.

What changed

File Change
.claude/agents/uniplan-web-fe-reviewer.md claude-sonnet-4-6claude-opus-5; added a finding-length cap
.github/workflows/claude-code-review.yml claude-sonnet-4-6claude-sonnet-5

Why the split. The reviewer subagent does the actual bug-finding, where Opus 5's precision and recall gain is worth the most. The CI --model flag drives the orchestrator, which classifies the diff, dispatches the subagent, merges findings, and posts the comment — plumbing that Sonnet 5 handles at lower cost. Both paths stay behind the reviewers-only environment gate, so token spend is bounded either way.

Finding-length cap. Opus 5 writes longer user-facing text than Sonnet 4.6, and the reviewer's output is posted verbatim as a PR comment. The cap holds review length steady. It's prompting rather than an effort change because on Opus 5 verbosity responds to instructions, not to effort level.

effort: high is retained. An intermediate commit stepped it down to medium on the basis that Opus 5 holds review accuracy at lower effort; that was reverted, so the net diff leaves effort untouched. Recall was judged worth more than the token saving.

This repo's review-pr skill already had a proper CI override and its workflow already carried the review-only guardrail — those are what the uniplan side was brought in line with, so there was nothing to change here.

Verification

No API-surface migration was required: the reviewer sets no budget_tokens, no sampling parameters, and no assistant prefills, so nothing in the 4.6 → 5 breaking-change set applies. The workflow YAML was re-parsed after editing. No behaviour was executed — this diff is configuration and prompt text only, and the review flow it configures runs on workflow_dispatch against a PR.

Not included

claude-opus-5 uses a different tokenizer than Sonnet 4.6 and thinks by default, so a review run will spend more tokens than before. Worth watching on the first few real PRs; revert either model line if the cost profile doesn't hold.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NkKxkLYPzNDTWUak4Wsb8D

claude added 3 commits July 24, 2026 20:02
Move the frontend reviewer subagent to Opus 5 (deep bug-finding is the
highest-value step in the review) and the CI review orchestrator to
Sonnet 5 (diff classification, subagent dispatch, comment posting).

Both replace claude-sonnet-4-6. No other API surface changes are needed:
neither call site sets budget_tokens, sampling parameters, or assistant
prefills, and effort: high remains valid on Opus 5.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NkKxkLYPzNDTWUak4Wsb8D
Follow-up to the model migration, covering prompt-side adjustments the
model IDs alone did not address.

- Reviewer: cap finding length at one to two sentences. Opus 5 writes
  longer user-facing text than Sonnet 4.6, and this output is posted
  verbatim as a PR comment. Verbosity responds to prompting, not effort.
- Reviewer: effort high -> medium. Opus 5 holds review accuracy at lower
  effort; revert to high if recall drops on real PRs.

The skill/workflow CI override and the review-only guardrail this repo
already had are what the uniplan side was brought in line with.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NkKxkLYPzNDTWUak4Wsb8D
Reverts the medium step-down from the previous commit. Review recall is
worth more here than the token saving; the finding length cap is
unaffected.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NkKxkLYPzNDTWUak4Wsb8D
@s100ian
s100ian requested a review from a team as a code owner July 24, 2026 20:25
@s100ian s100ian changed the title Migrate the review flow to Opus 5 / Sonnet 5 Enhancement/106 Migrate the review flow to Opus 5 / Sonnet 5 Jul 24, 2026
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.

Enhancement: Migrate the review flow to Opus 5 / Sonnet 5

2 participants