Skip to content

Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.

chore(workflow): run after-change reviews on Opus

leepokai9281286820f9
diff --git a/.claude/workflows/after-change.js b/.claude/workflows/after-change.js
index ef6d2a50..361826e9 100644
--- a/.claude/workflows/after-change.js
+++ b/.claude/workflows/after-change.js
@@ -69,6 +69,9 @@ const CHECKS = {
required: ['checks'],
}
+// Review and verification always run on Opus or above, whatever model started the session.
+const REVIEW_MODEL = 'opus'
+
const REVIEWERS = [
{ name: 'correctness', text: 'Lens: correctness: bugs, regressions, broken edge cases, error handling, data loss, security, and compatibility with older clients and hosts (docs/reference/compatibility.md). Report only real defects with a concrete failure scenario; style nits are not findings.' },
{ name: 'completeness', text: 'Lens: completeness: every client the change should reach (iPhone, Android, desktop, terminal UI, per CLAUDE.md cross-platform rules), docs made stale by it (the user manual in web/content/docs/ too, for anything users see or do differently: docs/guides/user-docs.md), missing or weak tests, and the version bump and What\'s New rules. Report only real gaps; style nits are not findings.' },
@@ -80,7 +83,7 @@ const reviews = await parallel(REVIEWERS.map((r) => () =>
agent(`Review a code change, read-only (edit nothing). ${r.text}
${scope}
Most important first. Return an empty list when there is nothing.`,
- { label: `review:${r.name}`, phase: 'Review', schema: FINDINGS })))
+ { label: `review:${r.name}`, phase: 'Review', schema: FINDINGS, model: REVIEW_MODEL })))
const [bugs, gaps, refactors] = reviews.map((r) => r?.findings ?? [])
const found = [...bugs, ...gaps]
let confirmed = []
@@ -89,7 +92,7 @@ if (found.length) {
const verdict = await agent(`Verify review findings on a code change, read-only. For each finding, read the code and try to refute it: is the failure scenario real in this code? Default to refuted when you can't reproduce the reasoning. Merge duplicates.
${scope}
Findings:
-${JSON.stringify(found, null, 2)}`, { label: 'verify', phase: 'Review', schema: VERDICTS })
+${JSON.stringify(found, null, 2)}`, { label: 'verify', phase: 'Review', schema: VERDICTS, model: REVIEW_MODEL })
confirmed = verdict?.confirmed ?? found
refuted = verdict?.refuted ?? []
}
diff --git a/docs/guides/clean-code.md b/docs/guides/clean-code.md
index d69355b6..e1ce1d8c 100644
--- a/docs/guides/clean-code.md
+++ b/docs/guides/clean-code.md
@@ -41,7 +41,7 @@ Rules every change follows, in every part of the repository (host, iOS, desktop,
Once a code change works (its tests pass) and before commit, it goes through three stages, in this order:
-1. **Review**: three read-only reviewers at once: correctness (bugs, regressions, error handling, security, compatibility with older clients and hosts), completeness (every client the change should reach, stale docs and the [user manual](user-docs.md) page, missing tests, version and What's New rules) and refactor (responsibility splits, files past ~500 lines, long functions, layer leaks, missed reuse, language best practices: Swift 6, Rust `rust-skills`, strict TypeScript, Compose). A verifier then tries to refute each correctness and completeness finding against the code.
+1. **Review**: three read-only reviewers at once: correctness (bugs, regressions, error handling, security, compatibility with older clients and hosts), completeness (every client the change should reach, stale docs and the [user manual](user-docs.md) page, missing tests, version and What's New rules) and refactor (responsibility splits, files past ~500 lines, long functions, layer leaks, missed reuse, language best practices: Swift 6, Rust `rust-skills`, strict TypeScript, Compose). A verifier then tries to refute each correctness and completeness finding against the code. In Claude Code the reviewers and the verifier always run on Opus (`REVIEW_MODEL` in the workflow), whichever model started the session; the fix and e2e agents inherit the session's model.
2. **Fix and cleanup**, one editor in one pass: the surviving findings at their root cause, the refactors worth their diff, and a cleanup of the change's own lines (dead code, duplication, unclear names, comments that restate the code, unused imports, places an existing helper should be reused); then the affected builds and tests run once.
3. **End-to-end test** of the final code: the changed flows on the real apps, minimal or full as CLAUDE.md defines it, each walked once with short bot turns. A failure the change didn't cause is reported as preexisting. A real failure is fixed, and only the fixed flows are walked again.