12. The review loop
Pin comments on the served site, work through them from the CLI, and hand off rounds with the review handshake.
After this lesson you can
- Serve with the click-to-comment client - List and resolve comments from the CLI - Run the agent-side wcl wdoc review wait
Before you start: Render targets
wcl wdoc serve <file> --comment injects a review client into every page: click any rendered block to pin a note on it. Comments land in a comments.wcl sidecar beside the document — keyed by page and locator — and never trigger a rebuild, so reviewing stays non-destructive.
From the CLI, wcl wdoc comments . lists every open note and comments . resolve <id> closes one. For human⇄agent rounds, the agent runs wcl wdoc review <file>: it blocks until the reviewer clicks "Send to agent" in the comment toolbar, then prints that round's comments for the agent to work through.
§ 1Exercise: Run one review round
Serve with --comment, pin a note on any block in the browser, list it from the CLI, then resolve it.
&
# click a block in the browser and leave a note, then:
Expected result
The note appears in the CLI list with its id, page, and text, and disappears from the open list after resolve.
Hint
The comments live in comments.wcl next to the document — open it to see exactly what the client wrote.