Overview
Hand a well-described GitHub issue to a Cursor cloud agent, which works on its own branch in a cloud machine and opens a pull request that you review, test and merge.
Problem or Objective
- Which agents turn an issue report into a fix?
- 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 · GitHub
- Prerequisites
- A Cursor plan that includes Cloud Agents (Premium and higher, Teams, Enterprise or a legacy paid plan) and source control connected by a Cursor account admin.
How It Works
Make sure a Cursor admin has connected your GitHub account and that your plan includes Cloud Agents. Pick an issue with a clear expected result and a way to check it, and add the files, commands and tests that matter to the issue text. Start a cloud agent for the repository from Cursor Web, or from GitHub if your team has set GitHub up as a surface for agents, and point it at the issue: what to change, what not to touch, which tests or checks to run, and that it should open a pull request when done. The agent clones the repository, works on a separate branch and opens a pull request. Read the full diff and the agent's summary, run the checks yourself, edit anything that is wrong, and merge only when you would accept the change from a colleague. For infrastructure code, run your usual plan or preview step and review it before anything is applied.
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, GitHub.
- Check the prerequisitesA Cursor plan that includes Cloud Agents (Premium and higher, Teams, Enterprise or a legacy paid plan) and source control connected by a Cursor account admin.
- Gather your detailsCollect what the prompt asks for: Issue link, Repository, Folders the agent may change, Checks to run, Base branch.
- 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: Resolve this issue in a pull request
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
Work on issue [Issue link] in [Repository]. Change only what the issue needs, in these areas: [Folders the agent may change]. Run [Checks to run] and fix failures. Open a pull request against [Base branch] that links the issue and explains what you changed, what you tested and anything you were unsure about. Do not merge, deploy or apply anything.Review the diff and run the checks yourself before merging; for infrastructure code, review the plan output before anything is applied.
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, make coordinated changes and open pull requests, and that teams can steer from surfaces including GitHub. They do not promise a pull request is ready to merge, and nothing here measured how often one is.
Limitations and Considerations
Cloud agents run terminal commands automatically, and the docs warn this creates a data exfiltration risk from prompt injection; give the agent only the secrets and network access the task needs. Review and test every pull request before merging, and never let an agent apply infrastructure changes without your review. Cloud Agents need a plan that includes them and use your plan's usage at the model's rate; set a spend limit. Check how your GitHub integration lets an issue start an agent before relying on it. 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.
- Cloud Agents are built to be multiplayer, so teammates can collaboratively steer the same agent from shared surfaces like Slack, Microsoft Teams, Jira, Linear, and GitHub.
- 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
- Auto-running introduces data exfiltration risk: attackers could execute prompt injection attacks, tricking the agent to upload code to malicious websites.