Code review
Human and agent workflow for reviewing local git changes in the web UI.
Human path
cd your-repo
diffing # or: diffing --staged, main..feature, …
In the UI:
- Navigate files (sidebar filters: All / Unviewed / Comments / Since last)
- Toggle split/unified with m
- Select lines → add comment (optional severity: blocking · nit · question · praise)
- Optional multi-line ranges and
```suggestionblocks - Click Send review / Send to agent with a verdict and optional note
Live updates: agent replies and resolves appear over SSE without refresh.
Agent path
Prefer MCP when available. Portable CLI:
diffing url # share with human
# async: end turn until human says ready
diffing await-review # only when human is reviewing now
diffing comments --open # snapshot open threads as XML
diffing reply <id> --body "…" --model "your-model"
diffing resolve <id>
diffing progress --message "Working…" --pct 40
Per-comment policy
| Kind | Action |
|---|---|
| Change request / blocking | Edit code → reply → resolve |
| Nit | Optional; fix or acknowledge |
| Question | Reply; leave open unless answered fully |
| Praise | No code change |
| Ambiguous | Reply asking for clarification; leave open |
Suggestions
Comments may include:
```suggestion
const fixed = true;
```
Human or agent can apply via UI / MCP apply_suggestion / API — applies the fence to the working tree and can auto-resolve.
Multi-round
Each Send to agent increments a review round. History is available via UI and get_review_history / GET /api/review/history. Outdated comments are detected when lines move.