Coral

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

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?, Anthropic’s Claude Code on the web, GitHub’s Copilot on GitHub.com and OpenAI’s Codex Cloud. These products change often, so their pages win if this one disagrees.

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. Download Coral for free

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.

The name stuck as a generic one because every agent vendor built the same thing: Claude Code cloud sessions, GitHub’s Copilot agent that works “in the background” in a cloud environment, and Codex Cloud. Companies also built their own. Ramp wrote up why it built its own 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.

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:

ProductWhere it runsHow you start itWorth knowing
Cursor Cloud AgentsIts own sandboxed VM with your repo, dependencies and secretsCloud in Cursor, cursor.com/agents, or @Cursor in Slack, GitHub or LinearAttaches videos, screenshots and logs to the pull request; schedules and events through Automations
Claude Code cloud sessionsAnthropic’s infrastructure, or your company’s self-hosted environmentclaude.ai/code, the apps or the terminalKeeps running after you close your laptop; you pick its permission mode when you start it and can change it while it runs
GitHub CopilotA cloud environment on GitHub Actions, or a cloud sandboxGitHub.com, GitHub Mobile, Copilot ChatOne branch and one pull request per task; a session on Actions stops at 59 minutes
Codex CloudOpenAI’s cloudCodexRuns 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, 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.

If your background agents run on your Mac or an SSH server, Coral shows the one that needs you in the notch. Get Coral, free

Background agents vs coding agents, software factories and swarms

TermWhat it namesWho starts itWhere you meet the work
Background agentWhere one agent runs: away from you, often in the cloudYou, or a triggerLater, as a pull request or branch
Coding agentAny agent that writes and runs code in a loopYou, at the keyboardLive, in your terminal or editor
Software factoryThe whole loop where triggers start agents, often background onesAn issue, a schedule, a failing buildAt the gates you keep: plan, merge
Agent swarmMany agents on one goal at onceYou or a lead agentWherever 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, 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 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 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). That’s Pro.
  • 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 covers the setup, and Run Claude Code over SSH and 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.

Never leave an agent waiting.

Coral taps you in your Mac’s notch or on your iPhone when an agent needs you. Free.

Download for freeSee pricing

More terms

Guides for coding agents