cross-review
v11.1.0

For Claude Code and CodexMITNode.js 22+

A second model checks your agent's work.

Your agent writes the plan and the code. cross-review hands them to a second model, which reads the repository, runs the tests and writes down what is wrong. The agent fixes each issue or answers it with evidence, round after round, until the reviewer approves.

npx @tlelabs/cross-review

Installs six skills for Claude Code and Codex, and the cross-review MCP server they use.

Phase 3: streaming large exports review-impl · harbor-appRound 1 · reviewingRound 1 · 5 issuesAgent answeringRound 2 · checkingRound 2 · 2 new issuesAgent answeringRound 3 · checkingApproved in round 3
Reviewer · Codex · round 1

0:01Ran git diff --stat 4f2c9e1...HEAD

0:04Read the plan: Phase 3, AC-3.1 to AC-3.5

0:09Read src/export/stream.ts:1-140

0:22Read src/export/pager.ts:1-90

0:31Thinking: the cursor resumes with >= on updated_at, so rows that share the boundary timestamp are read twice.

0:58Ran node --test test/stream.test.js test/pager.test.js · 31 passed

1:12Scratch dir: seed 2 000 rows with one timestamp, export | wc -l → 2003

1:30Scratch dir: cancel the export after 2 s → t.csv left behind, 3.1 MB

3:21Ran npm run bench:export -- --rows 1000000 --format json · 94 s

4:09Ran npm test · 471 passed

ISSUE-1 high A cancelled export leaves a partial file behind src/export/stream.ts:88

ISSUE-2 high Rows on a page boundary are written twice src/export/pager.ts:41

ISSUE-3 medium JSON writer awaits every row src/export/json-writer.ts:27

ISSUE-4 medium Toolbar counter counts pages, not rows src/ui/ExportButton.tsx:63

ISSUE-5 low Memory test passes without streaming test/stream.test.js:52

VERDICT: REVISE

Agent · Claude Code

Edited src/export/stream.ts, pager.ts, ui/ExportButton.tsx, test/stream.test.js

Ran node --test test/stream.test.js test/pager.test.js test/toolbar.test.js · 36 passed

Ran npm run bench:export -- --rows 1000000 · JSON 23.8 s, CSV 21.2 s

Fixed ISSUE-1: writes to <out>.partial, renames on finish, unlinks on abort; test/stream.test.js:131

Fixed ISSUE-2: the cursor is (updated_at, id); test/pager.test.js:77

Fixed ISSUE-4 and ISSUE-5, each with a regression test

Disputed ISSUE-3: the await is the backpressure check; the bench gives 23.8 s for JSON, 21.2 s for CSV. The 94 s came from a debug build.

Reviewer · round 2

0:06Read src/export/stream.ts:70-130

0:44Scratch dir: two exports to one --out → the first ends with 41 000 of 60 000 rows

1:31Ran the new memory test on the old writer · fails at 186 MB, as it should

2:48Ran npm test · 478 passed

ISSUE-1, 2, 4 and 5 hold. ISSUE-3 withdrawn: the bench agrees. The cancel fix brought two new defects.

ISSUE-6 medium Two exports to the same path share one .partial file src/export/stream.ts:84

ISSUE-7 low Cancel leaves the page request running src/export/pager.ts:52

VERDICT: REVISE

Agent · Claude Code

Ran node --test test/stream.test.js test/pager.test.js · 38 passed

Fixed ISSUE-6: the temporary name adds the pid and a random suffix; test/stream.test.js:158

Fixed ISSUE-7: the signal goes to fetchPage(); test/pager.test.js:96

Reviewer · round 3

0:08Read src/export/stream.ts:70-130, src/export/pager.ts:30-75

0:49Scratch dir: cancel after 2 s → only the database is left

2:07Ran npm test · 486 passed; lint and typecheck clean

ISSUE-6 and ISSUE-7 hold. AC-3.3 to AC-3.5 are met; nothing new.

VERDICT: APPROVE

An invented session, the one the dashboard demo below plays: three rounds, seven issues.
How a review goes, step by step, in under two minutes. No sound; the project in it is invented.

How a review goes

Two models, one thread, until they agree.

The review runs in the background while you keep working. The agent you talk to drives it; the reviewer only reads, runs and reports.

  1. 01

    The agent asks

    After a plan or a change, the skill sends the reviewer what to check: the plan file, the diff, the question.

  2. 02

    The reviewer checks

    It reads the code, runs tests and commands, and writes each finding as an issue with a place and a severity.

  3. 03

    The agent answers

    Every issue is fixed or disputed with evidence: a file and line, a test result, your earlier decision.

  4. 04

    Approve or ask you

    Rounds repeat until the reviewer approves. If they cannot agree, the agent brings the open points to you.

Skills

Six skills: plan, build, review.

Run them by name: /review-impl in Claude Code, $review-impl in Codex. With--auto, Claude Code reviews every plan and change on its own.

SkillUse itWhat happens
Plan and build
loop-planFor large work: several features, many files, more than one session.Writes a phased plan grounded in the code, with tests per phase and review checkpoints, then asks whether to have it reviewed.
loop-implementOnce the plan is approved.Builds it phase by phase with tests first, ticks each criterion it meets, commits, and runs a review at each checkpoint.
Review
review-planBefore you write code.Debates the plan: what will not work, missing steps, claims that do not hold.
review-implBefore you commit, push or merge.Reviews uncommitted changes, unpushed commits or a branch against the plan, and the agent fixes what is real.
review-thinkWhen a decision needs a second opinion.Both models reason on their own, then compare: what changed their minds, and with what evidence.
review-prOn someone else's pull request.Reviews it as a peer: correctness, the description, and whether it is ready to merge.

Dashboard

Watch every review, round by round.

A local page lists the reviews and plans in your projects. A running review updates live: what the reviewer is reading or running right now, each round's issues, and how the agent answered. Below is the dashboard itself, running in your browser on invented projects.

The real dashboard with recorded data: harbor-app, orchard-api, inkwell and atlas-notes are invented. Click around; nothing is saved. Open it full size

$ cross-review dashboard

You decide

The reviewer advises. You have the last word.

  • Disputes need evidence. The agent rejects a finding only with a file, a test or a decision you made.
  • Stalemates come to you. When the two models cannot agree, the open points are put to you as a choice.
  • Your instruction wins. Skip a review, accept a result, change the model: the agent follows what you say last.

Local

Everything stays on your machine.

  • Sessions are files. Each review is kept in your project's .cross-review/, which git ignores.
  • The dashboard is private. It listens on 127.0.0.1 only, with a token per run.
  • The reviewer only reports. It may run tests and commands to check its claims; its instructions forbid changing your files.

Get started

Install once, for both agents.

npx @tlelabs/cross-review