An open-source, faster Devin alternative
TypeScript
docs(runtimes): make explicit that a runtime is an agent-SDK wrapper
Igor Zalutski4f69bd90025c
diff --git a/docs/agent-sessions/custom-runtimes.mdx b/docs/agent-sessions/custom-runtimes.mdxindex bcfd6b29..6e986924 100644--- a/docs/agent-sessions/custom-runtimes.mdx+++ b/docs/agent-sessions/custom-runtimes.mdx@@ -8,6 +8,8 @@ description: "Package any agent harness as a runtime (coming soon)"A custom runtime is a container image for your own agent harness — anything beyond the built-in `claude` and `codex` runtimes. Once registered, select it per agent with `runtime: "<name>"`; sessions, events, steering, and webhooks work the same way.+The built-in runtimes are themselves thin wrappers around a provider's agent SDK (the Claude Agent SDK, the OpenAI Codex SDK) that conform to the contract below — a custom runtime is the same idea around any harness or SDK you choose.+## Runtime invocationFor each turn, the platform starts your image with the session id, read cursor, events API URL, and a fenced **turn token**. The image must:diff --git a/docs/agent-sessions/runtimes.mdx b/docs/agent-sessions/runtimes.mdxindex 612b0758..ca6e84f4 100644--- a/docs/agent-sessions/runtimes.mdx+++ b/docs/agent-sessions/runtimes.mdx@@ -55,6 +55,8 @@ The runtime, model, and credential have to agree: `runtime: "codex"` needs an `oThe 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.+A runtime is a thin **wrapper around a provider's agent SDK**: `claude` wraps the **Claude Agent SDK**, `codex` wraps the **OpenAI Codex SDK**. The wrapper does the same small job in both cases — read the new input, drive the SDK's loop, translate each step into [session events](/agent-sessions/events), act only through the [sandbox tools](/agent-sessions/runtime-tools), and exit when there's nothing left to do. The built-in runtimes are built exactly this way, and a [custom runtime](/agent-sessions/custom-runtimes) is the same wrapper around any harness you choose.+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