Now available: Review Agents banner
5 min read
product

Stay in the loop

Get notified when we ship new posts.

Now available: Review Agents

Depot Review Agents are now available for your Depot Code, Origin, and GitHub repositories. Each review agent is an automated reviewer that checks your code changes against instructions you define. You choose what each reviewer looks for and which events trigger it. Depot runs the reviewers and reports their findings, so you don’t have to build and maintain the review infrastructure yourself.

Our team is using automated review tools internally. They help us keep the bar high while publishing more code.

But review findings need a clear role in the merge process. Some findings should block merges, while others should provide feedback without blocking. Your review instructions define that distinction, and your repository rules determine whether a failed check blocks merging.

Reviews you control, end to end

A review agent combines instructions and a list of events to watch across your repositories. You choose what each agent looks for, when it runs, and which model and reasoning effort it uses.

When a watched event occurs, we start a sandbox. The sandbox includes a minimal runtime, your agent, your code, and your instructions. The agent reads the diff and surrounding code. It can run commands, builds, and tests using tools and dependencies already available in the sandbox.

You can also run a review manually against a branch, commit, or revision range in any connected repository.

Findings you can inspect and act on

Each review gives you a decision, a summary, and findings tied to your code. Inspect the recorded transcript to see how the agent reached its conclusion, or copy findings into your coding agent. For GitHub repositories with Depot Checks connected, results also appear alongside your other checks. See the results guide for details.

A review agent we run on our own code

One agent we run on pull requests to the repository behind depot.dev looks for bugs the change introduces. Here's a trimmed version you can create for your own repository:

depot checks agents create --name "blast radius" \
  --instructions "Review the change for bugs it introduces.
Trace the changed code and its callers. Report only problems the change
introduces, not pre-existing issues, style, or naming. For each finding,
give the conditions that trigger it and the effect on users or data.
Fail only for high-severity bugs: security holes, data loss, or breakage
on common paths." \
  --repo github:<owner>/<repository>

Recently, this agent caught a placeholder date ('YYYY-MM-DD') in a changelog entry. Our dashboard's What's new panel formats those dates on every page, so the invalid date would have crashed the dashboard. The review flagged the invalid date and failed its GitHub check. The author pushed the fix, and a new review passed.

Review history beside a blast radius review flagging an invalid changelog date.

Get started with Review Agents

You’ll need the owner role in a Depot organization and a connected Depot Code, Origin, or GitHub repository with at least one commit. For GitHub, connect Depot Code Access to read the repository.

  1. Open Review Agents.
  2. Name your agent and write its review instructions.
  3. Choose a model and reasoning effort.
  4. Select the repositories and events that trigger automatic reviews.
  5. Click Create agent.
  6. Click Run a review, select your repository and agent, and then click Run review.

When the review finishes, open the result to inspect the findings and transcript. To publish results to GitHub, also connect Depot Checks and grant it access to the repository.

Follow the quickstart for repository connections and your first review, then create custom agents for your team’s review criteria.

Create agents and run reviews with the CLI

Use depot checks to create an agent that automatically reviews repository changes. This example uses Depot Code; replace <owner>/<repository> with your full repository name. You can also use Origin or GitHub with the origin: or github: prefix:

depot checks agents create --name "API compatibility" \
  --instructions "Look for breaking changes to API request and response fields." \
  --repo depot:<owner>/<repository>

You can also run a review on demand from your terminal or CI. Use the returned agent ID to review a branch against main:

depot checks run <agent-id> \
  --repo depot:<owner>/<repository> \
  --base main \
  --head feature/api-change

The run command queues the review without waiting for completion. Use depot checks get <check-id> to inspect the result. See the Review Agents CLI reference for authentication, more commands, and options.

Pricing

Review agents use model tokens and sandbox compute, billed separately. We charge no markup on tokens. Token costs depend on the model, input, output, reasoning effort, and caching.

Sandbox compute draws from one pool of included minutes shared with Depot CI, Depot Sandboxes, and Managed Agents. Included minutes are measured at 2 vCPUs. Compute is billed by the second, with no one-minute minimum per run. After the shared allowance, compute costs $0.00005 per vCPU-second on Developer and Startup plans.

See model rates, including cached input and long-context pricing, and sandbox pricing.

Let us know what you think

Try Review Agents with your team’s review criteria. We’d love to hear what works and what needs improving. Send us your feedback through support or Discord.

Start building with Depot
in minutes