Overview
After one coding agent has built a feature on a branch, start a Cursor cloud agent that clones the repository, runs the tests and writes an independent review for you to act on.
Problem or Objective
- Which agents review pull requests?
- Which agents take on multi-step tasks in the background and report back when they finish or need approval?
More in Coding and Code Review
AI Agents and Models
Tools and Integrations
- Tools
- Cursor
- Prerequisites
- A Cursor plan that includes Cloud Agents (Premium and higher, Teams, Enterprise or a legacy paid plan; Free and Plus do not include them), source control connected by a Cursor account admin, and an environment that can run your tests.
How It Works
Let your first coding agent finish its work on its own branch and push it. Make sure your Cursor account has source control connected and a cloud agent environment that can install dependencies and run the test suite. Start a Cursor cloud agent on that branch with a review brief: read the diff against the main branch, run the tests and the app, and write a report of bugs, missing tests, security concerns and places where the code ignores existing patterns, each with file, line and a suggested fix. Tell it to put the report in a Markdown file on a separate review branch and not to change the reviewed code or merge anything. It runs in the cloud, so you can leave it overnight. In the morning, read the report, check each finding against the code and tests, and decide which fixes to make or hand back to the first agent.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up Cursor.
- Connect the toolsConnect the tools this workflow relies on: Cursor.
- Check the prerequisitesA Cursor plan that includes Cloud Agents (Premium and higher, Teams, Enterprise or a legacy paid plan; Free and Plus do not include them), source control connected by a Cursor account admin, and an environment that can run your tests.
- Gather your detailsCollect what the prompt asks for: Branch to review, Repository, What the change is meant to do, Base branch, Test command.
- Run the starter promptPaste the starter prompt below into Cursor and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at cursor.com before you rely on it.
Practical Starter Prompt: Review another agent's branch
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
Review the branch [Branch to review] in [Repository], which another coding agent wrote to [What the change is meant to do]. Compare it with [Base branch], install dependencies, run [Test command] and start the app if you can. Write a report listing bugs, missing tests, security concerns and departures from existing patterns, each with file, line, severity and a suggested fix. Save it as REVIEW.md on a new branch named review/[Branch to review]. Do not edit the reviewed code, open a merge, or merge anything; I will decide what to change.Read the report and check each finding against the code and tests yourself. Decide which fixes to make; nothing is merged by either agent without your decision.
Expected Results and Benefits
This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.
This is a suggested workflow, not a reported outcome. The Cursor docs support cloud agents that clone a repository, work on a separate branch, build and test the changed software in their own virtual machine, and run in parallel without your computer online. They do not measure how many defects a second agent finds, so each finding needs your own check.
Limitations and Considerations
A reviewing agent can be wrong in both directions: confirm each finding with a test or by reading the code, and do not treat a clean report as proof. Cursor's docs say cloud agents auto-run all terminal commands, which brings a data exfiltration risk from prompt injection; restrict outbound network access and keep secrets out of the review environment where you can. Nothing should merge until a person has decided. Cloud agents need a plan that includes them and a Cursor admin must connect source control first; they use your plan's usage at the selected model's rate. Results depend on your setup and were not independently reproduced by Top 200 Repos.
Sources
- Cloud Agents | Cursor Docs (opens in a new tab)
Project documentation · cursor.com · Undated · Source checked 26 Nov 2026, 17:27 UTC
What this source supports
- Because they have access to their own virtual machine, cloud agents can build, test, and interact with the changed software.
- Cloud agents clone your repo from GitHub, GitLab, Azure DevOps Services, or Bitbucket Cloud and work on a separate branch, then push changes to your repo for handoff.
- You can run as many agents as you want in parallel, and they do not require your local machine to be connected to the internet.
- Before anyone can start a cloud agent from a repository, a Cursor account admin needs to connect source control for the account.
- Secrets & Network | Cursor Docs (opens in a new tab)
Project documentation · cursor.com · Undated · Source checked 26 Nov 2026, 17:27 UTC
What this source supports
- The agent auto-runs all terminal commands, letting it iterate on tests.