DAGet the newsletter
How-to

How to build an AI agent that works while you sleep

Anthropic has published a guide for developers on agents that run in the background and take initiative on their own. The architecture rests on five parts, including an inbox for events, timers and memory.

November 13, 2026, 01:00AI-generated from the sources listed, with automated source checks.

Photo: Mvolz / Wikimedia Commons, CC0

Imagine an AI assistant that doesn't wait for you to message it, but gets to work on its own when something happens: a new email, a changed ticket or a set time. Anthropic calls these always-on agents and has published a guide for developers on how to build them.

According to Anthropic, they are stateful and proactive. That means they remember across runs and act without anyone looking over their shoulder.

Not really always on

The name is a bit misleading. An always-on agent sleeps most of the time and wakes up periodically. Each work cycle is called a run: the agent receives an event, completes the task and saves what happened. The run itself takes place in a session, a log of messages and tool calls.

The agent runs on the same basic loop as other agents. The difference is the architecture around it, which controls when it wakes up, what is remembered, and how the result reaches the user.

Five building blocks

Anthropic points to five core elements:

  • Event inbox: An inbox for events. Webhooks (automatic signals from other systems), scheduled tasks and background jobs can trigger the agent, not just user messages. Anthropic advises against having each source call the agent directly, since simultaneous events can produce competing runs, and a crash can cause an event to be lost. Instead, everything is gathered in an inbox that a worker pulls from. Anthropic recommends a relational database and starting with one inbox per user.
  • Timers: The agent can set follow-ups, for example to check a reply later, and there can be fixed schedules such as a daily newsletter. A scheduler continually checks whether anything is due and starts it.
  • Memory: Provides continuity between runs and should be kept in durable storage so it survives a worker shutting down. The rule of thumb is to save only what the agent can't look up again. If the information exists in another system, you save a reference.
  • Permissions: This is where the risk is greatest, according to Anthropic. A run has the user's access and operates unsupervised, so for every tool call the agent must decide whether to proceed, block or wait for approval.
  • Outbox: Outgoing messages. Most can get by with a "send" tool, but a formal outbox helps if you want to control the pace or let the agent recover from errors.

Start quiet

Anthropic recommends building evals, tests that find the right volume of messages. Too many make the agent noisy, while too few cause it to miss something important. The agent should start quiet and gradually earn more of the user's attention.

Anthropic also mentions "dreaming": a review of past sessions that cleans up memory, replaces outdated entries and finds patterns.

Why now?

Anthropic says agents of this type have resurfaced in recent months. According to the company, this is due to better models that understand the user's intent and know when to ask, as well as intelligence becoming cheaper. Anthropic states that on a long-horizon coding benchmark, Opus 5.5 cost 78% less per solved task than Opus 5, compared with 40% less on typical workloads. These are the company's own figures.

Read also

Next storySabre shows travel booking in Grok and alerts on price dropsRead on
Back to the front page