Quick Answer
Always-on agents use an event inbox, timers, memory, permissions and an outbox to run across multiple sessions, trigger work and deliver outcomes. Website owners can use this architecture to review how an automated agent handles events, retains context, limits unattended actions and communicates at an appropriate volume.
What Makes an Agent Always-On?
An always-on agent is not continuously executing. It spends most of its time asleep and wakes periodically to process a run. During that run, it receives an event, completes the assigned work and saves information about what happened before returning to sleep.
Each run operates inside a session, which contains the transcript of messages and tool calls. Events that continue earlier work can resume an existing session, while other events start a new one. The repeated cycle of wake, work and save creates the appearance of continuous availability.
Claude’s guide, written by William Hu, describes always-on agents as stateful and proactive because they carry context across sessions and can act without direct supervision. It attributes their growing practicality to better model judgment and lower intelligence costs. On one long-horizon coding benchmark, Opus 5.5 cost 78% less per solved task than Opus 5, compared with 40% less on typical workloads.
How Do Website Owners Audit the Event Inbox?
The event inbox gives the agent a durable queue for webhooks, scheduled tasks, background jobs and user messages. Event sources write to the inbox rather than calling the agent directly, and a worker retrieves pending events and starts the corresponding runs.
A basic inbox contains three components:
- A durable list of events, usually held in a database table.
- A handler, usually an HTTP endpoint, that writes events into the list.
- A worker, usually a background service, that reads pending events.
Each event should have a tracked status and a unique identifier that allows deduplication. The handler should acknowledge events quickly because some webhook providers treat slow responses as failures. Deeper verification, including checks for prompt injection, belongs in the run rather than the handler.
The inbox should remain the source of truth. When a worker starts, it should retrieve the latest pending events so another worker can retry the same work if the current worker fails. Only one worker should be active at a time to reduce duplicate runs and conflicting writes.
Events that arrive during an active run may be pushed to the next run, included in the current run or handled by interrupting and restarting it. The worker may also batch several pending messages into one run so the agent replies once.
How Do Timers Make Agent Work Proactive?
Timers support two forms of scheduled work. Follow-ups are deadlines that an agent sets for itself, such as checking for a reply. Schedules are recurring tasks that run on a known cadence, such as a daily newsletter.
Timers belong in a separate durable store from the inbox because the inbox should contain only events ready to be processed. A background scheduler polls the timer store, identifies due entries, updates them and adds an event to the inbox.
Follow-up timers are marked as complete. Schedules have their next occurrence updated. A scheduler can be built as a dedicated service or supplied through a durable execution engine.
Which Information Should an Agent Retain?
Memory lets an always-on agent maintain continuity across separate runs. Claude recommends storing only information the agent cannot retrieve from another system. If a record already exists in an issue tracker or similar application, the agent can save a pointer instead of duplicating the content.
The guide identifies four core memory categories:
- User instructions: Instructions governing agent behavior are loaded at the start of every run.
- User notes: Learned information includes the user’s role, preferences and corrections.
- Past messages: Stored messages help prevent the agent from repeating information it has already communicated.
- Task progress: Progress records show completed work and remaining work for each ongoing task.
User notes and task progress can begin in one file and later be divided into smaller files. In that arrangement, only an index loads at the start of a run, while the agent retrieves individual files when more detail is required.
Claude Code’s auto memory and the Messages API’s memory tool use directories of files. For an always-on agent, those directories can map to durable storage such as a database or object store so memories outlive the worker.
An optional “dreaming” process can review past sessions, replace outdated entries and identify patterns that emerge across multiple runs. Before working, the agent loads its system prompt, tool definitions and memory files. Claude recommends keeping this recurring context lean and using prompt caching to reduce costs.
What Should Website Owners Check in Permissions?
Permissions govern unattended tool calls because a run uses the user’s access while operating without constant supervision. Claude identifies the credential store, auto mode and deferred tool calls as the main permission components.
For sensitive credentials, the recommended pattern places a proxy outside the agent’s environment. The agent sends a request without credentials, and the proxy inserts the actual credentials before forwarding the request.
Auto mode uses classifiers to review higher-risk actions and block actions classified as dangerous. Important decisions may still require user review. A deferred tool call can pause the run and request clarification or approval. The session is saved, the request appears to the user and the response returns as an inbox event that resumes the session in a new run.
While a deferred call is waiting, the worker can process other events. The saved session and pending user response preserve the interrupted operation without blocking the entire queue.
How Does the Outbox Control Agent Messages?
An outbox stores outgoing messages when an agent needs to control message pacing or recover from delivery errors. It resembles the event inbox and uses a separate dispatcher to read pending messages, choose what to deliver and send it to the user.
A run can send a message to the outbox, decide that no message is needed or request permission or additional input through a deferred tool call. A simple implementation may provide a direct send tool without a formal outbox.
Message volume requires evaluation. Claude warns that excessive messages create noise, while too few can leave users without important information. Its recommendation is to begin quietly and increase message volume over time based on evaluation results.
How Does the Complete Agent Loop Work?
Every run starts when the worker retrieves an event from the inbox. The worker starts the agent in a new or existing session, the agent loads memory and works within its permissions, and the agent updates memory with what it learned.
Once the run is finished, the agent pushes a row to the outbox, and the dispatcher delivers the message to the user. The agent may also create a timer for future work. A user reply returns as another inbox event, continuing the cycle. Individual runs remain brief while the architecture continues indefinitely.
What Does the Evidence Show About Persistent Agent State?
A survey of 435 works by Tianyu Ding, Aditya Nannapaneni, Bingfan Liu and Ling Zhang defines always-on agents as systems whose future behavior depends on durable state. It treats task ledgers, permissions, credentials, commitments, provenance, audit records, shared state, triggers and external effects as parts of the operating system alongside retrievable memory. The survey proposes the Always-On Evaluation Protocol, or AOEP-v0, a pilot contract for scoring state mutation and recovery obligations.
The survey’s coded corpus places more emphasis on accumulating and retrieving state than on governing, recovering or relinquishing it. It introduces a lifecycle covering writing, validating, organizing, retrieving, acting, updating, forgetting, auditing and rolling back state.
A separate VisionClaw study evaluated an always-on wearable agent on Meta Ray-Ban smart glasses. The study reported 13% to 37% faster task completion and 7% to 46% lower perceived difficulty across the tested baselines in a controlled laboratory study of 12 participants. A separate autobiographical deployment involved four users, 555 interactions and an average of 13.8 active days per user.
Key Considerations
- The inbox must track event status, support deduplication and remain the source of truth for pending work.
- Only one active worker is recommended for an inbox, while deferred requests can allow a worker to process other events.
- Persistent memory should contain information that cannot be retrieved from another system, with pointers used for existing records.
- Auto mode and user review address different risk levels, while credential proxies keep secrets outside the agent’s environment.
- Message volume should be evaluated rather than fixed in advance.
- The 435-work survey describes a scoped map of the literature rather than an exhaustive census.
What to Do Now
- List every event source that can start an agent run.
- Confirm that each source writes to a durable inbox with status tracking and unique identifiers.
- Record the memory categories stored for each user and ongoing task.
- Review each unattended tool call against its permission and approval path.
- Evaluate the number of outgoing messages sent during normal runs.
FAQ
What Are the Five Core Primitives of an Always-On Agent?
The five primitives are an event inbox, timers, memory, permissions and an outbox.
Does an Always-On Agent Run Continuously?
No. It spends most of its time asleep and wakes periodically for brief runs that receive an event, perform work and save information.
What Is the Difference Between a Follow-Up and a Schedule?
A follow-up is a deadline set by the agent, such as checking for a reply. A schedule is a recurring task with a known cadence, such as a daily newsletter.
How Does an Agent Handle a Request That Needs User Approval?
The tool call is deferred, the session is saved and the request is presented to the user. The user’s answer returns through the inbox as an event that resumes the session in a new run.
When Is a Formal Outbox Needed?
A formal outbox is needed when the agent must pace outgoing messages or recover from delivery errors. A direct send tool is sufficient for simpler agents.

