Skip to content

An open-source, faster Devin alternative

TypeScript

docs: remove agent sessions prompting page

Igor Zalutskibb73443f718a
diff --git a/docs/agent-sessions/overview.mdx b/docs/agent-sessions/overview.mdx
index b6674dd4..8ac46dd9 100644
--- a/docs/agent-sessions/overview.mdx
+++ b/docs/agent-sessions/overview.mdx
@@ -62,8 +62,8 @@ Use sessions for long-running or interactive agents. For a one-shot command in a
<Card title="Quickstart" icon="bolt" href="/agent-sessions/quickstart">
Start a session, stream events, and steer it with concise REST examples.
</Card>
- <Card title="Prompting" icon="file-lines" href="/agent-sessions/prompting">
- Start from a prompt template designed for useful event streams and final results.
+ <Card title="Events" icon="timeline" href="/agent-sessions/events">
+ Event shape, visibility levels, cursors, and resume behavior.
</Card>
<Card title="Session lifecycle" icon="book" href="/agent-sessions/sessions">
Statuses, events, results, and limits.
diff --git a/docs/agent-sessions/prompting.mdx b/docs/agent-sessions/prompting.mdx
deleted file mode 100644
index d2884e1e..00000000
--- a/docs/agent-sessions/prompting.mdx
+++ /dev/null
@@ -1,101 +0,0 @@
----
-title: "Prompting agents"
-description: "Write Claude runtime prompts that produce reliable sessions"
----
-
-In Durable Agent Sessions, the prompt shapes the event stream your UI renders, when the agent asks for help, what it treats as done, and how easy failures are to debug.
-
-Use a prompt that tells the agent how to work in the sandbox, how to communicate progress, and how to end each turn.
-
-## Coding-agent prompt
-
-This is a production-minded baseline for coding agents. Adapt the product-specific section, but keep the operating rules explicit.
-
-```txt
-You are a coding agent running in an OpenComputer Durable Agent Session.
-
-You work in a remote Linux sandbox. You cannot access the user's machine.
-Use only the provided tools for side effects:
-- bash: run commands in the sandbox
-- read: inspect files
-- write: create or edit files
-- ls: list directories
-- say: send concise progress updates and final results to the user
-- ask: request a decision only when you are genuinely blocked
-
-Operating rules:
-- Work in /workspace unless the user gives a different path.
-- Prefer small, verifiable changes over large rewrites.
-- Run the relevant tests or commands before saying the work is done.
-- Keep commands idempotent where possible. A turn may be retried after a crash.
-- Do not hide failures. Inspect output, fix the issue, and retry.
-- If blocked, ask one clear question and stop.
-- Otherwise choose a reasonable default and continue.
-
-Communication rules:
-- Use say for short progress updates when a meaningful step starts or finishes.
-- Do not narrate private chain-of-thought.
-- Report observable work: files changed, commands run, results found.
-- End with a final say: what changed and how to verify it.
-- If blocked, end with ask and state exactly what information or approval you need.
-
-Task:
-{{TASK}}
-```
-
-## App-builder variant
-
-For a Lovable-style builder, add a clear build target and preview convention:
-
-```txt
-You are an app-building agent.
-Build a working web app in your sandbox.
-Keep improving it as the user chats with you.
-
-Build rules:
-- Work in /workspace.
-- For a new app, scaffold a small React app with Vite.
-- Install dependencies, implement the request, and keep the app runnable.
-- Run the dev server on 0.0.0.0:3000 when the app is ready.
-- Keep each follow-up change small, then verify the app still starts.
-
-User communication:
-- Say useful milestones: scaffolding, installing, editing, running, verifying.
-- When the app is running, say what was built and what the user can ask for next.
-- Ask only when proceeding would likely waste the user's time.
-```
-
-<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>
-
-## Renderable outputs
-
-Design your prompt around the UI you want:
-
-| UI surface | Prompt instruction |
-| --- | --- |
-| Chat bubble | "Use `say` for user-facing answers and final results." |
-| Activity feed | "Say short progress updates only at meaningful milestones." |
-| Debug console | "Run commands with clear working directories and concise output." |
-| Approval flow | "Use `ask` only when blocked by a user decision." |
-| Result page | "End with a final `say` summarizing result, verification, and next action." |
-
-Your renderer should still switch on [event `type`](/agent-sessions/events#event-shape), not on the prompt's wording.
-
-## Avoid these prompt mistakes
-
-- Do not say "ask me if anything is unclear" without also saying when to proceed. That causes avoidable pauses.
-- Do not request verbose narration. It makes `progress` streams noisy.
-- Do not tell the agent to use local machine paths. Its tools operate in the sandbox.
-- Do not rely on unstructured final prose as your only completion signal. Await `turn.completed`.
-- Do not assume side effects run once. Use idempotency keys in your app and ask the agent to make external actions idempotent.
-
-## Next steps
-
-<CardGroup cols={2}>
- <Card title="Runtime tools" icon="toolbox" href="/agent-sessions/runtime-tools">
- The exact tools the Claude runtime can use.
- </Card>
- <Card title="Events" icon="timeline" href="/agent-sessions/events">
- Progress updates, tool calls, results, and errors in the log.
- </Card>
-</CardGroup>
diff --git a/docs/agent-sessions/quickstart.mdx b/docs/agent-sessions/quickstart.mdx
index a783e153..23d26e28 100644
--- a/docs/agent-sessions/quickstart.mdx
+++ b/docs/agent-sessions/quickstart.mdx
@@ -9,8 +9,8 @@ Build the smallest useful Durable Agent Sessions integration: define an agent, s
<Card title="Complete example app" icon="github" href="https://github.com/diggerhq/oc-sessions-demos">
A Lovable-style app builder using the same API calls.
</Card>
- <Card title="Prompt template" icon="file-lines" href="/agent-sessions/prompting">
- A production-minded Claude runtime prompt you can adapt.
+ <Card title="API reference" icon="code" href="/agent-sessions/api-reference">
+ Endpoint details and response shapes.
</Card>
</CardGroup>
@@ -166,8 +166,8 @@ Response:
<Card title="Events" icon="timeline" href="/agent-sessions/events">
Event shape, levels, cursors, and resume behavior.
</Card>
- <Card title="Prompting" icon="file-lines" href="/agent-sessions/prompting">
- Write prompts that produce usable event streams and final results.
+ <Card title="Runtime tools" icon="toolbox" href="/agent-sessions/runtime-tools">
+ The tools the managed Claude runtime can use.
</Card>
<Card title="Example app" icon="github" href="https://github.com/diggerhq/oc-sessions-demos">
Fork a complete app-builder implementation.
diff --git a/docs/agent-sessions/runtime-tools.mdx b/docs/agent-sessions/runtime-tools.mdx
index 3752527f..a86868ae 100644
--- a/docs/agent-sessions/runtime-tools.mdx
+++ b/docs/agent-sessions/runtime-tools.mdx
@@ -42,5 +42,3 @@ The agent's final `say` is the session result. `ask` ends the turn with `yield_r
- 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.
-
-For a complete starting point, use the [prompt template](/agent-sessions/prompting). It includes operating rules for progress updates, verification, idempotency, and final results.
diff --git a/docs/docs.json b/docs/docs.json
index a8a7ff68..643846ef 100644
--- a/docs/docs.json
+++ b/docs/docs.json
@@ -64,7 +64,6 @@
"pages": [
"agent-sessions/overview",
"agent-sessions/quickstart",
- "agent-sessions/prompting",
"agent-sessions/agents",
"agent-sessions/sessions",
"agent-sessions/events",