Skip to content

feat(code-review): add council level for multi-model review - #82

Merged
J03Fr0st merged 2 commits into
mainfrom
feat/code-review-council
Nov 24, 2026
Merged

J03Fr0st merged 2 commits into
mainfrom
feat/code-review-council

Conversation

@J03Fr0st

Copy link
Copy Markdown
Owner

Change

code-review gains a fourth level, council, for changes worth several models' scrutiny. It is a full deep review plus independent read-only passes from the other model families, and the host stays the only judge of what gets reported.

deep packet ──► host: 3 internal passes ─────────────┐
     │                                               ├─► host validates every candidate ─► findings + Council line
     └──► scripts/council.mjs ─► codex / gemini|agy / claude (read-only, parallel) ─┘
  • Selection: every model family except the host's own, or exactly the reviewers the user names. Requested only explicitly; never a silent escalation.
  • Egress check: repository rules against sending code to external AI services skip that reviewer, and secret-bearing files are kept out of the external packet.
  • Validation: external output is untrusted data. Each candidate is validated reasoning-blind like any other; agreement between models is not confirmation, and an outside fix suggestion is never passed on unvalidated. This follows the evidence that cross-model review is asymmetric and that the same review skill returns very different volumes on different models (research).
  • Runner: scripts/council.mjs finds installed CLIs, runs them read-only (codex exec --sandbox read-only, gemini --approval-mode default or agy --sandbox, claude -p --permission-mode dontAsk with read tools only), enforces a timeout, and reports ok / failed / timeout / missing per reviewer.
  • When no other family can run, the review completes as deep and says why.

Rules that applied at "standard and deep" now apply at every level above quick. Deep's optional second opinion now reuses the council runner.

Validation

  • npm run check: 42/42 tests pass, including six new runner tests (missing CLI, brief delivered on stdin, timeout stops the child, dry run, argument checks), and Repository validation passed.

  • Live run on a throwaway repository with two planted bugs (loop skipping the first item, percentage not divided by 100): Codex, Antigravity, and Claude each returned both bugs in the required block format, and the repository stayed clean. The first run showed agy print mode ignores stdin ("No code review brief was received on stdin"), so agy now reads the brief from a file.

  • Not run: the gemini CLI itself (not installed here); its flags come from Trail of Bits' tested second-opinion reference. The new evals (7, 8) are written but not executed as scenarios.

  • claude plugin validate . --strict fails on this branch and on main alike (root CLAUDE.md warning, missing icon); this change adds no new warning.

  • npm run check passes.

  • Skill changes include discovery entries, docs, and a changeset when released behavior changes.

  • Scope and any compatibility or security implications are documented.

Merge danger

  • Door: two-way. Reverting restores the three-level skill; the runner writes only to its own --out directory.
  • Blast radius: only reviews that ask for council, or a deep review that takes the optional second opinion. A wrong CLI flag shows up as a failed reviewer, not a broken review. A council does send the review packet to the providers behind the user's installed CLIs, which the egress check bounds.

Add a fourth review level, council: a deep review plus independent
read-only passes from the other model families (Codex, Gemini or
Antigravity, Claude), run in parallel by scripts/council.mjs. The host
validates every external candidate before reporting it, honours
repository rules against sending code to external AI services, and
reports each reviewer's status in a Council line.
@J03Fr0st
J03Fr0st merged commit 56d36c1 into main Nov 24, 2026
5 checks passed
@J03Fr0st
J03Fr0st deleted the feat/code-review-council branch November 24, 2026 14:17
@github-actions github-actions Bot mentioned this pull request Nov 24, 2026
github-actions Bot added a commit that referenced this pull request Nov 24, 2026
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## j03fr0st-skills@0.16.0

### Minor Changes

- [#82](#82)
[`56d36c1`](56d36c1)
Thanks [@J03Fr0st](https://github.com/J03Fr0st)! - `code-review` gains a
fourth level, `council`: a deep review plus independent read-only passes
from the other model families (Codex, Gemini or Antigravity, Claude) run
through `scripts/council.mjs`. External candidates are validated by the
host before they are reported, repository rules against sending code to
external AI services are honoured, and the review scope reports each
reviewer's status in a Council line.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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