Overview
Give a Cursor cloud agent a framework's official migration guide and have it upgrade a site's framework and related packages on a separate branch, run the tests and open a pull request for review.
Problem or Objective
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), source control connected by a Cursor account admin, and a repository with a working build and tests.
How It Works
Pick one framework or library upgrade at a time. Save the relevant sections of its official migration or upgrade guide as a Markdown file in the repository, and note which packages depend on it. Start a Cursor cloud agent on the repository and ask it to read that guide, list the breaking changes that affect your code, then update the package versions and change the code to match. The agent works on a separate branch in its own cloud environment and runs terminal commands, so ask it to run the build and the test suite after each step and fix what fails. Have it open a pull request that lists every breaking change it handled and anything it left undone. Review the diff, run the site yourself and merge only when you are satisfied. Repeat for the next dependency.
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), source control connected by a Cursor account admin, and a repository with a working build and tests.
- Gather your detailsCollect what the prompt asks for: Path of the saved migration guide, Framework or package to upgrade, Current version, Target version, Command that builds and tests the site.
- 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: Upgrade one dependency from its migration guide
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
Read the migration guide in [Path of the saved migration guide] for upgrading [Framework or package to upgrade] from [Current version] to [Target version]. List the breaking changes that affect this repository and the related packages that also need updating. Then make the upgrade on your branch, run [Command that builds and tests the site] after each change and fix what fails. Open a pull request that lists each breaking change you handled, anything you could not resolve, and the test results. Do not merge: I will review and merge it myself.Run one upgrade per agent and pull request so each change is small enough to review. Check the running site, not only the tests, before you merge.
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. Cursor's documentation says cloud agents clone the repository, work on a separate branch in an isolated cloud environment, auto-run terminal commands to iterate on tests and can open pull requests. The pages do not say how well an agent handles any particular framework's breaking changes, so the review and your own testing decide whether the upgrade is ready.
Limitations and Considerations
A Cursor account admin must connect source control before anyone can start a cloud agent from a repository, and cloud agents need a plan that includes them. Cloud agents use your plan's usage at the selected model's rate. Because the agent auto-runs terminal commands, Cursor warns of a data exfiltration risk from prompt injection; keep secrets out of reach and restrict outbound domains where you can. Major upgrades can change behaviour that tests do not cover, so check the running site before merging. 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
- 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.
- The agent can inspect the full workspace, make coordinated changes, and open pull requests in the repos it changes.
- Before anyone can start a cloud agent from a repository, a Cursor account admin needs to connect source control for the account.
- You need a plan that includes Cloud Agents: Premium and higher, Teams, Enterprise, or a legacy paid plan.
- 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.
- Auto-running introduces data exfiltration risk: attackers could execute prompt injection attacks, tricking the agent to upload code to malicious websites.