An open-source, faster Devin alternative
TypeScript
docs: remove roadmap leakage from sessions docs
Igor Zalutski71e47384c2cd
diff --git a/docs/agent-sessions/agents.mdx b/docs/agent-sessions/agents.mdxindex e1ab1c99..a884badc 100644--- a/docs/agent-sessions/agents.mdx+++ b/docs/agent-sessions/agents.mdx@@ -49,5 +49,3 @@ When a session is created it **freezes** the agent's `prompt`, `model`, `runtime## Model`model` is a `provider/model` id, and its provider must match the [runtime](/agent-sessions/runtimes): `claude` runs `anthropic/…` (e.g. `anthropic/claude-opus-4-8`), `codex` runs `openai/…` (e.g. `openai/gpt-5-codex`). The model runs on [your own key](/agent-sessions/authentication#model-credentials) for that provider (required). The `runtime` / `model` / credential pairing is validated when you **create** the agent. `runtime` is fixed at creation — to switch engines, create a new agent; you can still update `model` later, but keep it within the runtime's provider.--<Note>Switching a session's model mid-session is coming soon; for now, new sessions pick up the agent's current `model`.</Note>diff --git a/docs/agent-sessions/api-reference.mdx b/docs/agent-sessions/api-reference.mdxindex 4ae9c9fc..3623d4e6 100644--- a/docs/agent-sessions/api-reference.mdx+++ b/docs/agent-sessions/api-reference.mdx@@ -77,18 +77,17 @@ SessionSource = // a sources[] entry — WIRE{ repo, ref, sha, name? } // a registered repo id or "owner/repo" — GitHub App auth| { url, ref, sha, name?, auth } // inline shortcut; name defaults to repo name, type defaults "git"SourceAuth = // inline path ONLY (GitHub App-backed repos need none)- { type: "risky_short_lived_token", token, expires_at } // workaround; short-lived; can't refresh+ { type: "risky_short_lived_token", token, expires_at } // short-lived; can't refresh// SDK is camelCase: expiresAt (wire expires_at).-SourceSummary = { name, status, path, sha, // returned today- resolved_sha?, error_code?, error_message?, retryable? } // forward-looking+SourceSummary = { name, status, path, sha,+ resolved_sha?, error_code?, error_message?, retryable? }// sanitized; in the create response + GET …/sources-// status today: pending | materializing | resolved | failed | auth_required-// (unavailable is reserved/forward-looking)+// status: pending | materializing | resolved | failed | auth_required// error_code examples: source.auth_required, source.repo_not_selected,// source.permission_missing, source.mint_failed, source.ref_not_found, source.sha_mismatch```-`yield_reason` (`completed | needs_input | error | budget_exceeded | deadline_exceeded | max_turns | canceled`; `requires_action` is reserved, not emitted yet) is the machine-readable "why the turn ended" — `needs_input` means the agent asked a question; answer it by [steering](#steer).+`yield_reason` (`completed | needs_input | error | budget_exceeded | deadline_exceeded | max_turns | canceled`) is the machine-readable "why the turn ended" — `needs_input` means the agent asked a question; answer it by [steering](#steer).## Events@@ -260,7 +259,7 @@ Pass `key` **or** `credential` (or neither → org default). The agent's `limitsConnect a GitHub App to let OpenComputer obtain short-lived, repo-scoped tokens for the repositories agents may work in. A **Repo** is repository identity + policy. See the [Repos & GitHub guide](/agent-sessions/repos).-The OpenComputer-owned App is the current simplest path and is installed from its GitHub App install URL, not by minting an install URL through the SDK. Bring-your-own GitHub App support adds more App records later; repo and session shapes stay the same. **No credential passes through this API.**+The OpenComputer-owned App is installed from its GitHub App install URL, not by minting an install URL through the SDK. Bring-your-own GitHub App modes use the same repo and session shapes. **No credential passes through this API.**GitHub App `mode` values: `oc_app` (OpenComputer owns and mints), `byo_stored_key` (yourApp key is encrypted in OpenComputer; OpenComputer mints), and `byo_broker` (your backend@@ -272,8 +271,6 @@ owns the App key and returns operation-scoped short-lived tokens).| Call | Purpose || --- | --- |-| `oc.github.apps.list()` | List GitHub Apps available to your org. _(coming soon)_ |-| `oc.github.installations.list(params?)` | List installations for `oc_app` / `byo_stored_key`. _(coming soon; the OC App is resolved automatically — not needed to use a repo)_ || `oc.repos.create(params)` | Register (get-or-create) a repo. || `oc.repos.get(id)` · `oc.repos.list()` | Fetch / list. || `oc.repos.update(id, params)` | Update policy `defaults`. |@@ -284,8 +281,6 @@ owns the App key and returns operation-scoped short-lived tokens).| Method · Path | Purpose || --- | --- |-| `GET /github/apps` | List GitHub Apps available to your org. _(coming soon)_ |-| `GET /github/installations?app_id=...` | List installations for `oc_app` / `byo_stored_key`. _(coming soon; OC App resolved automatically)_ || `POST /repos` | Register (get-or-create) a repo. || `GET /repos/:id` · `GET /repos` | Fetch / list. || `PATCH /repos/:id` | Update policy `defaults`. |@@ -298,11 +293,9 @@ Repo create body: `owner`, `repo`, `provider?` (`github`, default), `name?` (a h```Repo = { id, provider, owner, repo, name?, app_id?, defaults?, created_at, updated_at }-GitHubApp = { id, provider, mode, status, app_slug?, app_name?, is_default?, created_at }-GitHubInstallation = { id, app_id, account_login, status, repository_selection?, created_at }```-Responses **never** contain a token or secret. (SDK camelCase: `branchNamespace`, `appId`, `appSlug`, `accountLogin`.) Installations are a status/preflight surface: `oc_app` and `byo_stored_key` Apps can list them, while `byo_broker` Apps may have none because your backend owns that lifecycle. Registering a repo is **optional** under the OpenComputer App — a session can reference `"owner/repo"` directly.+Responses **never** contain a token or secret. (SDK camelCase: `branchNamespace`, `appId`.) Registering a repo is **optional** under the OpenComputer App — a session can reference `"owner/repo"` directly.## Credentials@@ -330,7 +323,7 @@ Responses **never** contain a token or secret. (SDK camelCase: `branchNamespace`</Tabs>-Credential body: `provider`, `key`, `name?`, `is_default?`. Keys are write-only. A credential is **required**; sessions run on your key (no platform billing yet).+Credential body: `provider`, `key`, `name?`, `is_default?`. Keys are write-only. A credential is **required**; sessions run on your provider key.```Credential = { id, provider, name?, last4, is_default, created_at }diff --git a/docs/agent-sessions/artifacts.mdx b/docs/agent-sessions/artifacts.mdxindex d807ef30..5e349bad 100644--- a/docs/agent-sessions/artifacts.mdx+++ b/docs/agent-sessions/artifacts.mdx@@ -1,10 +1,10 @@---mode: "wide"title: "Artifacts & previews"-description: "A session's published outputs — live previews and durable files (coming soon)"+description: "A session's published outputs — live previews and durable files"----<Note>**Coming soon.** This page is design direction, not a shipped API. Today, large event bodies can spill to a [`content_ref`](/agent-sessions/events).</Note>+<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.@@ -15,7 +15,7 @@ description: "A session's published outputs — live previews and durable files## Publish from the runtime-The runtime would get two tools:+The runtime publishes artifacts through two tools:- `oc.preview(port)` — expose a port of the session's machine as a preview URL.- `oc.publish(path)` — snapshot a file as a durable artifact.@@ -36,5 +36,3 @@ Artifact = { key, kind: "preview" | "file" | "link", title?, status?, url?,```A preview URL is a public capability — the browser loads it directly; a [client token](/agent-sessions/authentication#client-tokens) only gates *learning* the URL (via the user-level event), so you can stream the whole build *and* embed the running app from the same front-end.--<Note>Actively being designed — if you have a shape in mind or want it sooner, tell us how you'd use it.</Note>diff --git a/docs/agent-sessions/authentication.mdx b/docs/agent-sessions/authentication.mdxindex 589196a3..dd9f901e 100644--- a/docs/agent-sessions/authentication.mdx+++ b/docs/agent-sessions/authentication.mdx@@ -117,6 +117,4 @@ Content-Type: application/json</CodeGroup>-**Resolution** per session: the agent's credential → your org default for the provider. (No platform-billed fallback yet — bring a key.)--<Note>Model hot-swap and platform-billed usage are coming soon — they use this same credential shape, so your setup won't change.</Note>+**Resolution** per session: the agent's credential → your org default for the provider. Sessions run on your configured provider key.diff --git a/docs/agent-sessions/channels.mdx b/docs/agent-sessions/channels.mdxindex cd66acef..235220c6 100644--- a/docs/agent-sessions/channels.mdx+++ b/docs/agent-sessions/channels.mdx@@ -1,10 +1,10 @@---mode: "wide"title: "Channels"-description: "Talk to a session where people already work — Slack, GitHub (coming soon)"+description: "Talk to a session where people already work — Slack, GitHub"----<Note>**Planned.** This page describes planned API shape, not shipped behavior. Today you converse with a session over the [API](/agent-sessions/messaging) — stream events out, post messages in — and deliver events out via [webhooks](/agent-sessions/webhooks).</Note>+<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>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.diff --git a/docs/agent-sessions/custom-runtimes.mdx b/docs/agent-sessions/custom-runtimes.mdxindex cda2aa03..627b48d3 100644--- a/docs/agent-sessions/custom-runtimes.mdx+++ b/docs/agent-sessions/custom-runtimes.mdx@@ -1,10 +1,10 @@---mode: "wide"title: "Custom runtimes"-description: "Package your own agent harness as a runtime (coming soon)"+description: "Package your own agent harness as a runtime"----<Note>**Planned.** This page describes the intended custom-runtime contract, not shipped behavior. Today the built-in [runtimes](/agent-sessions/runtimes) are `claude` and `codex`; bringing your own runtime is on the roadmap.</Note>+<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.@@ -32,7 +32,7 @@ GET /healthzReturn `busy: true` while a turn is running. A second turn should return `409`; OpenComputer already serializes real turns, so this is a safety check.-<Note>`contract_version` (`"1"` today) is the internal runtime↔adapter version the built-ins use. The public custom-runtime contract isn't finalized yet, so this value may change when custom runtimes ship.</Note>+<Note>`contract_version` (`"1"`) is the runtime↔adapter contract version. Treat this Labs contract as unstable until it is promoted out of Labs.</Note>## Turn request@@ -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. (A single SDK-agnostic step protocol for fully custom runtimes is planned; until then, custom runtimes target an SDK the platform has an adapter for.)+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.Tool calls, including user-visible `say` and `ask`, are made through MCP, not by emitting HTTP requests to OpenComputer.@@ -108,10 +108,10 @@ Design your brain so replay is safe. If a crash happens after a step is emitted## Register runtimes-Registration is planned:+Labs CLI shape:```bashoc runtime push```-Runtimes will be versioned. Each session pins the runtime build it starts with, so publishing a new build affects new sessions only.+Runtimes are versioned. Each session pins the runtime build it starts with, so publishing a new build affects new sessions only.diff --git a/docs/agent-sessions/events.mdx b/docs/agent-sessions/events.mdxindex e5d19704..c9656327 100644--- a/docs/agent-sessions/events.mdx+++ b/docs/agent-sessions/events.mdx@@ -44,8 +44,6 @@ Treat **`type`** as the stable discriminator — switch on it, don't parse prose| `exec.completed` | `{ command, exit_code, summary, content_ref?, bytes? }` | a finished command || `error.runtime` · `error.model` · `error.task` | `{ code, message, retriable? }` | a failure |-**Coming soon**: `test.results`, `diff`/`patch`, `pr.result`, `preview.url`, `action.required` (agent needs an approval / tool result).-## Visibility levelsEvery event carries a `level` — use it to choose how much detail each surface receives.@@ -79,7 +77,7 @@ Read or stream with `after=<seq>` to get everything since that point — this isSteers coalesce — one turn can pick up several — so [`POST /messages`](/agent-sessions/messaging) returns the *event* `seq`, not a turn. The turn that consumes your steer emits `turn.started` with `input_from_seq ≤ your_seq ≤ input_to_seq`; await its `turn.completed`, then `GET …/events?turn_id=` for everything it produced.</Accordion><Accordion title="Large output and artifacts">- A large `body` is offloaded to a `content_ref`; fetch the bytes with `GET /sessions/:id/events/:eventId/content` (e.g. full `exec.completed` output). Richer **artifacts** (named files, diffs, screenshots, reports) get a first-class [artifacts & previews API](/agent-sessions/artifacts) **coming soon**.+ A large `body` is offloaded to a `content_ref`; fetch the bytes with `GET /sessions/:id/events/:eventId/content` (e.g. full `exec.completed` output). For named files, diffs, screenshots, reports, and previews, see [Artifacts & previews](/agent-sessions/artifacts) in Labs.</Accordion><Accordion title="id, turn_id, and idempotency keys">**`id`** is the event's own unique id (`evt_…`). **`turn_id`** is the turn that produced the event, when applicable — filter a turn's output with `?turn_id=`. The client idempotency key for steering is separate from both (deduped per session — see [steering](/agent-sessions/messaging)).diff --git a/docs/agent-sessions/messaging.mdx b/docs/agent-sessions/messaging.mdxindex c77f06c1..01dbb9da 100644--- a/docs/agent-sessions/messaging.mdx+++ b/docs/agent-sessions/messaging.mdx@@ -63,6 +63,4 @@ These fields don't all land in one place — the appended [event](/agent-sessionSo 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).--<Note>[Inbound channels](/agent-sessions/channels) (Slack, GitHub, Jira, email) are coming soon — they map onto this same envelope; today you steer in via the API.</Note>+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/repos.mdx b/docs/agent-sessions/repos.mdxindex d71278dd..a96164c3 100644--- a/docs/agent-sessions/repos.mdx+++ b/docs/agent-sessions/repos.mdx@@ -18,30 +18,29 @@ sources; GitHub credentials stay behind that boundary and never enter the agent| Repo | Provider, owner, repo name, optional App pin, and permission ceiling. | Stores no tokens, private keys, or session refs. || Source | Per-session checkout: repo/url, `ref`, `sha`, and local name. | Auth comes from the repo's App unless using inline auth. |-Launch scope is source checkout before the first turn. Remote GitHub actions-(`source.fetch_ref`, PR publish, comments, statuses) use the same boundary and are coming-next.+Private GitHub access is used to prepare the source checkout before a turn starts. Inside+the sandbox, the agent works on local files; authenticated GitHub operations stay outside+the model-executed environment.<Note>The Repo/Source shape is provider-neutral: `provider`, `owner`, `repo`, `ref`, `sha`.-GitHub uses GitHub Apps as its auth surface. A future GitLab integration should add a-provider-specific auth surface, but sessions should still reference repos and sources the-same way.+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>## GitHub App modes-| Mode | Who owns the App key | Who mints tokens | Status |+| Mode | Who owns the App key | Who mints tokens | Use when || --- | --- | --- | --- |-| `oc_app` | OpenComputer | OpenComputer | Current simplest path. |-| `byo_stored_key` | You; encrypted in OpenComputer | OpenComputer | Coming next. |-| `byo_broker` | You; kept in your backend | Your broker endpoint | Coming next. |+| `oc_app` | OpenComputer | OpenComputer | You want private repo access with no App key handling. |+| `byo_stored_key` | You; encrypted in OpenComputer | OpenComputer | You want GitHub actions to appear as your own App without hosting a broker. |+| `byo_broker` | You; kept in your backend | Your broker endpoint | Your backend must own GitHub policy, token minting, and App lifecycle. |In all modes, each operation asks for the minimum GitHub permission it needs. Checkout-needs read-only contents access; future publish/comment/status tools ask for write access-only for that operation.+needs read-only contents access; write-capable actions ask for write access only for that+operation.-### OpenComputer GitHub App (current simplest path)+### OpenComputer GitHub AppInstall 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@@ -51,7 +50,7 @@ operation, so durable sessions and recovery work with nothing else from you.<Warning>The App may request write-capable GitHub permissions on the repos you select. OpenComputerdoes **not** hand that broad authority to the agent: each operation gets a fresh token with-the minimum permission it needs, such as read-only for checkout and write only for a future+the minimum permission it needs, such as read-only for checkout and write only for apublish/comment action.</Warning>@@ -60,18 +59,10 @@ expose an SDK method to mint that URL because the App is owned by OpenComputer.installed on a repo, reference that repo in a session's `sources` (below) — OpenComputerresolves the App and mints a token just in time.-<Note>-**Coming soon:** listing your Apps and installs (`oc.github.apps.list()` /-`oc.github.installations.list()`). Today the OpenComputer App is resolved automatically;-you don't need to enumerate installs to use a repo.+You do not need to enumerate installations to use a repo. OpenComputer resolves the App+automatically when a session starts.-```ts-const installs = await oc.github.installations.list({ appId: "gha_oc" });-// [{ id: "ghi_...", appId: "gha_oc", accountLogin: "acme", status: "active" }]-```-</Note>--### Bring your own GitHub App (coming next)+### Bring your own GitHub AppUse a bring-your-own App when you want GitHub audit logs, PRs, comments, and statuses tocome from your own App instead of OpenComputer's.@@ -88,7 +79,7 @@ Apps, because your backend owns that state.### Inline short-lived token-The no-setup workaround is to pass a real short-lived token inline on the source, using the+The no-setup path is to pass a real short-lived token inline on the source, using thedeliberately-named `risky_short_lived_token` auth:<CodeGroup>@@ -125,8 +116,7 @@ sources: [{The inline token **can't refresh** — once it expires the session can't fetch, push, orrecover, so use it only for sessions that finish within the token's life. OpenComputerrejects a far-future or missing expiry and holds it encrypted only until the first-checkout, then purges it. It's a temporary shortcut for environments that have not-connected a GitHub App yet.+checkout, then purges it. Use this only when a GitHub App is not configured.</Warning>## Register a repo@@ -202,8 +192,7 @@ Authorization: Bearer $OPENCOMPUTER_API_KEY- **`sha`** (required) — the exact commit, pinned and verified after fetch.You can also reference `"owner/repo"` directly instead of a registered id. A session can-list several immutable sources, such as a PR's base and head. Fetching more refs-mid-session will use the `source.fetch_ref` tool once remote actions land.+list several immutable sources, such as a PR's base and head.## Check source status@@ -227,25 +216,18 @@ Common `errorCode` values: `source.auth_required`, `source.auth_ambiguous`,## What the agent can doLocal Git works normally on the checkout (`status`/`diff`/`log`, edit, test, local-commits). Anything needing GitHub credentials is a **typed tool** run in a separate-git-ops sandbox — the agent never runs authenticated `git`/`gh` and never sees a token:--| Tool | Does | Status |-| --- | --- | --- |-| `source.fetch_ref` | fetch another ref into the checkout | Coming soon |-| `github.publish_branch` / `publish_pull_request` | push changes / open a PR | Coming soon |-| `github.comment` / `github.set_status` | comment, set a commit status | Coming soon |+commits). Anything needing GitHub credentials runs outside the agent sandbox, so the agent+never runs authenticated `git`/`gh` and never sees a token.## Guarantees- **GitHub App-backed tokens are never stored** — OpenComputer obtains short-lived,repo-scoped tokens just in time and destroys them. None reaches the agent's prompt,- shell, files, env, the event log, or telemetry. (The one exception is the inline-token- workaround, held encrypted only until the first checkout, then purged.)+ shell, files, env, the event log, or telemetry. (The one exception is inline-token auth,+ held encrypted only until the first checkout, then purged.)- App private keys for the OpenComputer App and stored-key Apps live only inOpenComputer's **control plane**, never in a sandbox. `byo_broker` App keys stay in yourbackend.-- Agent pushes go to an `oc/<session>/…` branch namespace — **no protected-branch push,- no force-push.**-- Submodules and Git LFS aren't supported yet. Lost-sandbox recovery and prebuilt- checkouts for large repos ([Workspaces](/agent-sessions/workspaces)) are firming up.+- Platform-mediated pushes use an `oc/<session>/…` branch namespace — **no+ protected-branch push, no force-push.**+- Submodules and Git LFS are not part of the checkout contract.diff --git a/docs/agent-sessions/runtime-tools.mdx b/docs/agent-sessions/runtime-tools.mdxindex 8d976a09..d6ddab3c 100644--- a/docs/agent-sessions/runtime-tools.mdx+++ b/docs/agent-sessions/runtime-tools.mdx@@ -17,9 +17,9 @@ When you write a prompt for a [runtime](/agent-sessions/runtimes) (`claude` or ``bash` is the only place commands run. Each call is a fresh shell, so use absolute paths or `cd /workspace && ...`. A run surfaces as an [`exec.completed`](/agent-sessions/events#event-shape) event (`{ command, exit_code, summary }`), with large output available via `content_ref`.-To work on a **public** repo, the agent `git clone`s it via `bash` — the sandbox has open outbound internet (below). For **private** repos, register a [Repo](/agent-sessions/repos) and reference it in the session's `sources`: it's checked out before the first turn and the GitHub credential never enters the sandbox. Prepared [workspaces](/agent-sessions/workspaces) are coming soon.+To work on a **public** repo, the agent `git clone`s it via `bash` — the sandbox has open outbound internet (below). For **private** repos, register a [Repo](/agent-sessions/repos) and reference it in the session's `sources`: it's checked out before the first turn and the GitHub credential never enters the sandbox.-<Note>**Network:** the sandbox has **open outbound internet** by default (so `git clone`, package installs, and API calls just work), with private, loopback, link-local, and cloud-metadata addresses blocked. Per-agent egress allowlists are coming.</Note>+<Note>**Network:** the sandbox has **open outbound internet** by default (so `git clone`, package installs, and API calls just work), with private, loopback, link-local, and cloud-metadata addresses blocked.</Note>## User-facing tools@@ -30,11 +30,12 @@ To work on a **public** repo, the agent `git clone`s it via `bash` — the sandbThe agent's final `say` is the session result. `ask` ends the turn with `yield_reason: "needs_input"`; answer by [steering](/agent-sessions/messaging) a reply, which wakes the session.-<Note>The formal blocking `ask` state is coming soon. Today the turn yields rather than blocking.</Note>+## External systems-## External delivery tools--`deliver` (open/update a pull request or post a comment) and `reconcile` (declare the desired end state and let the platform converge to it) are how an agent acts **outside** the sandbox. They land with the channel launches (GitHub, etc.); until then, get a session's output out via [webhooks](/agent-sessions/webhooks) — the agent's `user`-level messages and results are delivered there.+The tools above do not give the agent credentials for GitHub, Slack, Jira, or other+external systems. To move a session's output into your product, register a+[webhook destination](/agent-sessions/webhooks) and handle the delivered events in your+backend.## Prompt guidancediff --git a/docs/agent-sessions/runtimes.mdx b/docs/agent-sessions/runtimes.mdxindex f09c8135..5f3d2d3f 100644--- a/docs/agent-sessions/runtimes.mdx+++ b/docs/agent-sessions/runtimes.mdx@@ -67,7 +67,7 @@ A runtime has two pieces: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, and [custom runtimes](/agent-sessions/custom-runtimes) follow the same split. See [example runtimes](https://github.com/diggerhq/oc-runtime-examples) for `claude` and `codex` brain servers side by side.+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.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.@@ -105,8 +105,6 @@ Sessions are fully managed — you never restart anything yourself:### Failure behavior-What's guaranteed today, and what isn't:-| Failure | What happens || --- | --- || Client disconnects | Reconnect from your cursor ([events](/agent-sessions/events)); nothing lost. |@@ -116,11 +114,4 @@ What's guaranteed today, and what isn't:| Sandbox lost **while idle** | Recreated from the last checkpoint before the next turn. || Sandbox lost **mid-turn** | Recreated, restored from checkpointed state, and replayed from the durable log. |-Work since the last committed step may repeat, so **make side effects idempotent** and treat the event log (and delivered webhooks) as the durable record. Uncommitted hands-sandbox files are not restored after sandbox loss — commit or push to keep them. Byte-exact **mid-turn** resume is coming in a later release.--## What's coming--More engines are on the way, each picked the same one-line way — your setup won't change:--- **More prebuilt runtimes and providers** — additional managed engines, selected by setting `runtime` to its name.-- **Custom runtimes** — package any agent harness as a runtime image and run it on the same sessions, events, and recovery as the built-ins. See [Custom runtimes](/agent-sessions/custom-runtimes) in Labs for the shape this takes.+Work since the last committed step may repeat, so **make side effects idempotent** and treat the event log (and delivered webhooks) as the durable record. Recovery resumes from committed steps and checkpointed runtime state, not from arbitrary CPU instruction state. Uncommitted hands-sandbox files are not restored after sandbox loss — commit or push to keep them.diff --git a/docs/agent-sessions/sessions.mdx b/docs/agent-sessions/sessions.mdxindex 2d91453e..c770c95d 100644--- a/docs/agent-sessions/sessions.mdx+++ b/docs/agent-sessions/sessions.mdx@@ -19,7 +19,7 @@ A **session** is the durable unit of an [agent](/agent-sessions/agents) at work:| Status | Meaning || --- | --- |-| `queued` | Scheduled; a turn hasn't started running yet. |+| `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. |@@ -79,14 +79,14 @@ Three independent knobs — don't overload one for another:## Limits-Cap a session at create (or default it on the [agent](/agent-sessions/agents)) with `limits: { tokens, turn_seconds, turns }` — a token budget, per-turn wall-clock, and auto-run count. These are **non-monetary** (no dollar caps — we don't bill model usage yet; you run on your own key). Hitting one ends the turn with the matching `yield_reason`.+Cap a session at create (or default it on the [agent](/agent-sessions/agents)) with `limits: { tokens, turn_seconds, turns }` — a token budget, per-turn wall-clock, and auto-run count. These are runtime limits, not spend controls; model usage is billed by your provider key. Hitting one ends the turn with the matching `yield_reason`.## Stop a session`POST /sessions/:id/cancel` **requests** a cooperative stop: the turn ends at its next checkpoint with a `turn.completed` (`yield_reason: "canceled"`), so an in-flight model call may run to its timeout — billing for that turn stops when it actually exits, not the instant you call. `POST /sessions/:id/archive` cancels any active turn, then closes the session read-only.-**`archive` is not delete** — the session's log is retained, just read-only. Hard delete (`DELETE /sessions/:id`) and export are coming soon.+**`archive` is not delete** — the session's log is retained, just read-only.-<Note>Blocking on input *mid-turn* (the formal `ask` loop) is coming soon. Today the agent signals it needs input by ending the turn with `yield_reason: "needs_input"` (status `awaiting_input`); you reply by [steering](/agent-sessions/messaging).</Note>+<Note>When the agent needs input, the turn ends with `yield_reason: "needs_input"` and the session status becomes `awaiting_input`; reply by [steering](/agent-sessions/messaging).</Note>-<Note>**No cross-session memory (yet).** Each session starts fresh from the agent's prompt + that session's `input` — a durable log is *session history*, not memory the agent carries between sessions. A dedicated memory surface is on the roadmap.</Note>+<Note>**No cross-session memory.** Each session starts from the agent's prompt + that session's `input` — a durable log is *session history*, not memory the agent carries between sessions.</Note>diff --git a/docs/agent-sessions/triggers.mdx b/docs/agent-sessions/triggers.mdxindex 87fecfcd..fc525243 100644--- a/docs/agent-sessions/triggers.mdx+++ b/docs/agent-sessions/triggers.mdx@@ -1,10 +1,10 @@---mode: "wide"title: "Triggers"-description: "Start and resume sessions from external events (coming soon)"+description: "Start and resume sessions from external events"----<Note>**Planned.** This page describes planned API shape, not shipped behavior. Today you 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. 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>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.@@ -14,7 +14,7 @@ type = "github"on = "issue.labeled:agent"```-- **Sources (planned):** GitHub (issue labeled, PR/issue comment) and a Slack `@mention`. `cron`, `http`, and email are further out.+- **Sources:** GitHub (issue labeled, PR/issue comment) and Slack `@mention`.- **Routing:** a routing key groups events into sessions — by default one session per issue; a comment on a PR the agent opened resumes the session that opened it.- **Who can trigger:** restricted to members of your organization by default, configurable per agent.@@ -26,6 +26,6 @@ GitHub integration; a Slack integration powers the Slack [channel](/agent-sessio## 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. Today the generic outbound path is [webhooks](/agent-sessions/webhooks); first-class GitHub/Slack deliveries are part of this work.+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).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.mdxindex 7350ba95..cef63600 100644--- a/docs/agent-sessions/webhooks.mdx+++ b/docs/agent-sessions/webhooks.mdx@@ -82,7 +82,7 @@ Content-Type: application/json</Tabs>-A destination receives events appended **after** it's created. To capture a whole session, pass `webhook` in `POST /v3/sessions` so it's registered before the agent produces output. (Replaying earlier events with `backfill_from_seq` is coming soon.)+A destination receives events appended **after** it's created. To capture a whole session, pass `webhook` in `POST /v3/sessions` so it's registered before the agent produces output. Destinations are not retroactive.## Deliveries@@ -121,8 +121,6 @@ Delivery = {}```-<Note>Coming soon: full request/response **body** capture in delivery detail (today records status, attempts, response code, and error); a **test-ping** for a destination; and **org/agent-scoped** destinations that persist across sessions.</Note>-## Signing, retries, and dedupe- **HTTPS only.** Private, loopback, link-local, and cloud-metadata addresses are refused.@@ -162,5 +160,3 @@ function verify(headers, rawBody, secret) {```<Note>These deliver a **session's** events (turns, messages, results). To react to **sandbox lifecycle** — boot, hibernate, stop, scale — see [Sandbox webhooks](/sandboxes/webhooks): the **same** Standard Webhooks `verifyWebhook` helper, but a different header dialect and delivery ownership. Sessions use `webhook-*` headers (where `webhook-id` is the *event id*) with the delivery-row id in `X-OC-Delivery-ID`, and signing is opt-in. Sandbox webhooks are delivered by Svix, always signed, under `svix-*` headers where `svix-id` is the delivery/dedupe id, with per-destination metadata as custom headers.</Note>--<Note>Today, delivery is over **generic webhooks**. Slack, GitHub comments, Jira, and email are coming soon — all on this same event and delivery model.</Note>diff --git a/docs/agent-sessions/workspaces.mdx b/docs/agent-sessions/workspaces.mdxindex 06233d23..1b8c3b10 100644--- a/docs/agent-sessions/workspaces.mdx+++ b/docs/agent-sessions/workspaces.mdx@@ -1,10 +1,10 @@---mode: "wide"title: "Workspaces"-description: "Prepared repo environments, rebuilt on push (coming soon)"+description: "Prepared repo environments, rebuilt on push"----<Note>**Planned.** This page describes planned API shape, not shipped behavior. Today a session works in its [sandbox](/agent-sessions/runtime-tools); for a public repo the agent clones on demand, and for a private repo OpenComputer checks it out before the first turn (see [Repos & GitHub](/agent-sessions/repos)).</Note>+<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).diff --git a/docs/docs.json b/docs/docs.jsonindex c845c358..80254353 100644--- a/docs/docs.json+++ b/docs/docs.json@@ -77,7 +77,7 @@"agent-sessions/api-reference",{"group": "Labs",- "tag": "Coming soon",+ "tag": "Labs","expanded": true,"pages": ["agent-sessions/custom-runtimes",