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.
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.
- 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
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.