---
title: "Asynchronous coding agent pattern for AI agents | Agentic Pattern Language"
description: "Hand a task to an agent that works unattended in the cloud and returns a pull request to review. Sourced from Cursor, Spotify, and Anthropic."
url: https://agenticpatternlanguage.com/patterns/background-agent/
---

29 [People and agents](https://agenticpatternlanguage.com/#people-and-agents)

# Asynchronous coding agent

Hand a task to an agent that works unattended in the cloud and returns a pull request to review.

Also called Background agent, Background coding agent, Cloud agent, Cloud session

SW KB Cursor, Spotify, Anthropic, OpenAI, Simon Willison, Kent Beck

[How to read this](https://agenticpatternlanguage.com/notation/)

## Builds on

* [Sandboxing](https://agenticpatternlanguage.com/patterns/sandboxing/)

## Alternatives

* [Human approval](https://agenticpatternlanguage.com/patterns/human-approval/)
* [Parallel agents in separate worktrees](https://agenticpatternlanguage.com/patterns/parallel-agents-in-worktrees/)

## The problem

Routine changes, such as dependency updates, pile up as manual work you would rather not sit through.

> Cloud agents work well for tasks you'd otherwise add to a todo list

Cursor [Best practices for coding with agents](https://cursor.com/blog/agent-best-practices) Jan 9, 2026

> maintaining a codebase, keeping dependencies up to date, and ensuring that the code follows best practices demands a surprising amount of manual work.

Spotify [1,500+ PRs Later: Spotify’s Journey with Our Background Coding Agent (Honk, Part 1)](https://engineering.atspotify.com/2025/11/spotifys-background-coding-agent-part-1) Nov 6, 2025

## Therefore

> Cloud agents use the same agent fundamentals but run in isolated VMs in the cloud with full development environments instead of on your local machine.

Cursor [Cloud Agents](https://cursor.com/docs/cloud-agent)

> A cloud session is a Claude Code session that runs on cloud infrastructure. … The session keeps running after you close your laptop, and you can check on it or steer it from any device.

Anthropic [Use Claude Code in the cloud](https://code.claude.com/docs/en/claude-code-on-the-web)

> Each task has its own workspace and can keep working while your computer is asleep.

OpenAI [Codex Cloud](https://developers.openai.com/codex/cloud)

## In use

Spotify (Honk)

> By exposing our background coding agent via MCP, Spotifiers can now kick off coding agent tasks from both Slack and GitHub Enterprise.

Spotify [1,500+ PRs Later: Spotify’s Journey with Our Background Coding Agent (Honk, Part 1)](https://engineering.atspotify.com/2025/11/spotifys-background-coding-agent-part-1) Nov 6, 2025

Simon Willison

> I’m firing off 2-3 code research projects a day right now. My own time commitment is minimal and they frequently come back with useful or interesting results.

SW Simon Willison [Code research projects with async coding agents like Claude Code and Codex](https://simonwillison.net/2025/Nov/6/async-code-research/) Nov 6, 2025

Kent Beck

> I sent the rewrite off to some remote computer somewhere & what came back (with little interaction from me) was acceptable.

KB Kent Beck [Augmented Coding: Beyond the Vibes](https://tidyfirst.substack.com/p/augmented-coding-beyond-the-vibes) Jun 25, 2025

## Where it breaks

No one watches it work, so it can build on a wrong assumption or pass CI while wrong, and review becomes the bottleneck.

> The background agent produces a PR that passes CI but is functionally incorrect.

Spotify [Background Coding Agents: Predictable Results Through Strong Feedback Loops (Honk, Part 3)](https://engineering.atspotify.com/2025/12/feedback-loops-background-coding-agents-part-3) Dec 9, 2025

> In a run you started before going to bed, nobody tells it, and you find out the next morning that it spent the whole night building on the wrong assumption.

Anthropic [Best practices for Claude Code](https://code.claude.com/docs/en/best-practices)

> AI-generated code needs to be reviewed, which means the natural bottleneck on all of this is how fast I can review the results.

SW Simon Willison [Embracing the parallel coding agent lifestyle](https://simonwillison.net/2025/Oct/5/parallel-coding-agents/) Oct 5, 2025

## Sources

1. [Best practices for coding with agents](https://cursor.com/blog/agent-best-practices) Lee Robinson, Cursor, Jan 9, 2026
2. [1,500+ PRs Later: Spotify’s Journey with Our Background Coding Agent (Honk, Part 1)](https://engineering.atspotify.com/2025/11/spotifys-background-coding-agent-part-1) Max Charas, Marc Bruggmann, Spotify, Nov 6, 2025
3. [Background Coding Agents: Predictable Results Through Strong Feedback Loops (Honk, Part 3)](https://engineering.atspotify.com/2025/12/feedback-loops-background-coding-agents-part-3) Max Charas, Marc Bruggmann, Spotify, Dec 9, 2025
4. [Cloud Agents](https://cursor.com/docs/cloud-agent) Cursor
   > Cloud Agents were formerly called Background Agents.
5. [Use Claude Code in the cloud](https://code.claude.com/docs/en/claude-code-on-the-web) Anthropic
6. [Codex Cloud](https://developers.openai.com/codex/cloud) OpenAI
7. [Best practices for Claude Code](https://code.claude.com/docs/en/best-practices) Anthropic
8. [Embracing the parallel coding agent lifestyle](https://simonwillison.net/2025/Oct/5/parallel-coding-agents/) Simon Willison, Oct 5, 2025
9. [Code research projects with async coding agents like Claude Code and Codex](https://simonwillison.net/2025/Nov/6/async-code-research/) Simon Willison, Nov 6, 2025
   > An asynchronous coding agent is a coding agent that operates on a fire-and-forget basis. You pose it a task, it churns away on a server somewhere and when it’s done it files a pull request against your chosen GitHub repository.
10. [Augmented Coding: Beyond the Vibes](https://tidyfirst.substack.com/p/augmented-coding-beyond-the-vibes) Kent Beck, Jun 25, 2025

Added Nov 14, 2026
