multi-review
ASecurityAny number of AI agents (Claude Code, Antigravity, Codex, Gemini CLI, Cursor, Copilot, opencode, or any text-only model such as Ollama/OpenAI via a driver) mutually review one project. Each agent creates its own markdown file under multi-review/, lists project deficiencies, and on a shared timed loop reads every other agent's file and challenges it. Agents can join late or leave. User gives check interval and total duration. Triggers (TR) - çoklu denetim, ajanlar birbirini kontrol etsin, çok ...
- 3 stars
- 0 votes
- 0 copies
- 3 views
- Added October 24, 2026
Works with
Security analysis
100/100Pro scans all 14 files and shows the line behind each finding
npx -y skills add BerkeZeqoN/multi-review --agent claude-codeAre you the author of multi-review?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/berkezeqon-multi-review)---
name: multi-review
description: Any number of AI agents (Claude Code, Antigravity, Codex, Gemini CLI, Cursor, Copilot, opencode, or any text-only model such as Ollama/OpenAI via a driver) mutually review one project. Each agent creates its own markdown file under multi-review/, lists project deficiencies, and on a shared timed loop reads every other agent's file and challenges it. Agents can join late or leave. User gives check interval and total duration. Triggers (TR) - çoklu denetim, ajanlar birbirini kontrol etsin, çok ajanlı inceleme, multi review, oturuma katıl. Triggers (EN) - multi review, multi-agent review loop, join review session.
---
# Multi Review - N-agent mutual review loop
Rules live in `PROTOCOL.md` (next to this file). **Read it fully before
joining.** This file covers starting, joining and tool-specific waiting.
```
<project>/multi-review/
claude-opus.md codex-gpt.md ... one file per agent; each agent picks its own name (--file)
final.md shared result: the only md file left after `finalize`
.state/session.json clock + roster + review ring + work mode
```
Agents form a ring `claude-opus.md > codex-gpt.md > ... > claude-opus.md`:
each reviews the next file and answers the previous one. When an agent joins,
the ring is rebuilt, so the newcomer is wired in automatically. Without
`--file` an agent gets a short default (`c.md`, `a.md`, `co.md`, `g.md`).
**Never** name a review file after an instruction file (`claude.md`,
`agents.md`, `gemini.md`, `final.md`, ...): `join` rejects those, because
tools auto-load them as instructions.
## Inputs
Only the agent that **creates** the session needs these; joining an active
session needs nothing (`/multi-review join`).
0. **project folder** - absolute path; passed once as `--root` when creating.
It is saved to `~/.multi-review/active.json` (or, when a sandbox blocks the
home folder, to `%TEMP%/multi-review/active.json`; both are searched), so
every later command from any agent, in any folder, finds the project
without a path. `join` prints `ROOT=...`: work (read code, run tests) in
that folder. If it prints `REGISTRY_UNAVAILABLE`, other agents cannot find
the session by themselves: show the user the command it prints, to paste
into every other agent. The next agent that joins and may write those
files registers the session (and opens the chat panel if nobody could).
**Antigravity in the review:** if the user names Antigravity among the
agents, add `--open-ide antigravity` when creating (or run `open-ide
antigravity` later): it opens the project folder in Antigravity, so its
writes stay in its workspace and it asks for no permission. Then tell the
user to type "multi-review oturumuna katil" in that window's agent chat.
1. **interval** - how often each agent re-checks (e.g. `5m`, `10dk`)
2. **duration** - total time (e.g. `2h`, `90dk`)
3. **order mode** - **always ask the user** when creating (Claude Code: use
AskUserQuestion with exactly these two options):
- **Ajanlar karar versin (`negotiated`)** - agents argue and vote on the
ring order whenever someone joins.
- **Rastgele döngü (`random`)** - the script links the agents' files in a
random ring and reshuffles it on every join.
4. **work mode** - **always ask the user** when creating, together with the
order mode (Claude Code: AskUserQuestion with exactly these three options),
pass as `--work-mode`:
- **Herkes araştırsın (`research`)** - default. Every agent digs into the
code itself every tick, not only comments on others. `wait` prints
`own_findings=N new=K` and a `WORK_WARNING` after 2 ticks without a new
finding.
- **Alan paylaşımı (`split`)** - every agent owns part of the project
(`--areas api,ui,tests`, default: top-level folders) and researches it;
`YOUR_TASK=research-area:...` shows yours.
- **Sadece doğrulama (`review`)** - only the lead (earliest-joined agent)
researches; the others verify its findings.
5. **goal** (optional) - what the user wants reviewed, i.e. any free text in
the `/multi-review` arguments besides the path and durations ("security",
"make the repo release-ready"). Pass it as `--goal "..."`. It is saved in
the session and printed as `GOAL=...` to every agent on `join`/`wait`.
Example: `/multi-review 5m 2h` → ask order mode + work mode → create.
Example: `/multi-review "D:/proj" guvenlik acigi var mi` → ask interval, duration,
order mode, work mode → create with `--goal "guvenlik acigi var mi"`.
## Script path
`SCRIPT` = `scripts/multi_loop.py` next to this file. Installed copies:
| Tool | Path |
|---|---|
| Claude Code | `~/.claude/skills/multi-review/scripts/multi_loop.py` |
| Antigravity | `~/.gemini/config/skills/multi-review/scripts/multi_loop.py` |
| Codex CLI | `~/.codex/skills/multi-review/scripts/multi_loop.py` |
| Others (`~/.agents/skills`) | `~/.agents/skills/multi-review/scripts/multi_loop.py` |
## Start or join
```bash
python SCRIPT roster # who is in? (NO_SESSION = nobody)
python SCRIPT --root "D:/proj" join --agent claude --interval 5m --duration 2h --order-mode negotiated --work-mode research --goal "security" # creator
python SCRIPT join --agent codex # from any folder: finds the project, gets co.md, roles printed
python SCRIPT join --agent gemini --file gemini-pro.md --prefix GP # choose your own file name + id prefix
```
Each agent decides its own md file name with `--file` (and id prefix with
`--prefix`); without them the defaults below apply.
**Joining (`/multi-review join`, or `/multi-review-join` in Claude Code)** asks
the user nothing about interval, duration, order or work mode:
1. `roster`. 2. `join --agent <you> --file <your-name>.md`; if your name is
already active and that is you after lost context, add `--resume`.
3. Work in the printed `ROOT=`; Round 0; then always run the printed `NEXT:`
command (it carries `--root`/`--session`) in the background.
**Several reviews at once.** Every session has a name (`--session`, default
`main`). Two reviews of the same project (e.g. `security` and `docs`) or of
different projects can run side by side; each named session lives in
`multi-review/<name>/` with its own state and `final.md` (`main` keeps
`multi-review/`). Create: `--session security join ... --interval ...`.
Creation options on an already active session are an error
(`SESSION_EXISTS`), never silently ignored. Sessions share the same code:
parallel *fixes* in one project need separate git worktrees.
Root/session lookup (no `--root`/`--session`): the single active session in
the current folder → the single active session in `~/.multi-review/active.json`.
`--session NAME` alone finds that name in any project. If several match the
script prints `MULTIPLE_SESSIONS` with name, goal, path and time left per line:
ask the user which one, then pass `--root` and `--session`. Never ask the user
for the path when joining otherwise.
**The chat panel opens by itself.** When `join` creates a session it prints
`CHAT_PANEL opening` (a new Edge window with the live chat) or `CHAT_PANEL
already open` (the open panel switches to the new session within seconds).
Do nothing for it. If it prints `CHAT_PANEL could not start`, or the user
says no window came up (a sandboxed agent may not start Edge, or its child
processes die when the command ends), tell the user to run the `chat` command
it shows in their own terminal. Never hand out a `127.0.0.1` link yourself:
it only works while that hub process lives. `MULTI_REVIEW_NO_CHAT=1` turns
this off (CI, scripts).
**Never edit the installed skill files** (`scripts/`, `SKILL.md`,
`PROTOCOL.md`) to work around an error. Report the exact error line to the
user instead; a local patch breaks the session for every other agent.
Then follow PROTOCOL.md: Round 0 → `wait` → TICK rounds → final phase
(`final_phase=yes`: the final writer drafts `multi-review/final.md`) →
SESSION_OVER → `done` (everyone else) → `finalize` (final writer: keeps only
`final.md`, deletes the other md files). Lost your context mid-session
(`/clear`)? Rejoin with `join --agent NAME --resume`.
In negotiated mode, every agent with a terminal also argues under
`## Sira tartismasi` and runs `propose` while `order_status=NEGOTIATING`.
## How to wait (tool-specific)
**Claude Code:** run `wait --agent NAME` with Bash `run_in_background: true`.
You are re-invoked when it exits. Do not poll. This long command is intentional
and exempt from the "skip commands that take >30s" rule.
**Antigravity / Codex / Gemini CLI / Cursor / others with a terminal:** run
`wait` as a background command and wait on it with the command-status tool. If
commands time out, use `wait --agent NAME --max-wait 9m` and re-run on
`CONTINUE_WAIT`.
**Antigravity:** it asks the user before every write outside its workspace.
If `join` prints `WORKSPACE_OUTSIDE_ROOT`, show the user that message (it
holds the `open-ide antigravity` command) and continue only in the window it
opens. Never answer it by moving the session or `MULTI_REVIEW_HOME`.
**Codex (sandbox):** every command writes to `<ROOT>/multi-review/` (and the
creator also to `~/.multi-review/`, else the temp folder). Codex only writes inside its workspace, so
start Codex in the project folder (`ROOT=`). If `ROOT` is elsewhere, run
`join` and every `wait` with sandbox escalation / outside the sandbox
(approve it once for the whole loop). `ERROR: cannot write ...: permission
denied` means exactly this; it is not a busy lock, do not retry blindly.
**Text-only models (no tools):** they cannot loop themselves. Run the driver;
it joins, builds a prompt each round (protocol + project tree + key files +
its review/answer files + code at every cited `path:line`), pipes it to the
command on stdin and writes the returned file. Drive agents abstain from order
negotiation:
```bash
python SCRIPT drive --agent qwen --exec "ollama run qwen2.5-coder:7b" --max-chars 60000
python SCRIPT drive --agent gpt --exec "codex exec -"
python SCRIPT drive --agent gem --exec "gemini -p"
python SCRIPT drive --agent opus --exec "claude -p"
python SCRIPT drive --agent llm --exec "llm -m gpt-4o"
```
**Free models that run out mid-session:** put `scripts/model_rotate.py` in
front. It runs each round on the model that answered last and moves to the
next one when a model fails (quota / rate limit: skipped 1h, other errors:
5m); every switch shows up as `MODEL_SWITCH old -> new` in the driver output
and the agent's `Tur gunlugu`. `--models free` = every `opencode/*-free`
model; or list them (`--models a,b,c`); `--cmd` changes the CLI (default
`opencode run -m {model}`, which reads files in ROOT itself):
```bash
python SCRIPT drive --agent opencode-free --call-timeout 40m --exec "python SKILL_DIR/scripts/model_rotate.py --models free"
```
Any command that reads stdin and prints text works. Invalid output is logged in
the agent's `Tur gunlugu` and saved raw under `.state/backup/`; the previous
file version is backed up every round. Prefer agentic headless modes
(`codex exec`, `gemini -p`, `claude -p`) over pure chat models - they can open
files and verify evidence. Start `drive` from Claude Code with Bash
`run_in_background: true` if the user asks you to launch it.
## Adding an agent that has no skill system
Give it this message (fill the path):
> Read `<SKILL_DIR>/PROTOCOL.md` fully and follow it. Join the review session
> in this project: `python <SKILL_DIR>/scripts/multi_loop.py roster`, then
> `join --agent <your-tool-name>`. Keep looping with `wait` until
> `SESSION_OVER`.
Or add the same text to the project's `AGENTS.md` (read by Codex, Cursor,
opencode, Copilot).
## User messages
`wait` may return early with `USER_MESSAGE` (the user typed into the chat
page). Handle it as PROTOCOL.md "User messages" says, answer under
`## Kullaniciya cevap`, then run the printed `NEXT:` wait again.
## Watching (for the user)
One panel shows every session on this machine (`http://127.0.0.1:8777`): the
list on the left switches between them; running ones are live (with a message
box), finished ones play back. If the user closed it and asks again, start
`python SCRIPT chat` with Bash `run_in_background: true` (it blocks until the
window is closed; never wait on it). A second `chat` only reports the open one.
The user can give a session a display name there (✎) or via `rename --title "..."`;
it never changes `--session`, so keep using the printed `NEXT:` commands.
## Ending
- User wants to stop everyone → `python SCRIPT stop`.
- Only this agent quits → `python SCRIPT leave --agent NAME`.
Files in this skill
- CHANGELOG.md
- CONTRIBUTING.md
- PROTOCOL.md
- SECURITY.md
- SKILL.md
- commands/multi-review-join.md
- examples/README.md
- examples/agent-file.md
- examples/final.md
- install.py
- ruff.toml
- scripts/multi_loop.py
- tests/test_install.py
- tests/test_multi_loop.py
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.