# What are background agents?

> Background agents are coding agents that run on their own, usually on a cloud machine, and come back later with a pull request while you do other work.

Updated November 22, 2026 · https://usecoral.app/glossary/background-agents

Background agents are coding agents that run on their own, usually in a cloud machine, while you do something else. You hand one a task from your editor, a chat, an issue or a schedule; it plans, edits, runs the tests and comes back later with a pull request or a branch for you to review.

“Background coding agents”, “cloud agents” and “async agents” mean the same thing. The opposite is the interactive session you watch in your own terminal.

As of November 2026, from the vendors’ own pages: Cursor’s [What are background agents?](https://cursor.com/help/ai-features/background-agents), Anthropic’s [Claude Code on the web](https://code.claude.com/docs/en/claude-code-on-the-web), GitHub’s [Copilot on GitHub.com](https://docs.github.com/en/copilot/concepts/copilot-surfaces/copilot-on-github) and OpenAI’s [Codex Cloud](https://learn.chatgpt.com/docs/cloud). These products change often, so their pages win if this one disagrees.

<p data-cta="guide_top">A background agent still needs you sometimes: a question, a permission, a finished task. For the agents running on your Mac and your servers, Coral puts that moment in your Mac’s notch. <a href="/download">Download Coral for free</a></p>

## Where the term came from

The plainest definition is Cursor’s. Its help page says background agents are “coding agents that typically run for a very long time… moving a task from your local device to the cloud, where the agent takes it from start to finish without interruption”, and adds that [in Cursor they’re called Cloud Agents](https://cursor.com/help/ai-features/background-agents).

The name stuck as a generic one because every agent vendor built the same thing: Claude Code [cloud sessions](https://code.claude.com/docs/en/claude-code-on-the-web), GitHub’s Copilot agent that works [“in the background”](https://docs.github.com/en/copilot/concepts/copilot-surfaces/copilot-on-github) in a cloud environment, and [Codex Cloud](https://learn.chatgpt.com/docs/cloud). Companies also built their own. Ramp wrote up [why it built its own background agent](https://builders.ramp.com/post/why-we-built-our-background-agent), Inspect, which writes the code and then “closes the loop on verifying its work”, and there’s an open-source version, [Open-Inspect](https://github.com/open-inspect/background-agents).

## What it looks like in practice

You start the task, leave, and come back to the result. The big four differ in where the agent runs and what limits it has:

| Product | Where it runs | How you start it | Worth knowing |
|---|---|---|---|
| [Cursor Cloud Agents](https://cursor.com/help/ai-features/background-agents) | Its own sandboxed VM with your repo, dependencies and secrets | **Cloud** in Cursor, cursor.com/agents, or **@Cursor** in Slack, GitHub or Linear | Attaches videos, screenshots and logs to the pull request; schedules and events through Automations |
| [Claude Code cloud sessions](https://code.claude.com/docs/en/claude-code-on-the-web) | Anthropic’s infrastructure, or your company’s self-hosted environment | claude.ai/code, the apps or the terminal | Keeps running after you close your laptop; you pick its permission mode when you start it and can change it while it runs |
| [GitHub Copilot](https://docs.github.com/en/copilot/concepts/copilot-surfaces/copilot-on-github) | A cloud environment on GitHub Actions, or a cloud sandbox | GitHub.com, GitHub Mobile, Copilot Chat | One branch and one pull request per task; a session on Actions stops at 59 minutes |
| [Codex Cloud](https://learn.chatgpt.com/docs/cloud) | OpenAI’s cloud | Codex | Runs tasks “from investigating bugs to building features” |

A background agent doesn’t have to live in a vendor’s cloud. A Claude Code session in tmux on your own server is one too: [detach with Ctrl+B then D](https://usecoral.app/guides/claude-code-ssh-tmux), and the agent keeps working after you disconnect.

What doesn’t change is that the agent sometimes needs a person. It can stop for a permission its mode doesn’t cover, ask a question when the task is unclear, or finish and wait for review. Running in the background only changes where that request shows up: a web page, a phone app, a pull request, or a terminal pane you aren’t looking at.

<p data-cta="guide_body">If your background agents run on your Mac or an SSH server, Coral shows the one that needs you in the notch. <a href="/download">Get Coral, free</a></p>

## Background agents vs coding agents, software factories and swarms

| Term | What it names | Who starts it | Where you meet the work |
|---|---|---|---|
| **Background agent** | Where one agent runs: away from you, often in the cloud | You, or a trigger | Later, as a pull request or branch |
| **[Coding agent](https://usecoral.app/glossary/coding-agent)** | Any agent that writes and runs code in a loop | You, at the keyboard | Live, in your terminal or editor |
| **[Software factory](https://usecoral.app/glossary/software-factory)** | The whole loop where triggers start agents, often background ones | An issue, a schedule, a failing build | At the gates you keep: plan, merge |
| **[Agent swarm](https://usecoral.app/glossary/agent-swarm)** | Many agents on one goal at once | You or a lead agent | Wherever their combined work lands |

In short: a background agent is about *where* an agent runs. A software factory is about *what starts it*. Most factories are built from background agents, but you can run background agents by hand, one task at a time.

## A worked example: hand off a bug, check from your phone

With [Claude Code cloud sessions](https://code.claude.com/docs/en/claude-code-on-the-web), following Anthropic’s docs:

1. **Connect GitHub** so cloud sessions can clone your repo and push branches.
2. **Start the task** at claude.ai/code: pick the repo, describe the bug, and choose the permission mode from the mode dropdown. That choice decides how often the session stops for you.
3. **Close the laptop.** The session keeps running on the cloud VM. You can check on it or steer it from any device, including the Claude mobile app.
4. **Take it local if you need to.** Run `/teleport` in the cloud session and Claude Code replies with the exact `claude --teleport <session-id>` command. The terminal gets its own copy of the session; new work there stays local.
5. **Review the branch** like any other pull request.

One thing to plan for: cloud sessions stop after a period of inactivity, and the VM is reclaimed. Shell commands and subagents that were still running then aren’t restored, and Claude Code tells Claude which ones stopped, so you can ask it to rerun them.

## Where it stops

Background agents take the waiting off your keyboard. They don’t take the deciding off your plate:

- **The questions still come.** A task that needs a choice, a permission its mode doesn’t allow, or a missing secret still needs a person. In the background, nobody is watching when it happens, so the agent waits or carries on without it.
- **Review becomes the queue.** Five agents that each open a pull request give you five diffs to read. Dan Shapiro’s [five levels](https://www.danshapiro.com/blog/2026/01/the-five-levels-from-spicy-autocomplete-to-the-software-factory/) put it plainly: at that stage “your life is diffs”.
- **Each one is in a different place.** Cursor’s agents report in Cursor, Claude Code’s in claude.ai and the Claude app, Copilot’s on GitHub, and a tmux agent in its pane. Nothing puts them in one list.

## Where Coral fits

[Coral](https://usecoral.app/features) doesn’t run agents on a vendor’s cloud, and it doesn’t see those sessions: a Cursor Cloud Agent, a Claude Code cloud session or a Copilot task on GitHub isn’t in it. It covers the background agents that run on your own machines:

- **On your Mac.** A Claude Code, Codex, Copilot CLI, OpenCode or Grok session in a tab or tmux pane you aren’t looking at shows up in your Mac’s notch the moment it asks for a permission, has a question or finishes.
- **Answer with one key.** Press 1, 2 or 3 from any app; ⌘Z takes it back within two seconds.
- **On your servers.** Agents on a server you reach over SSH, or in a dev container, appear in the same notch with the server’s name next to the folder ([servers](https://usecoral.app/docs/servers)). That’s [Pro](https://usecoral.app/pricing).
- **Away from your Mac.** Alerts on your iPhone are Free; answering from the phone is Pro.

If you run several background agents in worktrees on your Mac, [Run multiple Claude Code agents](https://usecoral.app/guides/run-multiple-claude-code-agents) covers the setup, and [Run Claude Code over SSH and tmux](https://usecoral.app/guides/claude-code-ssh-tmux) covers the server side.

## Questions

### What are background agents?

Coding agents that run on their own while you do something else, usually on a cloud machine. You give one a task, and it plans, edits, runs the tests and comes back with a pull request or branch to review. Cursor, Claude Code, GitHub Copilot and Codex all have one.

### Is a background agent the same as a cloud agent?

Mostly. Cursor’s help page defines background agents and says Cursor calls them Cloud Agents, and most background agents run in the cloud. But an agent in tmux on your own server also works in the background, with no vendor cloud involved.

### Do background agents still ask for permission?

It depends on the product and the mode you pick. Claude Code lets you choose a cloud session’s permission mode when you start it and change it while it runs. Cursor runs each agent in a sandboxed VM where its commands never touch your machine. Either way, a question about the task itself still needs a person.

### How long can a background agent run?

It varies. A Copilot session on GitHub Actions stops at 59 minutes, and that limit can’t be extended. Claude Code cloud sessions stop after a period of inactivity. Cursor says its agents work “over minutes or hours”.

### Can I run a background agent on my own machine?

Yes. Start Claude Code or Codex inside tmux on a server or your Mac, detach, and it keeps working. That’s the kind of background agent Coral can watch.
