# Background Agent

> The Background Agent is an AI agent that works on a task asynchronously, without the user watching each step.

## What is a background coding agent?

The agent that runs in the cloud or a separate environment and works on a task independently, for example fixing an issue and opening a pull request. The developer reviews the finished result instead of each step.

- Topic: AI Agents
- Type: concept

## Common mistakes

- Merging background agent changes without review or tests.

## Key points

- The agent works on a separate branch or copy, not directly on the main branch.
- It runs in a sandbox with limited secrets and network access.
- Its output is a pull request or report that a person reviews before merging.

## Interview questions

### What is the difference between a background agent and a coding agent in my editor?

Both edit code, but a background agent runs in a separate environment without you watching, and returns a finished branch or pull request for review.

### What tasks suit a background agent?

Well-scoped tasks with a clear way to verify them, such as fixing a reported bug with a failing test, updating dependencies or adding tests.

### Can I run several background agents at once?

Yes, each works in its own branch or copy of the repository, so tasks run in parallel. You still review each result separately.

## Related cards

- [Coding Agent](https://wonderium.dev/ai/coding-agent.md)
- [Agent Sandbox](https://wonderium.dev/ai/agent-sandbox.md)
- [Headless Mode](https://wonderium.dev/ai/headless-mode.md)
- [AI Code Review](https://wonderium.dev/ai/ai-code-review.md)

---

- Level: [Artificial Intelligence](https://wonderium.dev/ai.md)
- HTML version: https://wonderium.dev/ai/background-agent
- Last updated: 2026-11-25
