Skip to content

Following up on review comments

Send a coder PR back for changes and let the coder apply your review.

When review comments on a coder PR need work, add the mergeEnsurer.label label (default vteam:changes-requested) to the PR. The next vteam ensure-merge moves the task back to todo. You can also reopen the task in aven yourself and leave a note saying which comments to apply:

Terminal window
aven edit <ref> --status todo
aven note <ref> "Apply the null-check and retry comments. Ignore the rename suggestion."

Review comments alone never reopen a task; only the label you add (or a task you reopen yourself) does.

The next coder run sees the task’s pr-url metadata and works on the existing PR instead of starting fresh:

  • If the PR is merged or closed, the task moves to backlog with a note and Claude does not run. To start over on a new branch, remove the metadata (aven edit <ref> --remove-metadata pr-url) and move the task back to todo.
  • Otherwise the PR branch is checked out into the worktree, and the prompt gets the task, all its notes, and the PR’s unresolved review threads. Resolved threads and top-level PR comments are left out. Claude applies the threads your note names, or all of them if the note doesn’t say.
  • If the PR conflicts with its base branch, vteam merges origin/<base> into the worktree before Claude runs and lists the conflicted files in the prompt. Claude resolves the conflicts and vteam commits the merge with Claude’s commit message. If any conflict marker is left, nothing is committed and the task’s retry-count goes up. If the merge applies cleanly, it is pushed even when Claude changes nothing else.
  • Changes are pushed to the PR branch, no new PR is opened, and the task goes back to done.

Claude returns a reply for each thread it addressed. After the push, vteam posts each reply in its thread, marked 🤖 **vteam coder:** and ending with Fixed in <sha>. Threads Claude skipped get no reply, and nothing is posted if no commit was pushed.

Set "resolveThreads": true in the agent’s agent.json to also resolve the threads it replied to. The run’s aven note records how many replies were posted.