Recipes / Review a session diff
Comment on the agent's changes line by line, then send the comments with your next prompt. Requires OpenCode V2. For layouts, message ranges, and remapping, see Reviewing changes.
- Run
:Opencode diff open(or<leader>od), pick a file, and move into its preview. - Put the cursor on a line, or select several lines, and press
c. Type your comment and press<C-s>or:w. - Use
]r/[rto jump between comments,cto edit one, anddcto delete it. You can comment on either side of the diff, including on a deleted file. - Press
qin the file list or preview. The prompt opens with your comments attached. Write a follow-up, such as "Fix these, keep the public API the same", and send it.
The context bar shows a Review comments item with a count. Type # to turn
the group off or remove a single comment. To stop attaching comments
automatically, set context.review_comments.enabled = false.
Line numbers in a comment refer to the reviewed snapshot. If the file has changed since then, including unsaved edits, the plugin also sends the current code around each comment so the agent can find the right place.

