A background agent is a per-task coding agent that runs on remote infrastructure, clones your repository, does the work while you do something else, and finishes by handing back a diff or a pull request. Three mainstream implementations exist. Cursor renamed Background Agents to Cloud Agents in Cursor 2.0; they run on isolated Ubuntu VMs, configure themselves from .cursor/environment.json baked into a Build, and bill at the selected model’s API pricing. Codex cloud tasks run in isolated cloud environments you configure with dependencies, tools, variables and setup steps, and return a summary and diff you can turn into a pull request. GitHub Copilot cloud agent, still filed under the coding-agent documentation path, runs in an ephemeral environment powered by GitHub Actions, is available on all paid Copilot plans, and consumes Actions minutes and AI credits. All three are ephemeral and see only what is committed and pushed. Grok Bot is a different shape entirely: a persistent named teammate on a shared machine, not a task runner. Running the same agents locally in git worktrees is the fourth option, and it is the one where your uncommitted work and local secrets still exist.
- Background agent means per-task and remote. Ephemeral machine, cloned repo, a diff or pull request at the end.
- All three vendors renamed it. Cursor calls them Cloud Agents; GitHub’s docs say "Copilot cloud agent" at a URL that still reads coding-agent; OpenAI’s
developers.openai.com/codex/cloudnow 308-redirects tolearn.chatgpt.com/docs/cloud. - They can only see what is committed. Your working tree, your untracked
.env, and your local database do not exist to them. - Each one bills differently: Cursor at the model’s API pricing against your allowance, Copilot against Actions minutes and AI credits, Codex against your plan’s usage.
- Grok Bot is not a background agent. It is a persistent teammate with memory on a shared machine, and it does not hand you a pull request.
- A local session in a worktree is the fourth option, and the only one where uncommitted work, local services and real secrets are already present.
The definition, and why the term is confusing
A background agent is a coding agent that runs a task on infrastructure that is not your machine, while you get on with something else, and finishes by handing you a reviewable artefact. In practice that artefact is almost always a branch with a pull request on it, because a pull request is the one interface every engineering team already knows how to receive work through.
The word "background" is doing two jobs at once, which is the source of most of the confusion. It means asynchronous (you are not watching it) and it means elsewhere (it is not on your laptop). Those two properties usually travel together but they are separable, and separating them is the fastest way to make sense of the category.
| Runs where | You watch it? | Example | |
|---|---|---|---|
| Editor agent | Your machine | Yes | Cursor agent in the sidebar, Claude Code in a terminal |
| Background agent | Vendor infrastructure | No | Cursor Cloud Agents, Codex cloud tasks, Copilot cloud agent |
| Local parallel session | Your machine, in a worktree | No | Several agent sessions on separate branches at once |
| Always-on teammate | Vendor infrastructure, persistent | No | Grok Bot, Manus |
Row three is the one people forget exists, and it matters because it has the properties most developers actually want: nothing to reconfigure, your secrets already present, and no per-task cold start. Row four is a different product category that keeps getting compared to row two because both are "an agent that runs while you sleep".
Every vendor renamed it, which is why the search results conflict
If you searched for this term and got contradictory answers, that is not you. All three products changed their names inside a year, and the documentation moved with them while the third-party writing did not.
| Vendor | Called now | Called before | Where the docs live |
|---|---|---|---|
| Cursor | Cloud Agents | Background Agents | cursor.com/docs/cloud-agent, with the old path redirecting |
| OpenAI | Codex cloud tasks | Codex web / Codex cloud | learn.chatgpt.com/docs/cloud, after a 308 from developers.openai.com/codex/cloud |
| GitHub | Copilot cloud agent | Copilot coding agent | docs.github.com/copilot/concepts/agents/coding-agent/about-coding-agent, where the page body says cloud agent and the URL still says coding agent |
The GitHub row is the funniest and the most useful: the documentation page reachable at the coding-agent path refers to the product as "Copilot cloud agent" throughout. Both names are therefore live, both are searched, and any page that insists only one is correct is wrong about the product it is describing.
The practical consequence is that most of what ranks for "cursor background agent" describes the 2025 feature, which had a different entry point, different billing, and a different answer on Privacy Mode. Check the date on anything you read about this, including this page.
Cursor background agents, now Cloud Agents
Cursor’s implementation is the most fully built out, and it is the one people mean when they type "background agent" into a search box (the term carries around 590 searches a month at a keyword difficulty in the teens, which tells you how young the category still is).
A Cloud Agent runs in an isolated Ubuntu VM in Cursor’s cloud with your repository cloned, dependencies installed, secrets injected, and startup commands run. Cursor does not publish CPU, memory, or disk figures and describes the default VM profile as having limited memory and CPU; custom resources exist as an Enterprise feature. Assume a modest box rather than a build server.
- Setup lives in
.cursor/environment.jsonand is baked into a Build, a bootable snapshot, so agents start ready rather than installing dependencies on every run. Builds carry no separate charge. - You can start one from nine surfaces: the desktop Agents Window,
cursor.com/agents, the iOS app, Slack, GitHub, Bitbucket, Linear, the API, and the CLI by prefixing a message with&. - An account admin must connect source control first, with read-write repository privileges so the agent can push a branch. On a work account this is the step that blocks you and not one you can do yourself.
- Billing is the selected model’s API pricing, drawn from your included allowance first.
- Privacy Mode is fine; Privacy Mode (Legacy) is not, because a cloud agent has to store code and environment data while it runs.
- The machine is ephemeral. Commit constantly, because uncommitted work does not survive a VM reset.
The full walkthrough, including the failure modes and the concurrency limits, is in the Cursor background agents guide.
Codex cloud tasks
OpenAI’s version is the most cleanly separated from an editor. Codex runs in two places: a CLI on your machine with granular approval controls, and cloud tasks that run server-side on OpenAI infrastructure. The cloud half is the background agent.
The documentation describes tasks running in "isolated cloud environments" where you can "work in parallel". You configure an environment once with its dependencies, tools, variables and setup steps, then pick it when you describe a task. The task returns a summary and a diff for you to review, and from there you can ask for follow-up changes or open a pull request. Agent internet access is a configurable property of the environment rather than an unconditional default, which is the detail teams with a security review care about most.
Where Codex cloud tasks fit best is batch work with a clear boundary: dependency upgrades, expanding test coverage, style migrations, and bug fixes described precisely enough that success is testable. They fit worst where the task depends on state that is not in the repository, which is the same constraint every product in this section shares.
GitHub Copilot cloud agent
GitHub’s implementation has the least setup of the three because it reuses infrastructure your repository already has. The agent "runs in a secure, ephemeral development environment powered by GitHub Actions", where it explores the codebase, makes changes, and runs your tests and linters.
You start it by assigning work: from the agents panel, from a GitHub issue, from Visual Studio Code, by mentioning @copilot in a pull request comment, or on a schedule. It pushes commits to a draft pull request as it goes, and the session logs are visible while it works, which is the best progress interface of the three.
- Availability: "Copilot cloud agent is available for all paid Copilot plans." Business and Enterprise subscribers need an administrator to enable it.
- Billing: it consumes GitHub Actions minutes and AI credits. Within your included minutes and credits there is no additional charge, which means the cost lands in a budget line your organisation probably already tracks.
- The environment is your Actions environment, so whatever your CI can already reach, the agent can broadly reach too. That is a convenience and a scope question at the same time.
The Actions billing model is genuinely different from the other two and worth understanding before you scale it up. Cursor and Codex meter inference; Copilot meters inference and machine time separately, and on a busy repository the Actions minutes are the line that moves first.
The four things every background agent needs from your repository
Different vendors, same four prerequisites. If a background agent is underperforming for you, it is nearly always one of these rather than the model.
| Requirement | Why | Symptom when missing |
|---|---|---|
| Everything committed and pushed | The agent clones the remote. Your working tree is invisible to it | The agent "cannot find" code you are looking at right now |
| A reproducible install | A fresh machine has nothing on it | Runs burn their time on dependency errors and never reach the task |
| Secrets supplied deliberately | Your untracked .env is not in git, and should not be | Tests fail against services the agent cannot authenticate to |
| A test the agent can run | Without one the agent cannot tell success from plausible-looking code | Confident pull requests that do not work |
A repository that satisfies all four is a repository a new human hire can also start work in on day one, which is why teams that already invested in onboarding get results from background agents faster than teams that did not. The agent is not the variable.
How Grok Bot differs, and why the comparison keeps happening
Grok Bot launched on 11 August 2026 and gets compared to background agents constantly, partly because both run remotely and partly because since 21 August it is bundled with Cursor Pro+ and Cursor Teams plans, so a lot of developers now own both without having chosen either.
They are different shapes. A background agent is a task runner: you give it a job, it gets an ephemeral machine, it returns a diff, the machine disappears. A Bot is a persistent teammate: xAI documents that "all of your Bots use the same persistent cloud computer", that they "share files, browser sessions, and app logins", and that named Bots "keep memory, files, browser sessions, and preferences across turns". Nothing is discarded at the end of a task, which is the point.
| Background agents | Grok Bot | |
|---|---|---|
| Unit of work | A task, usually a ticket | A message in a thread, or a scheduled routine |
| Machine lifetime | Ephemeral, per task | Persistent, one per account, shared by every Bot |
| Deliverable | A branch and a pull request | Whatever the task did, reported back in the thread |
| Memory between runs | The repository is the memory | Files, logins and preferences persist |
| Isolation | Scoped to the task | A screen per Bot, but explicitly not a security boundary |
| Model choice | You pick it in Cursor and Codex | No picker, and no documented default |
| Good at | Repository changes reviewed as pull requests | Recurring cross-app work in software with no API |
The head-to-head with the closest product on each side is covered in Grok Bot versus Cursor background agents, and if what you actually want is xAI’s coding agent rather than its teammate product, Grok Bot versus Grok Build sorts out that confusion.
The fourth option: the same agents, on your own machine
Every constraint in the section above comes from the machine being somewhere else and starting empty. Running the same agents on your own hardware removes the constraint rather than working around it, and the asynchronous half of the value survives intact if you can drive the session from your phone.
That is what a workbench like Continuum does: it starts Claude Code, Codex, Cursor, Grok, Gemini, or OpenCode sessions on your Mac or Linux box, each in its own git worktree so parallel work does not collide, and gives you iPhone and web control of a session that is executing on your desk. The repository is already cloned, the toolchain is already installed, the environment variables are already there, and the branch you are half way through is visible to the agent because it is on the same disk.
| Cloud background agent | Local session in a worktree | Persistent cloud teammate | |
|---|---|---|---|
| Setup before first run | An environment file and a Build or setup script | None. The machine is already configured | Sign in, then hand over credentials as it asks |
| Sees uncommitted work | No | Yes | Not applicable |
| Local services and secrets | Only what you inject | Already present | Whatever you typed into the shared machine |
| Cost of an idle hour | Nothing, the machine is gone | Nothing, the machine is yours | The seat, and often the VM |
| Model choice | Yes, within one vendor | Yes, across labs | No |
| Needs a machine left on | No | Yes | No |
| Cost attribution per repository | Vendor dashboards, per product | One view across every provider | None published |
The last row on the honest side of the ledger is row six. If you have no machine that stays awake, a cloud background agent is simply better for you, and no amount of argument changes that. If you do have one, the cloud version is solving a problem you do not have while charging you for a machine you already own.
Which one to use, by situation
| Situation | Use |
|---|---|
| A well-bounded ticket, tests exist, repo installs cleanly | Any background agent. Use whichever your team already pays for |
| Your team lives in GitHub issues and Actions | Copilot cloud agent. Least new machinery to introduce |
| You want to fan out ten independent chores overnight | Codex cloud tasks. Configure one environment, run tasks in parallel |
| You start work from Slack, Linear or your phone | Cursor Cloud Agents. Nine entry points is the feature |
| The task needs your local database, VPN or unpushed branch | A local session in a worktree. No cloud agent can see any of it |
| You need a model from a different lab than your editor’s vendor | A local session. Cloud agents keep you inside one catalogue |
| The work is not code at all | An always-on teammate, not a background agent |
| You need per-repository cost attribution across providers | A workbench that meters locally. No cloud agent publishes this |
One habit worth adopting whichever you pick: write the task the way you would write it for a contractor with repository access and no context. Name the files, state the acceptance test, and say what not to touch. Every one of these products improves more from that than from a model upgrade, and it is free.
Questions people ask
What is a background agent?
A background agent is a coding agent that runs a task on remote infrastructure rather than your machine, works while you do something else, and hands back a reviewable result, usually a branch with a pull request. Cursor, OpenAI and GitHub all ship one. The defining constraint is that the agent clones your repository, so it can only see work that is committed and pushed.
What is a Cursor background agent?
It is Cursor’s remote agent feature, renamed to Cloud Agents in Cursor 2.0. It runs on an isolated Ubuntu VM in Cursor’s cloud, configures itself from .cursor/environment.json baked into a bootable snapshot called a Build, and can be started from the desktop app, the web, iOS, Slack, GitHub, Bitbucket, Linear, the API, or by prefixing a CLI message with an ampersand. Billing is the selected model’s API pricing against your included allowance.
Does Codex have a background agent?
Yes, they are called cloud tasks. Codex runs them in isolated cloud environments on OpenAI infrastructure that you configure with dependencies, tools, variables and setup steps. A task returns a summary and a diff, and you can request follow-up changes or open a pull request from there. Agent internet access is configured on the environment rather than assumed.
What is the GitHub Copilot background agent called now?
GitHub’s documentation calls it the Copilot cloud agent, on a page whose URL still says coding-agent, so both names are current. It runs in an ephemeral development environment powered by GitHub Actions, pushes commits to a draft pull request as it works, is available on all paid Copilot plans, and consumes GitHub Actions minutes and AI credits rather than a separate subscription.
Can a background agent see my uncommitted changes?
No. Every implementation clones your repository from the remote, so your working tree, your untracked files, and your local .env do not exist to it. This is the single most common source of confusion with background agents. If a task depends on work in progress, either push it to a branch first or run the agent locally in a worktree instead.
Is Grok Bot a background agent?
No. Grok Bot is a persistent always-on teammate rather than a per-task runner. Its Bots share one cloud computer per account, keep memory, files and browser sessions across turns, and report back in a chat thread instead of opening a pull request. xAI also documents that separate Bots are not a security boundary, which is not a property any per-task background agent has, because a per-task machine is discarded when the task ends.
How much do background agents cost?
It depends on which meter the vendor uses. Cursor bills at the selected model’s API pricing, drawn from your plan’s included allowance, with Builds included at no extra cost. Copilot cloud agent draws on GitHub Actions minutes and AI credits, with no extra charge inside your included amounts. Codex cloud tasks run against your Codex plan usage. The costs that surprise teams are usually failed runs, because a run that dies during dependency installation still consumed something.
When should I run an agent locally instead?
When the task touches anything not in the repository: a local database, a VPN-only service, real credentials, an unpushed branch, or a device attached to your desk. Also when you want a model from a different lab than your editor’s vendor offers, or per-repository cost attribution across providers. Running sessions in git worktrees keeps parallel local work isolated, and remote control from a phone or browser keeps the asynchronous half of the benefit.
Sources
Every figure above was read from these pages on August 2026. Vendors reprice without notice; if you find a stale number, tell us.
- Cursor Cloud Agent documentation the Background Agents to Cloud Agents rename, isolated Ubuntu VMs, environment.json, Builds, Privacy Mode
- Codex cloud tasks (OpenAI) isolated cloud environments, parallel tasks, configured environments, summary and diff, pull request
- About GitHub Copilot cloud agent (GitHub Docs) the GitHub Actions powered ephemeral environment, all paid Copilot plans, Actions minutes and AI credits
- Grok Bot overview (docs.x.ai) one shared cloud computer per account, per-Bot screens, the security-boundary warning, memory, routines, connectors
- Grok Bot on more plans (xAI) 21 August 2026 access expansion to SuperGrok Plus, Cursor Pro+, and all Cursor Teams plans
- Continuum pricing the free app, and Plus, Max 100, Max 200 and Ultra hosted inference with weekly allowances