Documentation / junjireview
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
- Junji resolves the base branch, or uses
--base <ref>. - It reads the diff against the base,
CONTEXT.md, the plan and the board, and probes the code where something looks wrong. - 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. - Critical and Required findings become new
todocards with their own phase plans. The verdict is Approve or Request changes. Only Request changes setsnextActionto/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
nextfirst. - The wrong base was used. Pass
--baseexplicitly.