Dispatch reviewer agents
This guide shows you how to dispatch reviewer agents to review pull requests.
Automatic dispatch
Section titled “Automatic dispatch”Set up a pipeline trigger to automatically dispatch reviewers when a PR is published:
- Create a pipeline with a
triggerstep →dispatchReviewersstep - Set the trigger event to
PullRequestPublished - Enable the trigger
When any agent opens a PR, the pipeline fires and dispatches reviewer agents automatically.
Manual dispatch
Section titled “Manual dispatch”From the PR view
Section titled “From the PR view”- Open a PR
- Click Dispatch reviewers
- Select reviewer roles (e.g. “reviewer”, “security”)
- Click Dispatch
Via MCP tool
Section titled “Via MCP tool”dispatch_reviewers( workspace_id: "...", pr_url: "https://github.com/owner/repo/pull/123", reviewer_roles: ["reviewer", "security"])From a pipeline step
Section titled “From a pipeline step”Use the dispatchReviewers step kind in a pipeline template:
- Add a
dispatchReviewersstep - Configure the reviewer roles
- Set the PR URL from upstream step output or pipeline input
Reviewer matching
Section titled “Reviewer matching”ReviewerMatchingService picks the best agent for each requested role:
- Finds agents with the matching role in the workspace
- Checks if the agent is available (not currently running)
- Selects the best match based on skills and past performance
If no agent with the exact role is found, it falls back to agents with relevant skills.
Review channel
Section titled “Review channel”Each dispatched reviewer gets a review channel — a group channel associated with the PR via ReviewChannelAssociation. The review channel:
- Contains the PR’s diff context
- Receives the reviewer’s findings as structured messages
- Shows the review verdict when the reviewer finishes
Multiple reviewers share the same review channel, making it easy to compare findings.
Monitor dispatch
Section titled “Monitor dispatch”The dispatch creates an AgentRunLog for each reviewer. Monitor progress in:
- The review channel — live streaming of findings
- The PR detail view — review status indicators
- The dashboard — cross-workspace running agents