Skip to content

An open-source, faster Devin alternative

TypeScript

docs: remove refs guidance until supported

Igor Zalutski1263722098c5
diff --git a/docs/agent-sessions/api-reference.mdx b/docs/agent-sessions/api-reference.mdx
index c74a169d..54be4e4d 100644
--- a/docs/agent-sessions/api-reference.mdx
+++ b/docs/agent-sessions/api-reference.mdx
@@ -18,7 +18,7 @@ Base URL `https://api.opencomputer.dev/v3`. Management calls authenticate with y
| `GET /sessions/:id/turns` · `GET …/turns/:turnId` | Per-turn history: timing, usage, error. |
| `POST /sessions/:id/client-tokens` | Mint a client token. |
-`agent` is **required** (create a saved [agent](#agents) first); a resolvable Anthropic [credential](#credentials) is also required (`422 no_credential` otherwise). `key` gives get-or-create (one session per key); a request-level `Idempotency-Key` header makes a keyless create retry-safe. `input` is the task — a string or a full [envelope](/agent-sessions/messaging#message-envelope) (structured context rides `input.refs`: `repo`/`branch`/`commit`/`issue`/…). `limits` `{ tokens, turn_seconds, turns }` are **non-monetary** — token budget, per-turn wall-clock, auto-run count; hitting one ends the turn with a matching `last_turn.yield_reason`. Destinations on an idempotent create-replay are ignored — manage them via the [destinations API](#destinations).
+`agent` is **required** (create a saved [agent](#agents) first); a resolvable Anthropic [credential](#credentials) is also required (`422 no_credential` otherwise). `key` gives get-or-create (one session per key); a request-level `Idempotency-Key` header makes a keyless create retry-safe. `input` is the task — a string or a full [envelope](/agent-sessions/messaging#message-envelope). For the managed `claude` runtime, put all task-critical context in the task text. `limits` `{ tokens, turn_seconds, turns }` are **non-monetary** — token budget, per-turn wall-clock, auto-run count; hitting one ends the turn with a matching `last_turn.yield_reason`. Destinations on an idempotent create-replay are ignored — manage them via the [destinations API](#destinations).
Client tokens accept `scopes?` (subset of `read`, `steer`) and `ttl?` seconds, clamped to 60–86400.
@@ -53,7 +53,7 @@ Filter events by `type` (exact or `prefix.*`), `turn_id`, and `limit`. `GET …/
```
Event = {
- id, seq, ts, session, actor, type, level, body, refs, turn_id?,
+ id, seq, ts, session, actor, type, level, body, turn_id?,
content_ref?, body_truncated?, body_bytes?
}
```
diff --git a/docs/agent-sessions/artifacts.mdx b/docs/agent-sessions/artifacts.mdx
index 7e3422ba..80f9ca28 100644
--- a/docs/agent-sessions/artifacts.mdx
+++ b/docs/agent-sessions/artifacts.mdx
@@ -3,7 +3,7 @@ title: "Artifacts & previews"
description: "A session's published outputs — live previews and durable files (coming soon)"
---
-<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), and events can carry [`refs.artifacts[]`](/agent-sessions/events).</Note>
+<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>
**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.
diff --git a/docs/agent-sessions/events.mdx b/docs/agent-sessions/events.mdx
index 310b394d..6c2ac74e 100644
--- a/docs/agent-sessions/events.mdx
+++ b/docs/agent-sessions/events.mdx
@@ -9,8 +9,7 @@ Every session step is an **event** appended in order. Read events, stream them l
{ "id": "evt_…", "seq": 12, "ts": "…", "session": "sess_…",
"actor": { "id": "agent", "type": "agent" },
"type": "agent.message", "level": "user",
- "body": { "text": "3 tests fail in auth.spec.ts" },
- "refs": {} }
+ "body": { "text": "3 tests fail in auth.spec.ts" } }
```
- **`id`** — the event's own unique id (`evt_…`). The client idempotency key for steering is separate (deduped per session — see [steering](/agent-sessions/messaging)).
@@ -18,7 +17,7 @@ Every session step is an **event** appended in order. Read events, stream them l
- **`type`** — the one discriminator: a namespaced string (`agent.message`, `turn.completed`, …). See below.
- **`actor`** — who produced it: `{ id, display?, type: "human" | "agent" | "system" }`.
- **`level`** — visibility; see below.
-- **`body` / `refs`** — payload and related ids.
+- **`body`** — the event payload.
Inbound and outbound messages share one [envelope](/agent-sessions/messaging#message-envelope) shape.
@@ -40,7 +39,7 @@ Treat the top-level **`type`** as the stable discriminator — **switch on it, d
**Correlate a steer to its turn.** Steers 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.
-**Large output.** 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) ride a forward `refs.artifacts[]`, with a first-class [artifacts & previews API](/agent-sessions/artifacts) **coming soon**. `refs` also carries optional correlation/evidence keys (`trace_id`, `sources[]`).
+**Large output.** 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) have a first-class [artifacts & previews API](/agent-sessions/artifacts) **coming soon**.
## Visibility levels
diff --git a/docs/agent-sessions/messaging.mdx b/docs/agent-sessions/messaging.mdx
index 66a7aedc..92aeb151 100644
--- a/docs/agent-sessions/messaging.mdx
+++ b/docs/agent-sessions/messaging.mdx
@@ -34,7 +34,6 @@ Every inbound and outbound message normalizes to this shape. The core fields are
"actor": { "id": "client:user-7", "display": "Ada", "type": "human" },
"conversation": { "source": "client", "ref": "thread-42" },
"text": "also check the CI config",
- "refs": {},
"ts": "2026-06-18T12:00:00Z",
"raw": {}
}
@@ -44,7 +43,6 @@ Every inbound and outbound message normalizes to this shape. The core fields are
- **`actor`** — who sent it (`human` | `agent` | `system`), namespaced.
- **`conversation`** — an opaque reply/routing anchor.
- **`text`** — the content the agent reads (or that you receive).
-- **`refs`** — structured context the agent shouldn't have to infer from prose. Blessed keys: `repo`, `branch`, `commit`, `ref`, `issue`, `pr` (plus your own). Pass them on the initial `input` so a coding agent knows its target.
- **`raw`** — untouched original payload; optional, never read by the core.
To deliver a session's output, register a webhook destination. Deliveries carry the full [Event](/agent-sessions/events) (a message event's `body` is this envelope) — see [Webhooks](/agent-sessions/webhooks).
diff --git a/docs/agent-sessions/prompting.mdx b/docs/agent-sessions/prompting.mdx
index 09271dd8..d2884e1e 100644
--- a/docs/agent-sessions/prompting.mdx
+++ b/docs/agent-sessions/prompting.mdx
@@ -67,31 +67,6 @@ User communication:
<Note>First-class preview artifacts are coming soon. Until then, treat preview instructions as a convention for your app and event renderer, not as a guaranteed platform event.</Note>
-## Pass structured context
-
-Do not bury machine-readable context in prose. Pass it in the message envelope or session input so your prompt can tell the agent to rely on it.
-
-```json
-{
- "agent": "agt_...",
- "input": {
- "text": "Review this pull request and summarize risky changes.",
- "refs": {
- "repo": "https://github.com/acme/app",
- "branch": "feature/billing",
- "pr": "128"
- }
- }
-}
-```
-
-Then include a rule in the prompt:
-
-```txt
-Treat refs.repo, refs.branch, refs.commit, refs.issue, and refs.pr
-as authoritative task context. Do not infer those values from prose.
-```
-
## Renderable outputs
Design your prompt around the UI you want:
diff --git a/docs/agent-sessions/runtime-tools.mdx b/docs/agent-sessions/runtime-tools.mdx
index afc9d8a6..3752527f 100644
--- a/docs/agent-sessions/runtime-tools.mdx
+++ b/docs/agent-sessions/runtime-tools.mdx
@@ -39,7 +39,7 @@ 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, point it at a **public** one (`use_repo`, or `bash` + `git clone`); pass the target in [`input.refs`](/agent-sessions/messaging) (`repo`, `branch`, `commit`) rather than burying it in prose. (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 use `use_repo` or `bash` + `git clone`. 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.