Automate code review with Overcut using a multi-agent process that plans and performs pull request reviews.
agent.run
(for focused planning) and agent.session
(for complex coordination). To learn more about when to use each action type, see our Agent Differences guide.Open the Use Cases page
Use Cases
, then select Create Use Case
.Name your Use Case
Code Review
.Edit the Trigger block
Select PR Opened
PR Opened
trigger type. This ensures the workflow is activated any time a pull request is opened in the connected repo.Add the Clone Repo block
Clone Repo
from the left sidebar and connect it to the PR Opened block.Select the Git Organization
Select the Repository
{{trigger.repository.name}}
.Select the Branch
{{trigger.pullRequest.headBranch}}
.agent.run
action to execute a single agent for this focused task.
Add the Prepare Review Plan block
agent.run
onto the canvas and connect it after Clone Repo
.Select the Planner Agent
Senior Developer
agent to this step.Write the planning instructions
agent.run
for planning? The review planning step is a focused, single-purpose task that can be completed by one agent without coordination. This makes agent.run
perfect for generating the initial review plan.agent.session
action to coordinate multiple agents for this complex, multi-step review process.
Add the Code Review block
agent.session
onto the canvas and connect it to Prepare Review Plan
node.Set the step ID
prepareReviewPlan
.Assign the Reviewer Agent
Code Reviewer Agent
and/or other agent personas to perform the review.Configure the instructions
review items
variable at the bottom of the prompt, it is a dynamic value with the output of the Prepare Review Plan
node.Open a pull request
Monitor the execution
Executions
tab to see the step-by-step progress. You should see the repo cloned, the review plan created, and comments posted on the PR.Reply on a review comment