# Long-Running Agent

> An AI agent that works on one task for hours, often in the cloud.

**Field:** Artificial Intelligence  
**Category:** AI Agents  
**Also known as:** Async Agent, Long-Horizon Agent, Asynchronous Agent

## Think of it like

It is like a builder you hire for a week. You do not watch every nail. You check the house at the end.

## Definition

A long-running agent is an AI agent that works on one task for hours, not seconds. It often runs on a server in the cloud, so you can close your laptop and come back later. It takes hundreds of steps, so it must save its progress and keep notes on what is done. When it finishes, it hands back the result, such as a change to the code for a person to review. Tight limits and a clear goal matter more here, because no one watches each step.

## Example

Lucy gives a coding agent a list of 40 small bugs before she leaves work. It runs in the cloud all night and has a change ready for each bug by the morning.

## Why it matters

Big jobs need many steps. An agent that can keep going alone turns a day of work into a review.

## Common mistake

Starting it with a vague goal. A small mistake at step five can grow for hours before anyone sees it.

## Three principles

- **Hours, not seconds.** Hundreds of steps on one task.
- **Saves its progress.** Notes let it pick up after a break.
- **Review at the end.** A person checks the result, not each step.

## Related terms

- [AI Agent](https://learn.benibix.com/term/ai/ai-agent)
- [Agent Loop](https://learn.benibix.com/term/ai/agent-loop)
- [Agent Stop Condition](https://learn.benibix.com/term/ai/agent-stop-condition)
- [Agent Trajectory](https://learn.benibix.com/term/ai/agent-trajectory)
- [Agent Sandbox](https://learn.benibix.com/term/ai/agent-sandbox)
- [Background Session](https://learn.benibix.com/term/ai/background-session)

![A long row of numbered agent steps, read, run, edit, run, running for hours. Under it a log records every step. At the end a stop sign lists goal met, turn limit and budget. Above, a slider runs from suggests only, to asks first, to acts and reports.](https://learn.benibix.com/diagrams/ai7-agent-run.svg)

---

Source: https://learn.benibix.com/term/ai/long-running-agent
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
