Building it
Our design · high level

Building an always-on agent

How we'd split the system into areas that can be built and investigated on their own. It's our own breakdown, based on the architecture in the talk notes and the Under the hood page, not a description of Grok Bot's internals.

12 areas6 contracts6 build phasesP to present
01Map

How the areas fit together

Twelve areas in four zones, plus one cross-cutting band. Arrows are the contracts between them.

Edges
10Conversations and clientsstore, sync, apps, Slack
11Triggers and schedulingingress, queues, routines
Agent core · server
1Agent runtimedurable loop per task
2Model gatewaycalls, retries, cost
3Context and memoryprompts, compaction, memory
4Tool layer and routerregistry, routing, wake rules
Execution · per-user computer C
5Computer platformVM, disk, snapshots
6In-VM worker and gatewaydial-out command runner
7Computer use and live desktopscreens, browser, take-over
Access · apps and secrets
8ConnectorsMCP, plugins, policy
9Credentials and secretsvault, secret requests, redaction
12Safety, identity and opsreview model, approvals, tenancy, tracing, evals
Cross-cutting: every area above goes through it
A Letters mark the contracts in section 03

Notes

  • Edges bring work in and show results. The agent core decides. Execution and access do the work.
  • Everything the agent knows lives on the server side. The computer holds working files and logins on its own disk, and can be rebuilt without losing a conversation.
02Areas

The twelve areas

What each one owns, what makes it hard, and whether to build it or reuse something.

#AreaOwnsHardest partRiskBuild or reuse
1Agent runtimeDurable workflow per task: load state, the model and tool loop, interrupts, batching, helpers, when to stopIdempotent steps; timeouts that cover a computer restore; versioningMediumReuse Temporal
2Model gatewayProvider calls, retries, fallbacks, token and cost accounting, fast vs. long-running tiersCache hit rate; what to do during an outageLowThin layer on provider SDKs
3Context and memoryPrompt builder (fixed order), compaction, memory layers and the write pass, skill libraryCompaction quality over weeks; what to forgetHighBuild
4Tool layer and routerTool registry, tool details on demand, server vs. computer routing, wake rules, error design, call IDsStable schemas so the prompt cache holdsMediumBuild
5Computer platformOne VM per user: image, supervisor, durable disk, snapshot and restore, sleep policy, file sync, resetRestore speed; cost of idle usersMediumBuy first (sandbox vendor)
6In-VM worker and gatewayDial-out worker, protocol and auth, streamed commands, file ops, de-duplication log, reconnect after restoreRestores, retries and commands running twiceHighBuild
7Computer use and live desktopA screen and Chrome per Bot, accessibility tree then pixels, screenshots, recordings, live view, take-overReliable clicking and groundingHighBuild on Chrome and VNC
8ConnectorsMCP client, plugin catalog, installs, per-tool switches, team connector policyVendor auth quirksLowReuse MCP
9Credentials and secretsOAuth broker and token vault, secret requests, use by name, redaction, login hand-offsKeeping values away from the model and the VMMediumBuild flows on a vault
10Conversations and clientsSendToUser contract and payloads, append-only store, signal-then-fetch sync, apps, Slack and emailOrdering and de-duplication across clientsLowBuild
11Triggers and schedulingIngress routing, per-conversation queues, routines, webhooks, app events, Bot-to-Bot messages, when to stay quietPriority and batching; staying quietMediumBuild on a queue and cron
12Safety, identity and opsReview model, rules and approvals, provenance labels, network policy, audit; users, Bots, Team Bots, metering; tracing and evalsPrompt injection; eval coverageHighBuild
03Contracts

Contracts to agree first

Six interfaces. With these fixed, the areas can be built in parallel against fakes of each other.

ContractBetween areasWhat it carries
ATool call and result1, 4, 6, 8Call ID, tool, arguments, target (server or computer). Back: output, or an error that says what to do next.
BComputer control plane5 with 4 and 6state, ensureAwake, snapshot, reset
CWorker protocol6 (worker with gateway)Connect with a stable ID, receive a call, return a result, heartbeat
DConversation events1 with 10Sequence numbers, step types, SendToUser payloads
ECredential reference8, 9 and 6Ask for a secret or token by name; never see the value
FTrigger envelope11 to 1Source, Bot, conversation, priority, provenance

Notes

  • A is the most important: it's the seam between the loop and everything that runs tools.
04Order

Build order

Each phase ends with something usable.

1
Talk to it
1Agent runtime2Model gateway4Tool layer and router10Conversations and clients

A loop on the server that replies through SendToUser. No computer yet.

2
Give it a computer
5Computer platform6In-VM worker and gateway

An always-on container with a dial-out worker, then sleep and wake.

3
Connect apps
8Connectors9Credentials and secrets

Connectors, the token vault and secret requests.

4
Make it remember
3Context and memory

Memory layers and compaction, measured with evals.

5
Let it start work
11Triggers and scheduling

Triggers, routines and the "worth messaging?" decision.

6
Use any app
7Computer use and live desktop

Computer use, live view and take-over.

12Safety, identity and opsReview model and approvals from phase 2, as soon as the agent can run commands
LaterTeam Bots and multi-tenant routing: they depend on almost everything else.
05Risk

Risk and build vs. reuse

Where the unknowns are, and where we can lean on existing tools.

Build ourselves
Reuse or buy first
High
3Context and memory6In-VM worker and gateway7Computer use and live desktop12Safety, identity and ops
none
Medium
4Tool layer and router9Credentials and secrets11Triggers and scheduling
1Agent runtime5Computer platform
Low
10Conversations and clients
2Model gateway8Connectors

Reuse means: Temporal for the runtime, a Firecracker-based sandbox vendor for the computer (E2B, Modal, Daytona or Fly Machines, for example), provider SDKs for the model gateway, and MCP for connectors.

Notes

  • The three high-risk build areas are where to start spikes early: restores and retries (6), compaction over weeks (3), and reliable computer use (7).
  • The rest is mostly known engineering: durable workflows, OAuth, MCP and sandbox vendors all exist.