An open-source, faster Devin alternative
TypeScript
docs(labs): add Triggers, Channels, Workspaces coming-soon pages
Igor Zalutski23c6cef65439
diff --git a/docs/agent-sessions/channels.mdx b/docs/agent-sessions/channels.mdxnew file mode 100644index 00000000..efbaf083--- /dev/null+++ b/docs/agent-sessions/channels.mdx@@ -0,0 +1,14 @@+---+title: "Channels"+description: "Talk to a session where people already work — Slack, GitHub (coming soon)"+---++<Note>**Coming soon.** Current thinking, not a shipped contract. 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). Channels connect that same session to a Slack thread or a GitHub PR.</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.++- **Inbound.** A Slack `@mention` or thread reply is verified, de-duplicated, and appended to the session as a [steer](/agent-sessions/messaging) — the same inbound message you can post over the API.+- **Outbound.** The platform projects the session's `user` and `progress` [events](/agent-sessions/events#levels) back to the thread. The agent never calls Slack itself — it appends events; the platform delivers them, durably and idempotently.+- **Additive bindings.** A session has a set of bindings added over its life; it is never typed as "a Slack session" or "a GitHub session." A chat-born session that opens a PR gains a binding to that PR. Routing follows event level — conversation goes to conversation bindings, work product to delivery targets.++A channel is one consumer of the same public API a custom UI uses: post messages in, render the [event stream](/agent-sessions/events) at the level you want, and optionally bind a thread so the platform projects for you.diff --git a/docs/agent-sessions/messaging.mdx b/docs/agent-sessions/messaging.mdxindex c8069b15..c12b8d4c 100644--- a/docs/agent-sessions/messaging.mdx+++ b/docs/agent-sessions/messaging.mdx@@ -44,4 +44,4 @@ Every inbound and outbound message normalizes to this shape. The core fields areTo get a session's output **out**, 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).-<Note>Inbound channels (Slack, GitHub, Jira, email) are coming soon — they map onto this same envelope; today you steer in via the API.</Note>+<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>diff --git a/docs/agent-sessions/runtime-tools.mdx b/docs/agent-sessions/runtime-tools.mdxindex 1e1ace84..cff3eb86 100644--- a/docs/agent-sessions/runtime-tools.mdx+++ b/docs/agent-sessions/runtime-tools.mdx@@ -13,7 +13,7 @@ When you write a prompt for the `claude` [runtime](/agent-sessions/runtimes), it| `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 into the workspace. (Private-repo access — connections, repo catalog, scoped tokens — is coming soon; for launch, point it at a public URL or `git clone` via `bash`.) |+| `use_repo` | Check out a **public** git repository into the workspace. (Private-repo access and prepared [workspaces](/agent-sessions/workspaces) — connections, repo catalog, scoped tokens — are coming soon; for launch, point it at a public URL or `git clone` via `bash`.) |These map to events you can stream: a `bash` run surfaces as an [`exec.completed`](/agent-sessions/events#event-shape) event (`{ command, exit_code, summary }`), with large output available via `content_ref`.diff --git a/docs/agent-sessions/triggers.mdx b/docs/agent-sessions/triggers.mdxnew file mode 100644index 00000000..4fcede79--- /dev/null+++ b/docs/agent-sessions/triggers.mdx@@ -0,0 +1,28 @@+---+title: "Triggers"+description: "Start and resume sessions from external events (coming soon)"+---++<Note>**Coming soon.** Current thinking, not a shipped contract. Today you start a session with [`POST /sessions`](/agent-sessions/api-reference) and steer it with [`POST /messages`](/agent-sessions/messaging); triggers add an event-driven way to do the same.</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.++```toml+[[triggers]]+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.+- **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.++## Connections++Triggers, and the deliveries that carry work back out, run through **connections** — integrations the platform operates, so the agent holds no tokens. Installing the OpenComputer GitHub App is the whole GitHub integration; a Slack connection powers the Slack [channel](/agent-sessions/channels). Model provider keys are connections too.++## 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.++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/workspaces.mdx b/docs/agent-sessions/workspaces.mdxnew file mode 100644index 00000000..6c72ed03--- /dev/null+++ b/docs/agent-sessions/workspaces.mdx@@ -0,0 +1,21 @@+---+title: "Workspaces"+description: "Prepared repo environments, rebuilt on push (coming soon)"+---++<Note>**Coming soon.** Current thinking, not a shipped contract. Today a session works in its [sandbox](/agent-sessions/runtime-tools) and clones a repo on demand; workspaces prepare that environment ahead of time.</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).++```bash+oc workspace create web \+ --repo github.com/acme/web \+ --setup "pnpm i && pnpm build" \+ --pool 1+```++- **Recipe.** One or more repos (each at an optional ref), a `setup` step, and an optional `warm` step to heat caches.+- **Builds.** Rebuilt on every push (or on an interval) into an immutable lineage; a session boots from the latest successful build and pins it. `--pool N` keeps machines pre-booted.+- **Resolution.** A session is not bound to a repo — it resolves which to work in from the triggering event, the conversation, an agent default, or by asking, via a `use_repo` tool. Resolution is lazy and re-resolvable: switch repos mid-session, or open several at once.++Pairs with the scoped, tokenless private-repo access noted in [Runtime tools](/agent-sessions/runtime-tools).diff --git a/docs/docs.json b/docs/docs.jsonindex 7c81b610..c9f88400 100644--- a/docs/docs.json+++ b/docs/docs.json@@ -79,6 +79,9 @@"tag": "Coming soon","expanded": true,"pages": [+ "agent-sessions/triggers",+ "agent-sessions/channels",+ "agent-sessions/workspaces","agent-sessions/artifacts"]}