Skip to content

An open-source, faster Devin alternative

TypeScript

docs: tone down sessions copy

Igor Zalutski27af0764fbe6
diff --git a/docs/agent-sessions/artifacts.mdx b/docs/agent-sessions/artifacts.mdx
index 5e349bad..cd23e509 100644
--- a/docs/agent-sessions/artifacts.mdx
+++ b/docs/agent-sessions/artifacts.mdx
@@ -1,12 +1,12 @@
---
mode: "wide"
title: "Artifacts & previews"
-description: "A session's published outputs — live previews and durable files"
+description: "Session files, links, and preview URLs"
---
<Note>**Labs preview.** Artifacts are not part of the stable Durable Sessions API. Large event bodies can already spill to a [`content_ref`](/agent-sessions/events).</Note>
-**Artifacts** are session outputs your UI can load later: files, links, reports, and live previews. A **preview** is a URL to something the agent is running, such as a dev server or built app.
+**Artifacts** are session outputs your UI can load later: files, links, reports, and preview URLs. A **preview** points to a process running in the session machine, such as a dev server or built app.
## Artifact kinds
diff --git a/docs/agent-sessions/authentication.mdx b/docs/agent-sessions/authentication.mdx
index dd9f901e..56c95663 100644
--- a/docs/agent-sessions/authentication.mdx
+++ b/docs/agent-sessions/authentication.mdx
@@ -77,7 +77,7 @@ For the SSE stream the browser passes the client token as `?token=` (native `Eve
## Model credentials
-Sessions run the model on **your own provider key** — Anthropic for the `claude` [runtime](/agent-sessions/runtimes), OpenAI for `codex`. It's held in OpenComputer's [secret store](/sandboxes/secrets) — encrypted at rest (AES-256-GCM) and write-only (**never returned** by the API). Crucially, **the real key never enters a sandbox at all**: it's sealed into an opaque token, and a host-side proxy swaps in the real value only on the outbound HTTPS call to the model provider (`api.anthropic.com` or `api.openai.com`, scoped by an egress allowlist). So it's **never exposed to the model, never in the agent's prompt or code, and never in the VM** — see [Secrets](/sandboxes/secrets). A credential is **required** — a session with no resolvable key fails to start (`422 no_credential`).
+Sessions run the model on **your own provider key**: Anthropic for the `claude` [runtime](/agent-sessions/runtimes), OpenAI for `codex`. The key is held in OpenComputer's [secret store](/sandboxes/secrets), encrypted at rest (AES-256-GCM), write-only, and **never returned** by the API. The real key never enters a sandbox: the runtime gets an opaque placeholder, and a host-side proxy swaps in the real value only on the outbound HTTPS call to the model provider (`api.anthropic.com` or `api.openai.com`, scoped by an egress allowlist). A credential is **required**; a session with no resolvable key fails to start (`422 no_credential`).
The easiest way to add one is inline when you [create an agent](/agent-sessions/agents) (`"key": "…"`) — the provider is inferred from the agent's `model`. The standalone resource below is for reusing one key across agents, setting an org default, and rotating/removing keys. Set `provider` to `anthropic` or `openai`:
diff --git a/docs/agent-sessions/channels.mdx b/docs/agent-sessions/channels.mdx
index 235220c6..acce82a9 100644
--- a/docs/agent-sessions/channels.mdx
+++ b/docs/agent-sessions/channels.mdx
@@ -1,15 +1,15 @@
---
mode: "wide"
title: "Channels"
-description: "Talk to a session where people already work — Slack, GitHub"
+description: "Bind sessions to external threads"
---
-<Note>**Labs preview.** Channels are not part of the stable Durable Sessions API. The stable path is to converse with a session over the [API](/agent-sessions/messaging) and deliver events out via [webhooks](/agent-sessions/webhooks).</Note>
+<Note>**Labs preview.** Channels are not part of the stable Durable Sessions API. For stable API access, use [Messaging](/agent-sessions/messaging) for input and [Webhooks](/agent-sessions/webhooks) for output.</Note>
-A **channel** binds a session's thread to a place people already work, so the same session is reachable from there. Slack is the first channel.
+A **channel** binds a session to an external thread, such as Slack or GitHub.
- **Inbound.** A Slack `@mention` or thread reply is verified, de-duplicated, and appended to the session as a [steer](/agent-sessions/messaging) — the same inbound message you can post over the API.
-- **Outbound.** The platform projects the session's `user` and `progress` [events](/agent-sessions/events#visibility-levels) back to the thread. The agent never calls Slack itself — it appends events; the platform delivers them, durably and idempotently.
-- **Bindings accumulate.** A session gains bindings over its life; it is never typed as "a Slack session" or "a GitHub session." A chat-born session that opens a PR gains a binding to that PR. Routing follows event level — conversation goes to conversation bindings, work product to delivery targets.
+- **Outbound.** The platform delivers the session's `user` and `progress` [events](/agent-sessions/events#visibility-levels) back to the thread. The agent never calls Slack itself.
+- **Bindings.** A session can have multiple bindings. A Slack-started session that opens a PR can also bind to that PR. Routing follows event level: conversation events go to conversation bindings, work output goes to delivery targets.
-A channel is one consumer of the same public API a custom UI uses: post messages in, render the [event stream](/agent-sessions/events) at the level you want, and optionally bind a thread so the platform projects for you.
+A channel uses the same primitives as a custom UI: append messages and render the [event stream](/agent-sessions/events).
diff --git a/docs/agent-sessions/custom-runtimes.mdx b/docs/agent-sessions/custom-runtimes.mdx
index 627b48d3..a98f13ab 100644
--- a/docs/agent-sessions/custom-runtimes.mdx
+++ b/docs/agent-sessions/custom-runtimes.mdx
@@ -6,7 +6,7 @@ description: "Package your own agent harness as a runtime"
<Note>**Labs preview.** Custom runtimes are not part of the stable Durable Sessions API. Production sessions use the built-in [runtimes](/agent-sessions/runtimes): `claude` and `codex`.</Note>
-A custom runtime lets you run your own agent harness on Durable Agent Sessions. Once registered, you select it on an agent with `runtime: "<name>"`; sessions, events, steering, webhooks, recovery, and sandbox tools work the same way as the built-ins.
+A custom runtime lets you run your own agent harness on Durable Agent Sessions. Once registered, select it on an agent with `runtime: "<name>"`; sessions, events, steering, webhooks, recovery, and sandbox tools use the same public API as built-in runtimes.
The runtime image contains a **brain server**: a resident process around your agent SDK. OpenComputer supplies the platform adapter that reads the session log, owns fencing and idempotency, exposes tools, calls your brain over localhost, and commits the brain's stream as durable events.
@@ -14,7 +14,7 @@ You implement the brain. You do **not** implement OpenComputer's event API, sess
See [example runtimes](https://github.com/diggerhq/oc-runtime-examples) for minimal `claude` and `codex` brain servers.
-## Runtime shape
+## Runtime contract
Your image starts an HTTP server on `127.0.0.1:$OC_BRAIN_PORT` (`8080` by default). The server stays warm across turns and handles one turn at a time.
@@ -76,7 +76,7 @@ The adapter has already read the event log. Your brain receives the new turn inp
- `kind` is the SDK's message/event type; `msg` is the native object, unchanged.
- `done.reason` is `quiescent` (nothing left to do), `awaiting_input` (the agent called `ask` and is paused for a reply), or `error` (with an `error`).
-The platform ships a **per-SDK adapter** that knows each SDK's shape: it maps these native events to [session events](/agent-sessions/events) with stable idempotency keys, and flushes committed output before ending the turn. Custom runtimes target an SDK the platform has an adapter for.
+The platform ships a **per-SDK adapter** that maps native SDK events to [session events](/agent-sessions/events) with stable idempotency keys, and flushes committed output before ending the turn. Custom runtimes target an SDK the platform has an adapter for.
Tool calls, including user-visible `say` and `ask`, are made through MCP, not by emitting HTTP requests to OpenComputer.
@@ -108,7 +108,7 @@ Design your brain so replay is safe. If a crash happens after a step is emitted
## Register runtimes
-Labs CLI shape:
+Registration command:
```bash
oc runtime push
diff --git a/docs/agent-sessions/events.mdx b/docs/agent-sessions/events.mdx
index c9656327..493fe78a 100644
--- a/docs/agent-sessions/events.mdx
+++ b/docs/agent-sessions/events.mdx
@@ -3,7 +3,7 @@ title: "Events"
description: "The append-only log: read, stream, filter by level, and resume"
---
-A session is an **append-only log of events**: every step the agent takes is appended in order. You **read** it, **stream** it live, **filter** it by who should see each event (`level`), and **resume** from any point. Switch on the event **`type`**, don't parse prose.
+A session is an **append-only event log**. Read it, stream it, filter it by visibility (`level`), and resume from any `seq`. Switch on event **`type`**, not prose.
## Events in a turn
@@ -32,7 +32,7 @@ The two fields you act on are **`type`** (what happened — the discriminator) a
## Event types
-Treat **`type`** as the stable discriminator — switch on it, don't parse prose. Unknown types render fine from their `text`/`summary`, so new ones won't break your UI. Match a prefix like `turn.*` or `agent.*` for coarse buckets.
+Treat **`type`** as the stable discriminator. Unknown types should render from their `text` or `summary`, so new types do not break your UI. Match a prefix like `turn.*` or `agent.*` for coarse buckets.
| `type` | `body` shape | Use it for |
| --- | --- | --- |
@@ -46,7 +46,7 @@ Treat **`type`** as the stable discriminator — switch on it, don't parse prose
## Visibility levels
-Every event carries a `level` — use it to choose how much detail each surface receives.
+Every event carries a `level`; use it to choose how much detail each client receives.
| Level | Contains | Use for |
| --- | --- | --- |
@@ -60,7 +60,7 @@ Filtering is **cumulative** — `user` is the narrowest, `internal` is everythin
- `?level=progress` → `progress` + `user`
- `?level=internal` → everything
-So customer-facing chat asks for `user`, an agent-activity view for `progress`, and debugging for `internal`. The model's private reasoning is never surfaced; webhooks default to `user`.
+Use `user` for customer-facing chat, `progress` for activity views, and `internal` for debugging. The model's private reasoning is never surfaced; webhooks default to `user`.
## Cursors and resume
diff --git a/docs/agent-sessions/messaging.mdx b/docs/agent-sessions/messaging.mdx
index 01dbb9da..d9d38947 100644
--- a/docs/agent-sessions/messaging.mdx
+++ b/docs/agent-sessions/messaging.mdx
@@ -1,10 +1,10 @@
---
mode: "wide"
title: "Messaging"
-description: "Steer a session, and the shared message envelope"
+description: "Append user input to a session"
---
-**Steer** sends a message into a session. Inbound and outbound messages share one channel-agnostic **envelope** — so you handle every message the same way, wherever it came from or goes. Outbound delivery has its own page: [Webhooks](/agent-sessions/webhooks).
+**Steer** appends a user message to a session. Message envelopes are channel-agnostic, so API input and channel input use the same shape. Outbound delivery has its own page: [Webhooks](/agent-sessions/webhooks).
## Steer (inbound)
@@ -63,4 +63,4 @@ These fields don't all land in one place — the appended [event](/agent-session
So a `*.message` event's `body` is just `{ text, raw? }` — `source`/`conversation`/`refs` live under the event's top-level `refs`, and the sender under `actor` (not inside `body`). Outbound `agent.message` bodies are likewise `{ text }`.
-To deliver a session's output, register a webhook destination — deliveries carry the full [Event](/agent-sessions/events); see [Webhooks](/agent-sessions/webhooks). The same envelope also underpins [Channels](/agent-sessions/channels) in Labs.
+To deliver a session's output, register a webhook destination. Deliveries carry the full [Event](/agent-sessions/events); see [Webhooks](/agent-sessions/webhooks). The same envelope also underpins [Channels](/agent-sessions/channels) in Labs.
diff --git a/docs/agent-sessions/overview.mdx b/docs/agent-sessions/overview.mdx
index d3d0df9b..2e5e59c7 100644
--- a/docs/agent-sessions/overview.mdx
+++ b/docs/agent-sessions/overview.mdx
@@ -4,12 +4,12 @@ title: "Durable Agent Sessions"
description: "Define an agent, then run resumable, steerable sessions"
---
-Give an agent a prompt and a task; OpenComputer runs it on a managed runtime and records every step as a **durable, streamable, resumable session** — stream it live, steer it with a message, and get results by webhook.
+Create an agent, start a session, stream its event log, steer it with messages, and receive results by webhook.
-## Built into every session
+## Core behavior
<CardGroup cols={2}>
- <Card title="Self-healing runtime" icon="heart-pulse">
+ <Card title="Supervised runtime" icon="heart-pulse">
- Runtime crashes restart automatically
- Idle sessions hibernate and wake on the next message
- Hung runs stop cleanly instead of staying stuck
@@ -24,7 +24,7 @@ Give an agent a prompt and a task; OpenComputer runs it on a managed runtime and
- Reconnect from any `seq` without gaps
- Send follow-up messages without exposing your org key
</Card>
- <Card title="Reliable backend delivery" icon="paper-plane">
+ <Card title="Webhook delivery" icon="paper-plane">
- Deliver user-level events to your webhook
- Signed with [Standard Webhooks](https://www.standardwebhooks.com)
- Retried, dead-lettered, inspectable, and redeliverable
@@ -53,9 +53,9 @@ Give an agent a prompt and a task; OpenComputer runs it on a managed runtime and
The event log is the durable record. Your app starts sessions, streams events, and steers with messages. The runtime drives the agent loop, acts through the hands sandbox for file and command work, and commits user-level events for webhook delivery. Your model key stays in the secret store.
-## Use cases
+## When to use sessions
-Use sessions for long-running or interactive agents. For a one-shot command in a raw box, use a [sandbox](/sandboxes/overview) directly.
+Use sessions for long-running or interactive agents. For a one-shot command, use a [sandbox](/sandboxes/overview) directly.
## Next steps
diff --git a/docs/agent-sessions/quickstart.mdx b/docs/agent-sessions/quickstart.mdx
index 5cbd4580..b5c79ca0 100644
--- a/docs/agent-sessions/quickstart.mdx
+++ b/docs/agent-sessions/quickstart.mdx
@@ -4,7 +4,7 @@ title: "Quickstart"
description: "Start a session, stream it live, and steer it"
---
-Build the smallest useful Durable Agent Sessions integration: define an agent, start a session, stream its event log, then send follow-up messages with a scoped client token.
+This quickstart defines an agent, starts a session, streams its event log, and sends a follow-up message with a scoped client token.
For the finished version, see the [example app](https://github.com/diggerhq/oc-sessions-demos); for every endpoint, the [API / SDK reference](/agent-sessions/api-reference).
@@ -63,7 +63,7 @@ Response:
{ "id": "agt_...", "name": "quickstart-coder", "revision": 1 }
```
-<Note>Your model `key` is held in OpenComputer's [secret store](/sandboxes/secrets) (encrypted, write-only) and **never enters the sandbox**. The agent runs with a placeholder; an **egress proxy substitutes the real key in-flight** on the outbound call to the model provider — so neither the model nor your agent's code ever sees it. Reuse one key across agents via a [credential](/agent-sessions/authentication#model-credentials).</Note>
+<Note>Your model `key` is held in OpenComputer's [secret store](/sandboxes/secrets) (encrypted, write-only) and **never enters the sandbox**. The agent runs with a placeholder; an **egress proxy substitutes the real key in-flight** on the outbound model-provider call. Reuse one key across agents via a [credential](/agent-sessions/authentication#model-credentials).</Note>
<Tip>`POST /agents` is idempotent by agent name, so it is fine to call this during application startup.</Tip>
diff --git a/docs/agent-sessions/repos.mdx b/docs/agent-sessions/repos.mdx
index 5804f8ec..4cda608c 100644
--- a/docs/agent-sessions/repos.mdx
+++ b/docs/agent-sessions/repos.mdx
@@ -16,7 +16,7 @@ sandbox.
<Note>**Preview** — APIs may change before general availability.</Note>
-## How the pieces fit
+## Concepts
| Concept | Role | Boundary |
| --- | --- | --- |
@@ -27,7 +27,7 @@ sandbox.
| Git operations sandbox | Runs authenticated clone/fetch/publish work. | Separate from the agent; token lives only for one operation. |
<Note>
-The Repo/Source shape is provider-neutral: `provider`, `owner`, `repo`, `ref`, `sha`.
+`Repo` and `Source` are provider-neutral: `provider`, `owner`, `repo`, `ref`, `sha`.
GitHub uses GitHub Apps as its auth surface. Other providers can add their own auth
surface while sessions continue to reference repos and sources the same way.
</Note>
@@ -49,7 +49,7 @@ operation.
Install the **OpenComputer** GitHub App and select the repositories agents may work in —
you choose the repos, and can change the selection or uninstall anytime. No keys to
manage, no endpoint to host. OpenComputer mints a fresh, narrowly-scoped token for each
-operation, so durable sessions and recovery work with nothing else from you.
+operation, including retries and recovery.
<Warning>
The App may request write-capable GitHub permissions on the repos you select. OpenComputer
diff --git a/docs/agent-sessions/runtimes.mdx b/docs/agent-sessions/runtimes.mdx
index 5f3d2d3f..8c98eb71 100644
--- a/docs/agent-sessions/runtimes.mdx
+++ b/docs/agent-sessions/runtimes.mdx
@@ -1,10 +1,10 @@
---
mode: "wide"
title: "Runtimes"
-description: "The engine that runs your agent — claude or codex, picked per agent"
+description: "Runtime engine selected per agent"
---
-A **runtime** is the engine that executes the agent loop — what's often called an **agent harness** (the loop plus its tools that drive the model). The two terms map 1:1; this doc says "runtime" because it's the API field. You pick one per agent with `runtime`; it defaults to `claude`. The runtime image is stateless and interchangeable, and the model it runs is separate configuration — so an agent is just a runtime, a `provider/model`, and a matching [credential](/agent-sessions/authentication#model-credentials).
+A **runtime** executes the agent loop: provider SDK, model calls, and tool use. You pick one per agent with `runtime`; it defaults to `claude`. The model is separate configuration, so an agent is a runtime, a `provider/model`, and a matching [credential](/agent-sessions/authentication#model-credentials).
| Runtime | Models | Credential |
| --- | --- | --- |
@@ -16,7 +16,7 @@ A **runtime** is the engine that executes the agent loop — what's often called
- **`claude`:** `anthropic/claude-opus-4-8` (most capable), `anthropic/claude-sonnet-4-6` (balanced), `anthropic/claude-haiku-4-5` (fastest/cheapest).
- **`codex`:** `openai/gpt-5-codex`.
-Sessions, [events](/agent-sessions/events), [steering](/agent-sessions/messaging), [tools](/agent-sessions/runtime-tools), and [webhooks](/agent-sessions/webhooks) work the same way whatever runtime you pick — `runtime` is a single field on the [agent](/agent-sessions/agents), so the rest of your integration is identical across runtimes. (It's fixed once the agent exists; to switch engines, create a new agent with a different `runtime`.)
+Sessions, [events](/agent-sessions/events), [steering](/agent-sessions/messaging), [tools](/agent-sessions/runtime-tools), and [webhooks](/agent-sessions/webhooks) share the same API across runtimes. `runtime` is fixed once the agent exists; to switch engines, create a new agent.
## `claude`
@@ -56,22 +56,22 @@ Content-Type: application/json
The runtime, model, and credential have to agree: `runtime: "codex"` needs an `openai/…` model and an OpenAI key, and `runtime: "claude"` needs an `anthropic/…` model and an Anthropic key. A mismatch is rejected when you create the agent, with a clear error — so a session never starts on a broken pairing. See [model credentials](/agent-sessions/authentication#model-credentials).
-## How runtimes work
+## Architecture
-The model is configuration, not part of the runtime image. Each runtime drives one provider — `claude` drives Anthropic, `codex` drives OpenAI — and you choose the exact `provider/model` and the key it runs on. Because the model is config, the rest of your integration is identical across runtimes; the runtime is the one thing that changes.
+The model is configuration, not part of the runtime image. Each runtime drives one provider: `claude` drives Anthropic, `codex` drives OpenAI. You choose the exact `provider/model` and key.
-A runtime has two pieces:
+A runtime has two components:
- the **brain**, a resident server around the provider's agent SDK;
- the **adapter**, managed by OpenComputer, which connects that brain to the durable session log.
The brain knows the SDK, the model, the prompt, its resumable state directory, and the sandbox tools exposed to it. It does **not** write OpenComputer events directly and does not call the sandbox API itself. The adapter reads new input from the [event log](/agent-sessions/events), sends a bounded turn to the brain, translates the brain's stream into session events, handles fencing/idempotency, and only declares the turn done after committed output is durable.
-The built-in runtimes are built this way. See [example runtimes](https://github.com/diggerhq/oc-runtime-examples) for `claude` and `codex` brain servers side by side, and [custom runtimes](/agent-sessions/custom-runtimes) in Labs for the same brain/adapter shape applied to your own harness.
+The built-in runtimes are built this way. See [example runtimes](https://github.com/diggerhq/oc-runtime-examples) for `claude` and `codex` brain servers side by side, and [custom runtimes](/agent-sessions/custom-runtimes) in Labs for the same brain/adapter contract applied to your own harness.
A runtime also **starts fast**: the engine is prepared ahead of time and baked into the image, so a new or recreated session doesn't wait on a per-session download before its first step.
-### Brain and hands sandboxes
+### Brain and hands
The runtime runs the agent loop in its **own per-session sandbox** (the *brain*). The agent's file and shell tools don't run there — they run in a **separate sandbox** (the *hands*) exposed to the brain through tools, so commands and file edits stay isolated from the model loop. The brain carries the [sealed model key](/agent-sessions/authentication#model-credentials) (egress-allowlisted to the model API, swapped in by a host proxy so the key never enters the VM); the hands sandbox holds no secrets.
@@ -93,15 +93,15 @@ When a session starts it pins the runtime and version it began on (alongside the
## Supervision and recovery
-Sessions are fully managed — you never restart anything yourself:
+OpenComputer supervises runtime execution:
- **One writer at a time.** Only one adapter advances a session at any moment; a stale or slow writer is rejected, so the log never forks.
- **The brain is supervised.** If the resident brain crashes or stops answering health checks, it is restarted and the turn is retried from durable state.
- **Hangs are bounded.** A turn has a deadline; a stuck model or tool path ends `deadline_exceeded` instead of staying stuck.
- **A lost machine is restored.** If the brain sandbox is lost, OpenComputer recreates it, restores the checkpointed state directory, and replays from the durable log.
- **A turn that can't start fails cleanly.** If the model key can't be resolved or the runtime image can't start, the turn ends with an **`error` event carrying the reason** and the session returns to idle — it doesn't hang.
-- **Nothing gets stranded.** A periodic safety sweep picks up any session whose work was missed or left mid-flight, so nothing stays stuck silently.
-- **Everything is recorded.** Every turn and sandbox transition is logged, so you can see where a session is and why a turn ended the way it did.
+- **Safety sweep.** A periodic sweep picks up sessions whose work was missed or left mid-flight.
+- **Lifecycle events.** Turn and sandbox transitions are logged, so you can see where a session is and why a turn ended.
### Failure behavior
diff --git a/docs/agent-sessions/sessions.mdx b/docs/agent-sessions/sessions.mdx
index c770c95d..e43a9908 100644
--- a/docs/agent-sessions/sessions.mdx
+++ b/docs/agent-sessions/sessions.mdx
@@ -1,10 +1,10 @@
---
mode: "wide"
title: "Sessions"
-description: "The durable, resumable unit of an agent's work"
+description: "Durable, resumable agent execution"
---
-A **session** is the durable unit of an [agent](/agent-sessions/agents) at work: an append-only [event log](/agent-sessions/events), the pinned agent snapshot, and a lifecycle status. Compute attaches to it, detaches when idle, and reattaches on the next message — the log is what persists.
+A **session** is an [agent](/agent-sessions/agents) run with an append-only [event log](/agent-sessions/events), a pinned agent snapshot, and a lifecycle status. Compute can attach, detach when idle, and reattach on the next message; the log persists.
## Session flow
@@ -13,7 +13,7 @@ A **session** is the durable unit of an [agent](/agent-sessions/agents) at work:
3. With nothing left to do, the session goes **idle** and the sandbox **hibernates**.
4. A [steer](/agent-sessions/messaging) message wakes it; it resumes with its prior context. Repeat.
-<Note>The runtime is **managed and self-healing**: if it **crashes** we restart it and it continues from its on-box state; if it **hangs**, a turn deadline ends the turn and you steer to continue; an idle session survives even if its sandbox is reclaimed. In-flight work since the last logged event may repeat, so make side effects idempotent. Details: [runtime recovery](/agent-sessions/runtimes#failure-behavior).</Note>
+<Note>The runtime is supervised: crashes restart from durable state, hangs end at the turn deadline, and idle sessions survive sandbox reclaim. Work since the last logged event may repeat, so make side effects idempotent. Details: [runtime recovery](/agent-sessions/runtimes#failure-behavior).</Note>
## Lifecycle
@@ -22,7 +22,7 @@ A **session** is the durable unit of an [agent](/agent-sessions/agents) at work:
| `queued` | Scheduled; no turn is running. |
| `running` | A turn is executing. |
| `awaiting_input` | A turn ended asking you a question — steerable; reply to continue. |
-| `idle` | Done for now; quiescent and steerable; the sandbox is hibernated. |
+| `idle` | No turn running; steerable; the sandbox is hibernated. |
| `failed` | The session errored out. |
| `archived` | Closed; read-only. |
@@ -67,7 +67,7 @@ Response:
}
```
-<Tip>**For background jobs, don't poll — register a [destination](/agent-sessions/webhooks).** Polling `GET /…/result` ties up a request and doesn't survive your process restarting. The durable pattern: hand off at create (with `metadata` for routing + a `destination`), return, and let OpenComputer call your webhook on `turn.completed` — then fetch the result. Reserve `result()` polling for synchronous/interactive flows.</Tip>
+<Tip>**For background jobs, register a [destination](/agent-sessions/webhooks).** Polling `GET /…/result` ties up a request and doesn't survive your process restarting. Create the session with `metadata` and a `destination`; handle `turn.completed` in your webhook, then fetch the result. Reserve `result()` polling for synchronous or interactive flows.</Tip>
## Idempotency & routing
diff --git a/docs/agent-sessions/triggers.mdx b/docs/agent-sessions/triggers.mdx
index fc525243..b82bc5fc 100644
--- a/docs/agent-sessions/triggers.mdx
+++ b/docs/agent-sessions/triggers.mdx
@@ -4,9 +4,9 @@ title: "Triggers"
description: "Start and resume sessions from external events"
---
-<Note>**Labs preview.** Triggers are not part of the stable Durable Sessions API. The stable path is to start a session with [`POST /sessions`](/agent-sessions/api-reference) and steer it with [`POST /messages`](/agent-sessions/messaging).</Note>
+<Note>**Labs preview.** Triggers are not part of the stable Durable Sessions API. For stable API access, use [`POST /sessions`](/agent-sessions/api-reference) to start work and [`POST /messages`](/agent-sessions/messaging) to steer it.</Note>
-Triggers let external events start and resume sessions without an API call. You declare them on an [agent](/agent-sessions/agents); the platform receives the events and routes them to the right session.
+Triggers let external events start or resume sessions. You declare them on an [agent](/agent-sessions/agents); OpenComputer receives events, de-duplicates them, and routes them to a session.
```toml
[[triggers]]
@@ -20,12 +20,15 @@ on = "issue.labeled:agent"
## Integrations
-Triggers, and the deliveries that carry work back out, run through platform-operated
-integrations, so the agent holds no tokens. Installing the OpenComputer GitHub App is the
-GitHub integration; a Slack integration powers the Slack [channel](/agent-sessions/channels).
+Triggers and outbound deliveries run through platform integrations, so the agent holds no
+GitHub or Slack tokens. Installing the OpenComputer GitHub App configures GitHub access;
+Slack channels use a Slack integration.
## Deliveries
-To act back on a source — open or update a draft PR, post a comment — the agent requests a **delivery** and the platform performs it, as the org or (with a personal grant) as the triggering user. For generic outbound delivery, use [webhooks](/agent-sessions/webhooks).
+To open or update a draft PR, post a comment, or take another external action, the agent
+requests a **delivery** and OpenComputer performs it as the org or as the triggering user,
+depending on the configured grant. For generic outbound delivery, use
+[webhooks](/agent-sessions/webhooks).
See [Channels](/agent-sessions/channels) for the two-way conversation model and [Workspaces](/agent-sessions/workspaces) for the repo a triggered session works in.
diff --git a/docs/agent-sessions/webhooks.mdx b/docs/agent-sessions/webhooks.mdx
index cef63600..0492ee38 100644
--- a/docs/agent-sessions/webhooks.mdx
+++ b/docs/agent-sessions/webhooks.mdx
@@ -1,10 +1,10 @@
---
mode: "wide"
title: "Webhooks"
-description: "Deliver a session's output, and control deliveries"
+description: "Deliver session events to your backend"
---
-Register a **destination** and a session's [events](/agent-sessions/events) are delivered to it as a small **delivery envelope** — at-least-once, signed, and retried. The envelope carries top-level routing fields plus your session [`metadata`](/agent-sessions/api-reference#sessions), with the full event nested under `event`:
+Register a **destination** to receive a session's [events](/agent-sessions/events) as a **delivery envelope**. Deliveries are at-least-once, signed when a secret is set, and retried. The envelope carries routing fields, session [`metadata`](/agent-sessions/api-reference#sessions), and the full event under `event`:
```json
{
@@ -86,7 +86,7 @@ A destination receives events appended **after** it's created. To capture a whol
## Deliveries
-Every send and its outcome — the data behind a deliveries dashboard.
+Each send is recorded with status, attempts, and the latest response or error.
<Tabs>
diff --git a/docs/agent-sessions/workspaces.mdx b/docs/agent-sessions/workspaces.mdx
index 1b8c3b10..239e1c62 100644
--- a/docs/agent-sessions/workspaces.mdx
+++ b/docs/agent-sessions/workspaces.mdx
@@ -6,7 +6,7 @@ description: "Prepared repo environments, rebuilt on push"
<Note>**Labs preview.** Workspaces are not part of the stable Durable Sessions API. A session can already work in its [sandbox](/agent-sessions/runtime-tools); private repos are checked out before the first turn through [Repos & GitHub](/agent-sessions/repos).</Note>
-Cloning, installing, and building take minutes. A **workspace** does that work ahead of time — on every push — and snapshots the result, so a session boots into a ready machine in seconds. It is a first-class resource (not an agent attribute), shared by every session that lands on its repo(s).
+A **workspace** runs clone, install, and build steps ahead of time, then snapshots the result. Sessions can start from the latest successful workspace build instead of rebuilding from scratch.
```bash
oc workspace create web \
@@ -16,7 +16,7 @@ oc workspace create web \
```
- **Recipe.** One or more repos (each at an optional ref), a `setup` step, and an optional `warm` step to heat caches.
-- **Builds.** Rebuilt on every push (or on an interval) into an immutable lineage; a session boots from the latest successful build and pins it. `--pool N` keeps machines pre-booted.
+- **Builds.** Rebuilt on every push (or on an interval) into an immutable lineage; a session starts from the latest successful build and pins it. `--pool N` keeps machines pre-booted.
- **Resolution.** A session is not bound to a repo — it resolves which to work in from the triggering event, the conversation, an agent default, or by asking. Resolution is lazy and re-resolvable: switch repos mid-session, or open several at once.
Pairs with the scoped, tokenless private-repo access noted in [Runtime tools](/agent-sessions/runtime-tools).