Review Agents

Review Agents

Depot Review Agents review code changes using instructions you define. You can create review agents for specific concerns, like correctness or API compatibility, and customize the model, forge, repositories, and events that trigger a review.

Depot runs each review agent in a Depot sandbox and reports its findings. You don't need to provision or maintain the infrastructure that runs the reviews.

For GitHub repositories, Depot can also publish results as GitHub checks, with a link to the full review in Depot.

How review agents work

An agent is a reusable reviewer: a prompt, a model choice, the repositories it watches, and the events that trigger a review.

A review is one run of that agent against a specific code change, started by one of those events or manually.

Set up once, review each changeDefine a reusable review agent with instructions, repositories, and automatic events. For each repository, push a change to start new reviews and checks. Review agents report decisions and findings, including which earlier findings are fixed or still open when earlier context is available. If the change meets your merge criteria, it is ready to merge. Otherwise, your coding agent reads the findings, fixes the code, and pushes a new commit to start the cycle again.Set up onceDefine a reusable review agentInstructions · Repositories · Automatic eventsPer change per repoPush changesNew commit, new checksReview agent runsDecision and findings in each checkWith earlier review context:Which findings are fixed or still open?Ready to mergeAll checks pass oryour merge criteriaare met.Changes neededFix with your coding agentRead findings, fix the code, pushNext commit, new checks

During a review, the agent reads the diff and the surrounding code in a Depot sandbox. To confirm a suspected issue, it can run commands, builds, and tests in a disposable copy of the checkout. The agent discards any changes it makes in the sandbox; changes aren't committed or pushed to your repository.

Each completed review returns a decision and a summary. If the agent identifies issues, the result includes findings with references to relevant files. You can inspect the results in the Depot dashboard.

When available, the review transcript shows the agent's messages, tool calls, and tool outputs. Use the transcript to verify what the agent read and ran and inspect the evidence behind its findings.

Choose what to review

Use separate agents for concerns that need different instructions. For example, one agent can review behavior changes while another looks for API changes that break existing clients. Each agent produces its own review.

One agent can watch repositories on Depot Code, Origin, and GitHub. Each event you select applies only to repositories from its provider. You can also choose a branch, commit, or revision range and kick off a manual run.

Example: API compatibility review agent

This API compatibility agent watches two repositories. One review passes; the other identifies a breaking change.

Review agent
API compatibility
Prompt
Flag changes that break existing API clients. For every removed or renamed response field, changed type, or new required request parameter, search the web app and the SDK for readers of that field before deciding. Cite the file and line of each client that would break, and pass changes that only add optional fields.
Repositories
GitHub: acme/billing-apiDepot Code: acme/widgets-api
Run automatically on
GitHub: Pull request openedDepot Code: New commits pushed
Automatically triggered reviews
Review · API compatibility
GitHub: acme/billing-api
3f9c2a1..8b7d04e
Triggered by: Pull request opened
Code change
Adds an optional region field to the invoice response.
Evidence from the transcript
rg -n "invoice\." web/ sdk/Existing fields keep their names and types, so current clients are unaffected.
Status
Passed
Findings
No findings
Review · API compatibility
Depot Code: acme/widgets-api
c41e7d9..e02b5f3
Triggered by: New commits pushed
Code change
Removes the status field from the widget response.
Evidence from the transcript
rg -n "\.status" web/ sdk/The web app and the SDK still read status.
Status
Needs changes
Findings
Removing status breaks existing clients that read this field.src/api/widgets.ts:42

Understand the result

Each completed review has a status: Passed, Passed with findings, or Needs changes. Findings in a passing review are advisory; Needs changes means the agent recommends fixes before merging.

If the agent cannot complete the review, Depot shows Couldn’t finish instead of a review decision. Retrying it adds a new attempt to the same review.

A GitHub check shows the review's status on your commit or pull request and links to the full results in Depot.

See Run reviews and read results for result states, retries, finding resolution, and revision selection.

Pricing

Review agents use sandbox compute and model tokens, billed separately. For models, see Models and pricing. For plan details, see Pricing.

  • Review agents share one pool of included sandbox minutes with Depot CI, Depot Sandboxes, and Managed Agents. Depot measures included minutes at 2 vCPUs.
  • Depot bills compute by the second, with no one-minute minimum per run.
  • After you use the shared allowance, additional compute costs $0.00005 per vCPU-second on Developer and Startup plans.

Next steps

Start with the quickstart, then create your custom agents.

To manage agents and run reviews from your terminal, see the Review Agents CLI reference.