Overview
Plan a frontend framework migration in slices, run several Cursor cloud agents in parallel on separate branches, have another agent check each slice against the plan, and review every pull request yourself.
Problem or Objective
More in Coding and Code Review
AI Agents and Models
Tools and Integrations
- Tools
- Cursor · git
- Prerequisites
- Cursor with cloud agents and a connected source control provider (GitHub, GitLab, Azure DevOps Services or Bitbucket Cloud), read-write access to the repository, and a test suite the agents can run.
How It Works
Set up a Cursor cloud agent environment for the repository with its dependencies installed, so agents can build the app and run the test suite. Start with one agent that writes a migration plan only: which components, routes and state code move in which order, what shared pieces must move first, and how each slice will be tested. Review and edit the plan. Then start one cloud agent per independent slice, in parallel; each clones the repository, works on its own branch and pushes its changes for handoff. When a slice is done, start a separate agent to review that branch against the plan and the tests and list problems, without changing code. Read the review, check the diff and test results yourself, and merge slices one at a time into a migration branch. Keep the old version deployable until the whole migration passes your full test and manual checks.
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, git.
- Check the prerequisitesCursor with cloud agents and a connected source control provider (GitHub, GitLab, Azure DevOps Services or Bitbucket Cloud), read-write access to the repository, and a test suite the agents can run.
- Gather your detailsCollect what the prompt asks for: Application, Current framework, Target framework, Where to write the plan, 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: Plan a sliced framework migration
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
We are migrating [Application] from [Current framework] to [Target framework]. Do not change any code yet. Read the repository and write a migration plan in [Where to write the plan]: list independent slices (components, routes, state), the shared pieces that must move first, the order, and for each slice the tests that must pass with [Test command]. Mark slices that touch the same files so they are not run in parallel. I will review and approve the plan before any slice is started, and I will review and merge every slice branch myself.Approve the plan first. Start one cloud agent per approved slice, then a separate review agent per branch. Read each review, check the diff and tests yourself, and merge slices one at a time.
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 cloud agent documentation says you can run many agents in parallel, that each works on a separate branch and pushes changes for handoff, and that agents need an environment where they can run tests to close the loop. No cited page covers a framework migration as such, so how well each slice converts depends on your code, tests and plan.
Limitations and Considerations
Cloud agents auto-run terminal commands, which Cursor's security page says adds a data exfiltration risk from prompt injection, so restrict network access and keep production secrets out of the environment. You need read-write access to the repository. Parallel agents touching shared files will conflict; give each slice clear boundaries and merge one at a time. Many parallel runs use more of your plan's usage. 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
- 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.
- 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.
- An agent that can write code but can't run tests, query services, or reach APIs cannot close the loop on its work.
- You need read-write privileges to your repo and any dependent repos or submodules.
- 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.