Overview
Turn a discussion about a pull request into one scoped task, hand it to a Cursor cloud agent from GitHub or Slack, and review the pull request it sends back.
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 · Slack
- Prerequisites
- A Cursor plan that includes Cloud Agents, a connected source control account set up by an account admin, read-write access to the repository, and the Slack integration if you start from a thread.
How It Works
First read the discussion and write the task yourself: the one change that was agreed, the files or behaviour involved, how to check it, and what is out of scope. Put that text in a GitHub issue or in the thread where the pull request is being discussed, and confirm the scope with whoever has to approve it before any agent starts. Then start a cloud agent: comment @cursor on the GitHub pull request or issue, or mention @Cursor in the Slack thread. In Slack, cloud agents can use the existing thread discussion as context. The cloud agent clones the repository, works on a separate branch and pushes the changes back, so your confirmation of the scope is also your approval for that push. Compare the resulting pull request and its artifacts with your written task, ask for changes with a follow-up, and merge only after a person has reviewed it.
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, Slack.
- Check the prerequisitesA Cursor plan that includes Cloud Agents, a connected source control account set up by an account admin, read-write access to the repository, and the Slack integration if you start from a thread.
- Gather your detailsCollect what the prompt asks for: Pull request or issue being discussed, The one change that was agreed, How you will know it is finished, Areas to leave alone.
- 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 docs.grok.com before you rely on it.
Practical Starter Prompt: Hand a scoped pull request task to a cloud agent
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
Work only on this task from the discussion about [Pull request or issue being discussed]: [The one change that was agreed]. Done means [How you will know it is finished]. Do not change anything under [Areas to leave alone]. Before editing, restate the task in a few lines and name anything that is unclear. Work on a separate branch and open a pull request for my review. Do not merge, deploy or push to the main branch. In the pull request, say how you checked the result and which points from the discussion you did not address.Confirm the written scope before you post it with the agent mention, because posting it starts work that ends in a push to a separate branch. Review the pull request yourself and keep merging as a human 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. Cursor documentation describes starting cloud agents from GitHub comments and Slack, the use of Slack thread context, and delivery on a separate branch with a pull request. The cited pages do not say how much of a GitHub pull request discussion an agent reads from a comment, so the entry has you write the task out in full.
Limitations and Considerations
The cloud agent page says that on GitHub the handle @cursor becomes @build on 7 December 2026. It lists Premium and higher, Teams, Enterprise or a legacy paid plan for Cloud Agents, with usage drawn from your plan, and says an account admin has to connect source control first and that you need read-write access to the repository. The security page says the agent runs terminal commands automatically, so limit the secrets and network access it gets. Check who on your team can send follow-ups to an agent, and read the thread for private material before you invoke it there. Results depend on your setup and were not independently reproduced by Top 200 Repos.
Sources
- Cloud Agents (opens in a new tab)
Project documentation · docs.grok.com · Undated · Source checked 2 Dec 2026, 14:46 UTC
What this source supports
- Comment `@cursor` on a GitHub PR or issue, or `@build` on a Bitbucket PR, to kick off an agent.
- 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 need a plan that includes Cloud Agents: Premium and higher, Teams, Enterprise, or a legacy paid plan.
- Slack (opens in a new tab)
Project documentation · docs.grok.com · Undated · Source checked 2 Dec 2026, 16:08 UTC
What this source supports
- Before Grok Build starts changing code, it posts a short plan in the thread when you are fixing a bug or when implementation details would help you follow along.
- Useful when your team discusses an issue and you want the agent to implement the solution based on that conversation.
- Secrets & network (opens in a new tab)
Project documentation · docs.grok.com · Undated · Source checked 2 Dec 2026, 14:46 UTC
What this source supports
- The agent auto-runs all terminal commands, letting it iterate on tests.