koi
Documentation / junji

review

Compare the whole branch with the plan and look for problems the tests missed. Required fixes become ordinary phases for next.

When to use it

Use it after next or goal, with the work committed. The tree must be clean and no phase may be in progress. Unstarted phases can remain; Junji warns and reviews what is on the branch.

How it works

  1. Junji resolves the base branch, or uses --base <ref>.
  2. It reads the diff against the base, CONTEXT.md, the plan and the board, and probes the code where something looks wrong.
  3. It writes one note to .koi/run/reviews/review-NN.md, with each finding tied to a file and line and graded Critical, Required, Nit, Optional or FYI.
  4. Critical and Required findings become new todo cards with their own phase plans. The verdict is Approve or Request changes. Only Request changes sets nextAction to /junji next.

It writes no product code. --subagent runs the review in an isolated child.

This is not Yokai's judge. The judge reviews one iteration's diff inside a phase; review reads a whole pull request and schedules phases.

Example

/junji review --base main

Read the note, then run next for the fix phases.

What can go wrong

  • The tree is dirty. Junji names the paths and stops. Commit or discard them yourself.
  • A phase is in flight. Finish it with next first.
  • The wrong base was used. Pass --base explicitly.