An open-source, faster Devin alternative
TypeScript
docs(agent-sessions): overview order — feature blocks first, diagram as "How it works"
Igor Zalutskid55b66dcfec5
diff --git a/docs/agent-sessions/overview.mdx b/docs/agent-sessions/overview.mdxindex 983e293f..f3e4e3c5 100644--- a/docs/agent-sessions/overview.mdx+++ b/docs/agent-sessions/overview.mdx@@ -14,14 +14,6 @@ Give an agent a prompt and a task; OpenComputer runs it on a **fully managed runThat managed, self-healing runtime — not just a chat API over a model — is the point.-## How it fits together--<Frame>- <img src="/images/durable-agent-sessions-architecture.svg" alt="Durable Agent Sessions architecture: your app starts/steers and streams a durable event-log session; a runtime (the brain) reads and appends to it and acts in a sandbox (the hands); the model runs on your key from the secret store, which never enters a sandbox; user-level events are delivered out via your webhook." />-</Frame>--The **event log** is the durable spine: you start and steer against it, stream from it, and it drives the runtime. The **brain** (agent loop) is isolated from the **hands** sandbox (where commands and file edits run), your key lives in the secret store — never in a sandbox — and user-level events are delivered out to your webhook.-<Steps><Step title="Define an agent (with your key)">A reusable `{ name, model, prompt, runtime }` — `POST /v3/agents`. Pass your Anthropic `key` inline (sessions run on your own key); it's stored as a [credential](/agent-sessions/authentication#model-credentials). ([Agents](/agent-sessions/agents))@@ -61,6 +53,14 @@ The hard parts, handled:</Card></CardGroup>+## How it works++<Frame>+ <img src="/images/durable-agent-sessions-architecture.svg" alt="Durable Agent Sessions architecture: your app starts/steers and streams a durable event-log session; a runtime (the brain) reads and appends to it and acts in a sandbox (the hands); the model runs on your key from the secret store, which never enters a sandbox; user-level events are delivered out via your webhook." />+</Frame>++The **event log** is the durable spine: you start and steer against it, stream from it, and it drives the runtime. The **brain** (agent loop) is isolated from the **hands** sandbox (where commands and file edits run), your key lives in the secret store — never in a sandbox — and user-level events are delivered out to your webhook.+## When to use itReach for sessions when you want a long-running or interactive agent and don't want to build the plumbing above yourself. For a one-shot command in a raw box, use a [sandbox](/sandboxes/overview) directly.