# Always-On Agents: Anthropic Five-Piece Guide

> Published 2026-11-29T13:13:09.793Z on https://youblog.app/p/always-on-agents-anthropic-five-piece-guide/
> Source video: https://www.youtube.com/watch?v=NcTwMHjlYiw

Anthropic always-on agents guide explained: an inbox, timers, memory, permissions and an outbox, plus how to start quiet and add one job at a time.

## Always-on agents explained: what Anthropic guide actually describes

Always-on agents are background AI systems that sleep between events rather than running continuously. Anthropic published its guide Building always-on agents on 13 November 2026, and the core claim is that an agent most useful when nobody is watching spends most of its life idle, waking only when an inbox event or a timer fires.

The guide's distinction between a run and a session matters. A run is one wake-up: receive the event, reason, call tools, save what changed. A session holds the message and tool history that gives a run its context. One session can contain many runs, and a new event can resume an existing session or start a fresh one.

Anthropic separates three things people often blur together. A chat with [Claude](https://www.anthropic.com/claude), Anthropic AI assistant, only proceeds when you type. A scheduled task fires at a set time, often starting a clean session each morning. An always-on agent can be woken by many event types, carries its work forward, sets its own reminders and decides whether something is worth telling you.

That is what the guide means by stateful and proactive. Stateful: the agent retains durable notes across runs. Proactive: it acts before you ask, because a timer or an external event triggered it. Neither property requires the model to run continuously.

The economic argument comes first because it decides whether the design is practical. A background agent performs many small jobs, so per-run overhead compounds. Anthropic guide reports that on one long-horizon coding benchmark, its newer model cost 78% less per solved task than the previous version; that is a vendor-reported figure tied to one benchmark, not a general price forecast.

## Why the agent sleeps instead of staying awake

Sleeping is the mechanism that keeps always-on agents cheap and safe. While the agent is asleep it never calls the model, so idle time consumes no tokens and no usage quota. The system feels continuous because a trigger is always one durable write away.

The comparison the guide draws is a competent human assistant. Nobody stares at an inbox for nine hours. They check when something arrives, handle it, note the outcome and return to other work. The agent's loop copies that rhythm: event, short run, note, sleep.

This inverted shape drives the rest of the architecture. Because runs are short and separated by long gaps, everything the next run needs must be written to storage rather than held in a process. Because runs are unattended, the permissions model has to assume mistakes.

Anthropic guide also limits concurrency explicitly: each inbox is served by a single worker at a time. Two copies of the same agent therefore cannot modify the same records simultaneously. The trade-off is throughput, and for background work the guide treats correctness as the better bargain.

## The five pieces of an always-on agent

The five pieces are an event inbox, timers, memory, permissions and an outbox. Each exists to solve a failure the guide calls out directly, and the loop only holds when all five are present.

| Piece | What it does | Failure it prevents |
| --- | --- | --- |
| Event inbox | Durable queue of incoming events, one worker per inbox | Lost jobs and duplicate agents colliding |
| Timers | Follow-ups the agent sets, plus recurring schedules | Agent that only reacts and never follows up |
| Memory | Durable notes plus a short index read at wake-up | Each run restarting with no context |
| Permissions | Credential proxy, action classifiers, human approval | Unattended agent acting beyond its mandate |
| Outbox | Batched messages, questions and silence | Notification noise the user learns to ignore |

The inbox is deliberately not your email inbox. It is the agent's own durable store. Webhooks, user messages and payment notifications write to it, a handler acknowledges quickly, and a worker processes one event at a time. Duplicate events get removed and pending work can be batched.

Timers split into two kinds. A follow-up is a reminder the agent schedules for itself, such as checking back on Thursday. A schedule repeats, such as a summary every morning at 8:00. Timers live in their own store, a scheduler watches it, and a due timer drops a job into the inbox.

The outbox gives the agent a channel back to you. The guide sets three possible endings for a run: send a message, decide nothing is worth reporting, or ask a question. Batching happens here so the agent does not ping you at 3:00 in the morning.

Anthropic own advice is that the agent should start quiet and earn more of your attention. An agent that messages constantly stops being read, and the notifications that mattered get skipped along with the rest.

## Memory design: only remember what you cannot look up

Memory exists because each run starts cold. Anthropic rule is blunt: store only what the agent cannot look up again. Calendar entries, invoices and accounting records live in their own systems of record, and the agent should query them rather than keep a copy that drifts out of date.

Four categories survive that filter. First, instructions for how the agent should behave. Second, learned facts about you, including preferences and corrections you have made. Third, a record of what the agent has already told you, so it does not repeat itself. Fourth, per-job progress, so the next run picks up where the last one stopped.

Retrieval follows a short index pattern. On wake-up the agent reads a compact index, not the full note store, and opens only the entries the current job needs. Anthropic recommends keeping the starting pack small, meaning the instruction set, tool definitions and memory index loaded on every run.

The guide also describes a consolidation step it calls dreaming. Between jobs the agent reviews past sessions, replaces stale notes and looks for patterns that only appear across many runs. That is maintenance on stored notes between runs, not a second model process running alongside them.

Long conversations create a separate cost problem. When one gets too long, the agent can compact the older part into a summary or start a fresh session. The guide is explicit that both approaches lose detail. Anything that must survive belongs in memory as it happens, not in the transcript.

## Permissions: the highest-risk piece of an unattended agent

Permissions carry the most risk in an always-on agent because a run holds your access and by design operates without supervision. A chat assistant that misreads an instruction wastes a turn. An unattended agent that misreads one can send an email, delete a file or pay an invoice while you sleep.

The guide layers three controls. A credential proxy keeps secrets outside the agent's environment and injects them into outbound requests, so an agent tricked into revealing credentials has none to reveal. Classifiers review higher-risk actions and block the ones they flag; Anthropic points to the auto mode in [Claude Code](https://www.anthropic.com/claude-code), Anthropic terminal coding tool, as an example of that pattern. Deferred tool calls let a specific action pause for human approval while the run continues with other work.

When you answer, the run resumes at the decision point rather than restarting. That is how the guide reconciles unattended operation with human judgment on consequential steps.

None of this makes an agent compliant with a regulatory regime. Local execution, filtering and approval gates support a controlled deployment, but tenant isolation, audit obligations and suitability for healthcare or finance remain properties of the application and the organization around it.

A working permission rule: an invoice agent may need one folder and an email send capability, and it does not need file deletion. Grant the narrowest scope that completes the job.

## Handling new events during a run

New events during a run get one of three responses: save for the next run, fold into the current job, or stop and restart with everything together. The guide leaves the choice to the task rather than prescribing a default.

For a conversational assistant, folding usually feels most natural, because the user gets one reply covering everything they said. For a job with irreversible side effects, saving the event for the next run is safer than widening the current one.

A worked invoice-chasing example shows the whole loop. At 8:00 a daily timer fires and drops a job into the inbox. The agent reads its instructions: be polite, never chase anyone more than once a week, always ask before contacting a large client. Its progress notes show three overdue invoices and one already emailed on Monday, so it skips that one, sends a reminder to the second, and holds the third for approval because it is a large client.

The question leaves through the outbox, the agent sets a Thursday follow-up and goes back to sleep. The entire run takes under a minute. At lunchtime you answer yes, your reply lands in the inbox as a fresh event, and the agent resumes, sends the email and records it. On Thursday the follow-up timer fires and the loop repeats.

## Where this pattern fits, and where it breaks

The pattern suits recurring, event-driven work with a clear success condition. Useful starting jobs include an email triage helper, a morning summary of sales or calendar changes, an invoice chaser and a project watcher that reviews progress each evening. All four use the same five pieces.

Four failure modes show up repeatedly. Notify about everything and the human unsubscribes mentally. Hand over real passwords and broad access and one misread instruction becomes an incident. Copy data that already lives in a system of record and the copy goes stale. Build a do-everything agent on day one and nothing runs reliably.

Quality is measured by message volume and relevance. The guide's framing is that too many messages make an agent noise and too few make it miss things. A weekly review of what it sent, what it should have skipped and what it should have caught feeds corrections back into memory, which is the mechanism that makes the agent better over time.

Ownership matters here. Anthropic wrote the guide and describes its own recommendations; benchmark figures quoted in it are vendor-reported and tied to the configurations named in the guide. Independent reproductions of the pattern belong to whoever runs them.

## Building your first agent in stages

Start with one job, not a platform. A morning summary is the recommended first build because failure is cheap and the loop is easy to observe.

1. Write a short instruction file describing the job, the tone and any hard limits such as never contacting a client without approval.
2. Add a schedule that fires once a day and drops a job into a durable inbox.
3. Create a small memory index plus per-job progress notes, and keep the starting pack short.
4. Wire one outbound channel, which can be a single message to you, and grant only the access that job needs.
5. Require approval for anything that spends money, emails another person or deletes data.
6. Run it daily for a week, review the messages, and update the notes with what you learned.
7. Add the next job once the first has run cleanly for several days.

Tools such as [Claude Code](https://www.anthropic.com/claude-code) can help you assemble each piece, and the full guide carries the technical detail. For developers in Brazil who want structured practice with TypeScript and modern tooling, programs such as Crazystack Typescript cover the language skills that make building these loops less painful.

The loop itself is small: an event lands in the inbox, the agent wakes, reads notes, acts within permissions, updates notes, writes to the outbox, maybe sets a timer, and sleeps. Your reply re-enters the inbox as a new event. Each run is short. Because the loop does not stop, the agent feels continuous.

## FAQ

- **Is an always-on agent running all the time?** No. Anthropic guide states that an always-on agent sleeps between events and wakes for short runs. Idle time consumes no model calls, which is why the design stays affordable for daily background work.

- **What are the five pieces every always-on agent needs?** An event inbox, timers, memory, permissions and an outbox. The inbox and timers decide when the agent wakes, memory carries context between runs, permissions bound what it may do unattended, and the outbox controls how it reports back.

- **How much cheaper is a newer Claude Code per solved task?** Anthropic guide reports a 78% lower cost per solved task on one long-horizon coding benchmark, comparing the newer model against the previous one. Treat that as a vendor-reported figure for that benchmark rather than a general pricing prediction.

- **Should an agent remember everything it sees?** No. The guide's rule is to store only what the agent cannot look up again. Systems of record such as calendars and accounting software stay authoritative, and the agent queries them instead of keeping a copy that goes stale.

- **What happens if a new message arrives mid-run?** The guide offers three options: hold it for the next run, fold it into the current job, or stop and restart with everything combined. Chat-style assistants usually fold; jobs with irreversible side effects usually defer.

- **Do approval requirements make an agent compliant?** No. Credential proxies, classifiers and approval gates reduce risk, but compliance depends on the wider application, audit trail and organizational controls around the deployment.

- **What should the first build be?** A single scheduled job such as a morning summary, with a short instruction file, a small memory index, one outbound channel and tight permissions. Add more jobs only after the first runs reliably.

- **How do you know whether an agent is working well?** Watch how often it messages you and whether those messages mattered. A weekly review of its output, fed back as corrections to its notes, is the guide's suggested tuning loop.

- **Can you build one without a framework?** Yes. The guide describes plain components, a durable store, a scheduler and an outbound channel, rather than mandating a specific agent framework.

## From a 10-minute video to a reference article

The five-piece loop is easy to explain in a video and harder to write down precisely, because the details that matter sit in the constraints: one worker per inbox, a short starting pack, a credential proxy, approval before irreversible actions. A written version lets a reader check the constraint against their own build instead of recalling it from memory.

YouBlog turns a YouTube video into a structured article in three steps: paste the video URL, let the transcript be generated, then work from the draft. If you have explained a system like this on camera, that recording already contains the substance of the article.

[YouBlog](https://youblog.app/)

[Source video](https://www.youtube.com/watch?v=NcTwMHjlYiw)
