Background agent

A background agent is an AI agent that works on a task on its own, without a person watching, and reports back when it finishes.

A background agent is an AI agent that runs without a person in the session. A person or a system hands it a task, and the agent works on it for minutes or hours. During that time, the person can do other work or start more agents. When the agent finishes, it reports the result, for example as a pull request or a message.

Background agents run on remote machines instead of the computer of the person who started them. This lets them keep working when that computer is off and lets many of them run at the same time. They can be started by a person, by a schedule, or by an event such as a new issue or a failed build. Because no one watches each step, they log their actions so that a person can review them later.

A background agent needs an environment that lasts as long as its task. It also needs to keep its files and installed tools if it waits for input or resumes later. Persistent sandboxes meet these needs, because they can be paused while idle and resumed with their state intact. Each agent usually gets its own sandbox, so that many agents can run in parallel without affecting each other.