The AI Gazette

Agent harnessesClaude

Always-on agents are mostly asleep: five primitives that make an agent proactive

Anthropic's guide breaks an always-on agent into an event inbox, timers, memory, permissions and an outbox. The design is plain database tables and workers rather than a special runtime.

An always-on agent is not running continuously. It sleeps, wakes on an event, completes a run, saves what happened and goes back to sleep. A run happens inside a session, which is the transcript of messages and tool calls. The guide argues that the loop is the same as for any agent and that the difference is the architecture around it.

The event inbox is a durable list of events, usually a database table, written by an HTTP handler and read by a single worker. Letting each source call the agent directly causes competing runs and lost events after a crash. The handler should acknowledge quickly and leave deeper checks such as injection screening for the run itself. The inbox is the source of truth, one worker is active at a time, and pending events are batched so several user messages produce one reply. Timers sit in a separate store as either follow-ups the agent sets for itself or recurring schedules. A scheduler polls the store, marks or advances each due timer and adds an event to the inbox.

Memory has its own store too, usually files mapped to durable storage. The guide lists user instructions, user notes, past messages and per-task progress files, with only an index loaded each run and the rest pulled in on demand. The rule of thumb is to store only what the agent cannot look up again and to keep a pointer when the data lives elsewhere. Periodic review of past sessions can replace stale entries.

Permissions carry the most risk because a run holds user access and operates unattended. The recommended pattern is a proxy outside the agent environment that injects credentials into outgoing requests, classifier-based review for riskier actions, and deferred tool calls for decisions that need a person. A deferred call ends the run and saves the session mid-call; the answer returns as an inbox event and starts a new run, while the worker serves other events in the meantime. A run ends by sending a message to the outbox, deciding nothing needs sending, or deferring a call. The guide recommends building evals for message volume and starting quiet so the agent earns attention over time.

From other editions

Say hi.