An open-source, faster Devin alternative
TypeScript
docs+sdk: accuracy pass for codex-global + the reshape
Igor Zalutskieca6e9c9f79f
diff --git a/docs/agent-sessions/agents.mdx b/docs/agent-sessions/agents.mdxindex eafa7da0..e1ab1c99 100644--- a/docs/agent-sessions/agents.mdx+++ b/docs/agent-sessions/agents.mdx@@ -48,6 +48,6 @@ 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). A `runtime` / `model` / credential mismatch is rejected when you create or edit the agent, never mid-session.+`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 or runtime mid-session is coming soon; for now, new sessions pick up the agent's current `runtime` and `model`.</Note>+<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 4f51ea68..4d96f904 100644--- a/docs/agent-sessions/api-reference.mdx+++ b/docs/agent-sessions/api-reference.mdx@@ -234,7 +234,7 @@ Delivery = {</Tabs>-Create body: `name`, `prompt`, `model`, `runtime?` (`claude` | `codex`), `key?`, `credential?`, `limits?`. Patch accepts `prompt?`, `model?`, `runtime?`, `key?`, `credential?`, and `limits?`. The `runtime` / `model` / credential provider must agree (`claude`↔`anthropic/…`, `codex`↔`openai/…`) — a mismatch is rejected at create or patch.+Create body: `name`, `prompt`, `model`, `runtime?` (`claude` | `codex`), `key?`, `credential?`, `limits?`. Patch accepts `prompt?`, `model?`, `key?`, `credential?`, and `limits?` — **not `runtime`, which is fixed at creation**. The `runtime` / `model` / credential provider must agree (`claude`↔`anthropic/…`, `codex`↔`openai/…`); this is validated at create, and a patched `model`/`credential` must stay within the runtime's provider.Pass `key` **or** `credential` (or neither → org default). The agent's `limits` are the defaults for its sessions; a session's own `limits` override. Each agent has a monotonic `revision` (bumped on PATCH) that sessions pin in `agent_snapshot.revision`, so you can tell which version produced a run.diff --git a/docs/agent-sessions/runtime-tools.mdx b/docs/agent-sessions/runtime-tools.mdxindex 0e425965..6cf0fbb6 100644--- a/docs/agent-sessions/runtime-tools.mdx+++ b/docs/agent-sessions/runtime-tools.mdx@@ -14,11 +14,10 @@ When you write a prompt for a [runtime](/agent-sessions/runtimes) (`claude` or `| `read` | Read a file from the sandbox. || `write` | Write a file to the sandbox. || `ls` | List a directory in the sandbox. |-| `use_repo` | Check out a public git repository. |`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`.-For launch, `use_repo` works with public repos. Private-repo access and prepared [workspaces](/agent-sessions/workspaces) are coming soon; until then, use a public URL or `git clone` via `bash`.+To work on a repo, the agent `git clone`s it via `bash` — the sandbox has open outbound internet (below). Prepared [workspaces](/agent-sessions/workspaces) and private-repo access are coming soon.<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>@@ -40,6 +39,6 @@ The agent's final `say` is the session result. `ask` ends the turn with `yield_r## Prompt guidance- Tell the agent to do all work in the sandbox via `bash`/`read`/`write` — it can't touch your machine.-- To work on a repo, include the repo URL and branch or commit in the task text, then have the agent use `use_repo` or `bash` + `git clone`. Public repos work today; private-repo connections are coming soon.+- To work on a repo, include the repo URL and branch or commit in the task text, then have the agent `git clone` it with `bash`. Public repos work today; private-repo connections are coming soon.- Have it `say` a clear final result — that's what `GET /sessions/:id/result` returns.- Have it `ask` only when it genuinely needs a decision; otherwise it should proceed.diff --git a/sdks/typescript/package-lock.json b/sdks/typescript/package-lock.jsonindex e5c80bce..2c2de29f 100644--- a/sdks/typescript/package-lock.json+++ b/sdks/typescript/package-lock.json@@ -1,12 +1,12 @@{"name": "@opencomputer/sdk",- "version": "0.7.2",+ "version": "0.7.3","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "@opencomputer/sdk",- "version": "0.7.2",+ "version": "0.7.3","license": "MIT","devDependencies": {"@types/node": "^25.3.0",diff --git a/sdks/typescript/package.json b/sdks/typescript/package.jsonindex 3b73e6b5..82fb644b 100644--- a/sdks/typescript/package.json+++ b/sdks/typescript/package.json@@ -1,6 +1,6 @@{"name": "@opencomputer/sdk",- "version": "0.7.2",+ "version": "0.7.3","description": "TypeScript SDK for OpenComputer - cloud sandbox platform","type": "module","main": "dist/index.js",diff --git a/sdks/typescript/src/agents/agents.ts b/sdks/typescript/src/agents/agents.tsindex 070da0eb..260f8792 100644--- a/sdks/typescript/src/agents/agents.ts+++ b/sdks/typescript/src/agents/agents.ts@@ -6,7 +6,7 @@ export interface CreateAgentParams {prompt: string;model: string;runtime?: string;- /** Anthropic key, stored as a sealed credential. Or pass `credential`, or rely on the org default. */+ /** Model provider key for the runtime (Anthropic for `claude`, OpenAI for `codex`), stored as a sealed credential. Or pass `credential`, or rely on the org default. */key?: string;credential?: string;limits?: Limits;diff --git a/sdks/typescript/src/agents/credentials.ts b/sdks/typescript/src/agents/credentials.tsindex c068d15f..5887e76d 100644--- a/sdks/typescript/src/agents/credentials.ts+++ b/sdks/typescript/src/agents/credentials.ts@@ -2,14 +2,14 @@ import type { Http } from "./http.js";import type { Credential } from "./types.js";export interface CreateCredentialParams {- /** Defaults to `anthropic`. */- provider?: "anthropic" | (string & {});+ /** The model provider this key is for (`anthropic` for the `claude` runtime, `openai` for `codex`). Defaults to `anthropic`. */+ provider?: "anthropic" | "openai" | (string & {});/** Write-only — never returned by the API. */key: string;name?: string;}-/** Provider keys (e.g. Anthropic), stored in the secret store; sessions run on them. */+/** Provider keys (e.g. Anthropic, OpenAI), stored in the secret store; sessions run on them. */export class Credentials {constructor(private readonly http: Http) {}