Skip to content

An open-source, faster Devin alternative

TypeScript

docs: explain Flue repository deployment

Igor Zalutski47d997e61f33
diff --git a/docs/agent-sessions/agents.mdx b/docs/agent-sessions/agents.mdx
index ff2eb434..40d085a1 100644
--- a/docs/agent-sessions/agents.mdx
+++ b/docs/agent-sessions/agents.mdx
@@ -6,7 +6,7 @@ description: "Reusable agent configuration"
An **agent** is a reusable identity, runtime, model, and deployed behavior. Every [session](/agent-sessions/sessions) runs on an agent, so create one first, then start as many sessions on it as you like. For the built-in runtimes, behavior is `prompt` plus optional skills and is frozen into independently routable [revisions](/agent-sessions/revisions). A [Flue](/agent-sessions/flue) agent instead carries its instructions, tools, and packaged skills in a compiled Flue app.
-<Note>You can create and edit built-in runtime agents in the [dashboard](https://app.opencomputer.dev). Flue agents are created and deployed from their app with `oc agent deploy`, then appear in the same agent and session views.</Note>
+<Note>You can create and edit built-in runtime agents in the [dashboard](https://app.opencomputer.dev). For Flue, choose **Create agent → Import from GitHub** to build an existing repository, or deploy a local checkout with `oc agent deploy`. Both paths produce the same deployment and revision history.</Note>
<CodeGroup>
@@ -52,7 +52,7 @@ For a built-in runtime, the only behavior an agent needs is a **model** and a **
|---|---|---|
| **Default agent** | `name` + `model` (+ a prompt) | a working agent on the default runtime — no setup |
| **+ Skills** | [`SKILL.md` folders](/agent-sessions/skills) (upload a `.zip`, or include in a repo) | reusable procedures the agent loads when relevant — still the default runtime |
-| **+ Deploy from a repo / CLI** | keep the agent's `prompt.md` + `skills/` in Git and [push to deploy](/agent-sessions/revisions#deploy-from-a-repo) | versioned, push-to-deploy, staged revisions + rollback — still the default runtime |
+| **+ Deploy from a repo / CLI** | keep built-in behavior in `prompt.md` + `skills/`, or keep a Flue app in a self-contained npm root | versioned [deployments and revisions](/agent-sessions/revisions); Flue repository imports also include durable build logs |
| **+ Custom runtime** *(coming soon)* | bring your own runtime image | full control of the execution environment |
At every built-in rung the agent is a small directory, at most `agent.toml` + `prompt.md` + `skills/`. You can stop at any rung; most agents never go past skills.
diff --git a/docs/agent-sessions/api-reference.mdx b/docs/agent-sessions/api-reference.mdx
index fc9f6d32..64f37dbd 100644
--- a/docs/agent-sessions/api-reference.mdx
+++ b/docs/agent-sessions/api-reference.mdx
@@ -19,6 +19,7 @@ const session = await oc.sessions.get("ses_..."); // server, org key
# the oc CLI authenticates with OPENCOMPUTER_API_KEY (or `oc login`); --json on any command
oc whoami
oc agent deploy # deploy the agent directory in the cwd
+oc agent build --dir . --check-only --json # validate a Flue app without credentials or deployment
```
<Note>The SDK uses **camelCase** for fields and params (`last_turn` → `lastTurn`, `idempotency_key` → `idempotencyKey`); the wire shapes below are raw JSON. Opaque blobs — session `metadata`, event `refs`/`raw` — pass through **verbatim**; everything else (incl. event `body`) is camelCased. The CLI prints a table, or raw JSON with `--json`.</Note>
@@ -264,6 +265,7 @@ Body: `{ text, idempotency_key? }` or `{ envelope }`. Returns `202` (or `200` on
| Method · Path | Purpose |
| --- | --- |
| `POST /agents` | Create a reusable agent. |
+| `POST /agents/import` | Atomically create a Flue agent from an inspected GitHub source and enqueue its first deployment. |
| `GET /agents/:id` · `GET /agents` | Fetch / list. |
| `PATCH /agents/:id` | Update bindings; `prompt`/`model` deploy a revision. |
| `DELETE /agents/:id` | Delete an agent. |
@@ -287,9 +289,63 @@ Body: `name`, `prompt`, `model`, `runtime?` (`claude`|`codex`), `key?`, `credent
`POST /agents` is **idempotent by `name`**: fresh → `201`, matching config → `200`, differing → `409`. Editing `prompt`/`model` (here or via [deploy](#deployments-and-revisions)) creates a **revision**; the agent keeps a pointer to its **active revision** (`GET /agents/:id` → `active_revision`) and sessions pin it. The agent row holds only identity + bindings.
+`POST /agents/import` is the Flue repository-import command described below. It deliberately creates
+an agent with no active revision; revision #1 appears only after the queued build and live deployment
+verify successfully.
+
## Deployments and revisions
-You **deploy** an agent's behavior (`prompt` + `model` + `skills`); each deployment produces an immutable **revision**, and the **active revision** is what new sessions use. See the [Deployments & revisions guide](/agent-sessions/revisions).
+You **deploy** an agent's behavior. A deployment is a time-aware attempt; only a successful attempt
+produces an immutable **revision**. Failed attempts and their logs remain in deployment history. See
+the [Deployments & revisions guide](/agent-sessions/revisions).
+
+### Import a Flue repository
+
+Repository inspection and import are currently REST/dashboard surfaces. Inspection resolves the
+moving production branch to one commit and validates bounded metadata without executing repository
+code:
+
+```http REST API
+POST /github/deploy-app/inspect
+Authorization: Bearer $OPENCOMPUTER_API_KEY
+
+{
+ "repo": "repo_...",
+ "path": "",
+ "production_ref": "main"
+}
+```
+
+The response includes `repository`, normalized `root`, `production_ref`, exact `sha`, the manifest
+projection (`entrypoint`, `model`, `runtime`, non-secret `vars`), package and lockfile metadata,
+published builder Node, source counts, `variable_names`, and safe `warnings`. It never includes a
+repository token or source bytes.
+
+After review, submit the same source coordinates with a human-readable agent name. The name is
+independent of the Flue entrypoint in `agent.toml`.
+
+```http REST API
+POST /agents/import
+Authorization: Bearer $OPENCOMPUTER_API_KEY
+Idempotency-Key: <stable-key-for-this-import>
+
+{
+ "name": "Support triage",
+ "credential": "managed",
+ "source": {
+ "type": "github",
+ "repo": "repo_...",
+ "path": "",
+ "production_ref": "main"
+ }
+}
+```
+
+The server repeats authoritative inspection, then creates `{ agent, source, deployment }` atomically.
+The deployment starts at `accepted`; the agent is visible but cannot start sessions until it reaches
+`ready`. Reusing the same idempotency key and command returns the same import; reusing it with
+different fields returns `409 idempotency_conflict`. A name or repository-root conflict also returns
+`409` and identifies the existing agent when available.
### Deploy
@@ -310,7 +366,9 @@ You **deploy** an agent's behavior (`prompt` + `model` + `skills`); each deploym
| Method · Path | Purpose |
| --- | --- |
| `POST /agents/:id/deployments` | Deploy → `{ deployment }`. Body: `{ input, activate?=true, idempotency_key?, client_context? }`. |
-| `GET /agents/:id/deployments` · `…/:deploymentId` | History · one deployment (poll async to `ready`\|`failed`). |
+| `GET /agents/:id/deployments?before=&limit=` | Newest-first history with an opaque `next_cursor`. |
+| `GET /agents/:id/deployments/:deploymentId` | One attempt; poll asynchronous states until terminal. |
+| `GET /agents/:id/deployments/:deploymentId/logs?after=&limit=` | Ordered durable log chunks with opaque resume cursors. |
</Tab>
@@ -319,24 +377,41 @@ You **deploy** an agent's behavior (`prompt` + `model` + `skills`); each deploym
| Command | Purpose |
| --- | --- |
| `oc agent deploy [dir] [--agent <id\|name>] [--no-activate]` | Bundle a local directory → inline deployment. |
+| `oc agent build --dir <dir> [--check-only] [--target cloudflare] [--output <dir>]` | Validate or build a Flue artifact without fetching, installing, authenticating, or deploying. |
| `oc agent deployments [--agent <id>]` · `oc agent deployments get <id>` | History · one deployment. |
</Tab>
</Tabs>
-`input`: `{ type:"inline", prompt, model?, skills?, runtime? }` (the **complete** behavior — omitted `skills` = none) **or** `{ type:"github", ref?, sha? }` (deploys the [linked repo](#deploy-from-a-repo); `repo`/`path` from the link). `activate:false` **stages** it — but only for `inline`; `github` deploys are **branch-driven** (the production branch activates, others stage) so `activate` is ignored. Inline = sync (`ready` + `revision_id`); GitHub = async (`accepted`, then poll to `ready`). `POST …/revisions` is inline-only sugar.
+`input`: `{ type:"inline", prompt, model?, skills?, runtime? }` (the **complete** built-in
+behavior — omitted `skills` = none) **or** `{ type:"github", ref?, sha? }` (deploys an already-linked
+repository; `repo`/`path` come from the server-owned link). `activate:false` stages an inline built-in
+deployment. Built-in GitHub links remain branch-driven. A new Flue repository agent instead starts
+with [`POST /agents/import`](#import-a-flue-repository); its first profile deploys only an explicitly
+requested production-branch head and has no preview/staged Worker. `POST …/revisions` is inline-only
+sugar.
**`Deployment`**
| Field | Notes |
|---|---|
-| `id` `created_at` | |
-| `state` | `accepted` (async — queued for the deploy worker) → terminal `ready`; other terminals: `failed`, `superseded` (a newer deploy won), `skipped` (content unchanged) |
-| `result` | `created · skipped · superseded · failed` (`null` until terminal) |
-| `revision_id` | the revision it produced (`null` until `ready`) |
-| `active` | whether that revision is the active one |
-| `source?` `error?` | provenance · failure detail |
+| `id` `created_at` `updated_at` | Attempt identity and timestamps. |
+| `state` `phase` `terminal` | Internal state plus stable UI phase. Repository states: `accepted`, `queued`, `fetching`, `validating`, `installing`, `building`, `uploading`, `deploying`, `verifying`; terminals: `ready`, `failed`, `canceled`, `superseded`, `skipped`. |
+| `result` `error_class` `error?` | Terminal outcome and bounded, redacted failure detail. |
+| `revision_id` `revision?` `active` | Successful revision relation; absent for an unsuccessful attempt. |
+| `source_relation?` | Repository id/name, path, production ref, exact SHA, and commit URL. |
+| `build?` `configuration?` | Safe builder/artifact metadata and non-secret runtime configuration; variables are names only. |
+| `timing` | Accepted/started/finished coordinates plus queue/run/total durations. |
+| `log_bytes` `log_truncated` | Bounded log accounting. |
+| `live_touched` `agent_live?` | Whether deployment crossed the live Worker boundary and the current guarded/verified state. |
+| `allowed_actions` | Server-derived actions such as `view_commit`, `deploy_latest`, `open_agent`, or `start_session`. |
+
+List returns `{ data, next_cursor }`. Log reads return
+`{ data: [{ seq, cursor, recorded_at, phase, stream, chunk }], next_cursor, has_more }`; treat `seq`
+and both cursors as opaque strings. Continue with `after=next_cursor` until `has_more` is false, then
+poll again while the deployment is nonterminal. Source archives, bundles, credentials, raw provider
+responses, and operator telemetry are never projected through these APIs.
### Revisions, rollback & promote
diff --git a/docs/agent-sessions/flue.mdx b/docs/agent-sessions/flue.mdx
index f62fd6e6..9db7f5a6 100644
--- a/docs/agent-sessions/flue.mdx
+++ b/docs/agent-sessions/flue.mdx
@@ -14,7 +14,7 @@ each deployment includes the exact Flue version installed in your app.
application Flue builds and connects it to OpenComputer agents, sessions, events, steering, model
billing, and optional sandboxes.
-Template: [`diggerhq/oc-flue-starter`](https://github.com/diggerhq/oc-flue-starter)
+Starter: [`diggerhq/oc-flue-starter`](https://github.com/diggerhq/oc-flue-starter) · [Fork on GitHub](https://github.com/diggerhq/oc-flue-starter/fork)
## How Flue differs from the built-in runtimes
@@ -72,7 +72,39 @@ consumer view used by the dashboard, API, and webhooks. OpenComputer resumes pro
cursor after an interruption, so clients do not need to understand Flue submission ids or stream
offsets.
-## Quickstart
+## Deploy from GitHub
+
+The shortest path for an existing Flue app is the dashboard:
+
+1. Fork the [Flue starter](https://github.com/diggerhq/oc-flue-starter/fork), or push your own app to GitHub.
+2. Open **Agents → Create agent → Import from GitHub**.
+3. Install the OpenComputer GitHub App on the repository, then select the repository, production branch, and root directory.
+4. Inspect the exact commit OpenComputer detected. Give the OpenComputer agent a human-readable name; it may differ from the `agent.toml` Flue entrypoint.
+5. Choose **Deploy agent**. The deployment page follows source, install, build, artifact, deploy, and verify work and keeps the log if a phase fails.
+
+The selected root is its own build context and must contain `agent.toml`, `package.json`, and a
+committed `package-lock.json`. The package must declare a Node engine compatible with the exact
+builder version shown during inspection and a semver dependency on the Flue CLI. npm workspaces,
+files above the selected root, private registries, submodules, Git LFS, custom install/build
+commands, and build-time secrets are not supported in the first repository-build profile.
+
+OpenComputer resolves the selected branch to one commit, fetches only that tracked tree in a
+short-lived Git sandbox, and transfers tokenless source to a separate build sandbox. The build runs
+fixed `npm ci --no-audit --no-fund` and offline `oc agent build` commands. Repository code receives
+public-Internet-only egress for npm, but no GitHub token, OpenComputer key, model credential,
+Workers credential, secret store, inbound port, or preview URL.
+
+<Note>
+Repository import currently creates the initial deployment from the selected production branch.
+Automatic deployment of later pushes is not enabled in this first release; return to the agent and
+deploy the latest branch head, or use the CLI path below, after changing the repository.
+</Note>
+
+If install or build fails, the agent remains visible but undeployed: it has no usable revision and
+cannot start a session. Open the failed deployment for its persisted error summary and bounded log,
+fix the repository, and deploy again. The first successful deployment creates revision **#1**.
+
+## Deploy from your machine
Requirements: Node 22.19 or newer, the `oc` CLI, and an OpenComputer organization with Managed model
access.
@@ -95,6 +127,25 @@ Continue the session with `oc session steer <session-id> "..."`, inspect it with
`oc session logs <session-id>`, or open it in the
[dashboard](https://app.opencomputer.dev).
+### Validate or build without deploying
+
+The CLI exposes the same credential-free artifact builder used by managed repository builds:
+
+```sh
+# Reads and validates source without installing dependencies or running repository code.
+oc agent build --dir . --check-only --json
+
+npm ci
+oc agent build \
+ --dir . \
+ --target cloudflare \
+ --output /tmp/flue-build \
+ --json
+```
+
+The full command writes `bundle.tgz` and `deployment.json`. It does not fetch source, install
+dependencies, authenticate, upload, or deploy; `npm ci` is intentionally a separate step.
+
## Add OpenComputer to a Flue app
Install the integration alongside Flue:
@@ -267,6 +318,11 @@ are reserved for the platform. Never put a secret in `agent.toml` or source code
## Deployment and revision behavior
+A **deployment** is one time-aware attempt and can fail. A **revision** exists only after that
+attempt verifies successfully. Managed repository deployments persist one chronological log across
+the `queued`, `fetching`, `validating`, `installing`, `building`, `uploading`, `deploying`, and
+`verifying` states. Refreshing the dashboard does not lose that log.
+
`oc agent deploy` performs these operations:
1. Scans the source tree for credential-shaped values.
@@ -311,6 +367,8 @@ and dashboard as the other runtimes. The important differences are:
connected to OpenComputer yet.
- Repository sources, checkout, pull-request publishing, watches, and repo-backed workspaces are not
supported for Flue sessions.
+- Repository deployment accepts one self-contained npm root with a committed npm lockfile. Initial
+ dashboard import is supported; automatic deployment on later Git pushes is not enabled yet.
- File and image attachments are not supported.
- The managed gateway currently supports Anthropic models and requires Managed model access for the
organization. Per-session model selection is not supported.
@@ -322,6 +380,11 @@ and dashboard as the other runtimes. The important differences are:
## Troubleshooting
+- **Repository inspection fails**: confirm the GitHub App can read the repository, the selected
+ branch and root exist, and the root contains `agent.toml`, `package.json`, and `package-lock.json`.
+- **Managed install or build fails**: open the deployment detail page. The safe error summary remains
+ available even if log output was truncated; fix the source and deploy the production branch again.
+
- **`flue build` is unavailable**: run `npm install` with Node 22.19 or newer. `oc agent deploy` never
downloads a missing build tool for you.
- **Credential scan refuses the deploy**: remove the reported key from source and store application
diff --git a/docs/agent-sessions/repos.mdx b/docs/agent-sessions/repos.mdx
index d1e6131b..16ab833e 100644
--- a/docs/agent-sessions/repos.mdx
+++ b/docs/agent-sessions/repos.mdx
@@ -17,6 +17,11 @@ agent edits files and calls the
OpenComputer commits and opens the PR outside the agent sandbox with a fresh, write-scoped
token.
+The same repository identity also powers [Flue repository deployment](/agent-sessions/flue#deploy-from-github),
+but the destination is different. Session sources copy code into a running agent's hands sandbox;
+a Flue deployment resolves one production commit, hands tokenless source to a separate build
+sandbox, and deploys the resulting artifact. Repository credentials reach neither destination.
+
<Note>**Preview** — APIs may change before general availability.</Note>
## Concepts
@@ -28,6 +33,7 @@ token.
| Repo | A stable owner/repo handle. | No tokens, private keys, or session refs. |
| Source | `ref`, `sha`, and local name for one session. | Auth comes from your configured GitHub App (OpenComputer App by default) unless inline. |
| Git operations sandbox | Runs authenticated clone/fetch/publish work. | Separate from the agent; token lives only for one operation. |
+| Deployment source | Repository, root, and production branch for one agent. | Resolves one exact commit; source auth is discarded before build code runs. |
<Note>
`Repo` and `Source` are provider-neutral: `provider`, `owner`, `repo`, `ref`, `sha`.
@@ -112,6 +118,27 @@ sequenceDiagram
The token is minted per operation, scoped to a single repo, lives only inside a box that
does nothing but Git, and is gone before the next turn.
+## Use a repo to deploy a Flue agent
+
+Choose **Agents → Create agent → Import from GitHub** when the repository is the agent
+implementation itself. The dashboard uses the OpenComputer App to:
+
+1. inspect the selected branch and root without running repository code;
+2. show the exact commit, Flue entrypoint, model, Node compatibility, and non-secret variable names;
+3. create an undeployed agent and its first deployment attempt; and
+4. fetch that exact tracked tree in a short-lived Git box.
+
+The Git box writes a bounded, digest-checked source archive to object storage and is destroyed.
+A different sandbox receives that archive without `.git` or GitHub auth, runs the fixed install and
+build commands with public-Internet-only egress, and emits an artifact. The Workers deployment
+credential belongs to another trusted service and is never present during source or build work.
+
+This first Flue profile supports one self-contained npm root with `agent.toml`, `package.json`, and
+`package-lock.json`. Automatic deployment on later pushes is not enabled yet; explicitly deploy the
+latest production-branch head from the agent page after changing the repository. See
+[Flue deployment](/agent-sessions/flue#deploy-from-github) for the full build contract and failure
+journey.
+
## Connecting GitHub
Pick one. Either way, OpenComputer mints a fresh, repo-scoped token **per operation** (read-only
diff --git a/docs/agent-sessions/revisions.mdx b/docs/agent-sessions/revisions.mdx
index 73656dae..a438a10f 100644
--- a/docs/agent-sessions/revisions.mdx
+++ b/docs/agent-sessions/revisions.mdx
@@ -13,15 +13,15 @@ my-agent/
└─ runtime/ # optional — a custom runtime image (coming soon)
```
-`agent.toml` + `prompt.md` are all a built-in agent needs; `skills/` and `runtime/` are additive. A **deployment** packages this directory into an immutable [**revision**](#revisions), and the **active revision** is what new [sessions](/agent-sessions/sessions) use.
+`agent.toml` + `prompt.md` are all a built-in agent needs; `skills/` and `runtime/` are additive. A **deployment** is one attempt to turn source or uploaded behavior into a live agent. A successful attempt creates an immutable [**revision**](#revisions); failed, canceled, superseded, and skipped attempts remain deployment history but do not create one.
<Note>A [Flue](/agent-sessions/flue) deployment packages a compiled Cloudflare app instead. It records revisions in the same API, but currently has one live Worker per agent rather than independently routable revision artifacts. Its staging and rollback behavior is therefore different.</Note>
-Built-in runtime behavior can be deployed through the **API/SDK**, the **`oc` CLI**, or a [**repo push**](#deploy-from-a-repo). The current Flue profile uses `oc agent deploy` from a local app checkout because its build must run the app's installed Flue toolchain.
+Built-in runtime behavior can be deployed through the **API/SDK**, the **`oc` CLI**, or a [**repo push**](#deploy-from-a-repo). A Flue app can be imported and built from GitHub in the dashboard, or deployed from a local checkout with `oc agent deploy`.
## Revisions
-A **revision** is an immutable, numbered record of one deployment. For a built-in runtime, it freezes the `prompt`, `model`, and skills used by new sessions. For Flue, it records the app deployment and Worker version that passed verification.
+A **revision** is an immutable, numbered record of one successful deployment. For a built-in runtime, it freezes the `prompt`, `model`, and skills used by new sessions. For Flue, it records the app deployment and Worker version that passed verification. An imported Flue agent begins undeployed, with no active revision; its first successful build and verification creates revision #1.
Revisions are **linear** (the number only goes up) and never rewritten. Built-in runtime sessions keep the revision they started on; only new sessions pick up a change. Flue sessions share the agent's live Worker, so a Worker deployment also changes the code used by existing sessions.
@@ -36,7 +36,7 @@ The agent itself holds only **identity + bindings** (`name`, `runtime`, `credent
## Deploy
-`POST /agents/:id/deployments` is the one command. `input.type: "inline"` sends behavior directly (API / CLI / dashboard); `input.type: "github"` deploys a linked repo — see [Deploy from a repo](#deploy-from-a-repo).
+`POST /agents/:id/deployments` is the common post-creation command. `input.type: "inline"` sends behavior directly (API / CLI / dashboard); `input.type: "github"` deploys an already-linked repo — see [Deploy from a repo](#deploy-from-a-repo). Creating a new Flue agent from GitHub uses the atomic [`POST /agents/import`](#import-a-flue-repository) command instead.
An inline payload is the **complete** behavior — omitted fields aren't inherited (`prompt` is required; omitted `skills` means *no skills*).
@@ -81,7 +81,7 @@ The response is a **deployment**:
{ "deployment": { "id": "dep_…", "state": "ready", "revision_id": "rev_…", "active": true } }
```
-Inline deployments finish synchronously (`state: "ready"` with a `revision_id`) for the built-in runtimes. A [Flue](/agent-sessions/flue) deploy returns `state: "verifying"` while the managed deploy runner uploads the agent Worker and waits for two consecutive healthy responses from that exact live Worker. Poll it like an asynchronous deployment (`verifying` to `ready` or `failed`). GitHub deployments return `state: "accepted"`; poll `GET /agents/:id/deployments/:deployment_id` until terminal, and use the commit status on GitHub for the same result.
+Inline deployments finish synchronously (`state: "ready"` with a `revision_id`) for the built-in runtimes. A [Flue](/agent-sessions/flue) deploy returns `state: "verifying"` while the managed deploy runner uploads the agent Worker and waits for two consecutive healthy responses from that exact live Worker. Poll it like an asynchronous deployment (`verifying` to `ready` or `failed`). Repository deployments start at `accepted`; poll `GET /agents/:id/deployments/:deployment_id` and its durable log until terminal.
### Staging vs activating
@@ -109,7 +109,28 @@ For [repo deployments](#deploy-from-a-repo) the **branch decides** and `activate
## Deploy from a repo
-<Note>Repo-linked push-to-deploy is not available for Flue apps yet. Deploy their compiled Cloudflare target with `oc agent deploy` from a local or CI checkout.</Note>
+### Import a Flue repository
+
+Choose **Agents → Create agent → Import from GitHub** in the dashboard. OpenComputer inspects the
+selected branch and root without executing code, then creates the agent, source link, and first
+deployment as one retry-safe command. The OpenComputer agent's editable display name is separate
+from `agent.toml.name`, which identifies the exported Flue entrypoint inside the built app.
+
+The managed path is deliberately narrow: one self-contained npm root, a committed
+`package-lock.json`, a compatible `engines.node`, and a local `@flue/cli` dependency. OpenComputer
+fetches the exact commit with a repository-scoped GitHub App token in a source sandbox, removes Git
+metadata and auth, then runs `npm ci` and the offline builder in a separate tokenless sandbox. npm
+lifecycle scripts do run, but that build sandbox has only host-enforced public-Internet egress and
+no platform or deployment credential.
+
+The deployment detail page groups the attempt into **Queued**, **Source**, **Install**, **Build**,
+**Artifact**, **Deploy**, and **Verify**, with one persisted chronological log. An install/build
+failure leaves the imported agent visible and undeployed; it creates no revision and cannot start a
+session. Fix the source and deploy the production branch again.
+
+<Note>Automatic deployment on later Git pushes is not enabled for Flue in the first repository-import release. Only an explicitly requested production-branch deployment changes its one live Worker; preview-branch Flue builds and staged Workers are not available.</Note>
+
+### Link a built-in agent directory
Keep the agent directory (above) in Git and **push to deploy**. [Install the OpenComputer GitHub App](/agent-sessions/repos#connecting-github) on the repo, then connect it to an agent:
@@ -141,7 +162,7 @@ Linking deploys the current `main` HEAD right away (`deploy_now: false` / `--no-
OpenComputer posts a **commit status** (queued → ready / failed) so a deployment's result shows in GitHub.
-Your **GitHub token never reaches the agent's sandbox** — OpenComputer pulls only the linked directory, at the exact commit, in an isolated worker; a deployment can only target the directory you connected; no code runs at deploy time. (Same token model as [repos](/agent-sessions/repos).)
+For built-in behavior, your **GitHub token never reaches the agent's sandbox** — OpenComputer pulls only the linked directory at the exact commit in an isolated worker, and no repository code runs. A managed Flue build uses the same short-lived source-token boundary, then runs repository code only after the tokenless handoff described above.
## Deploy from your machine
@@ -193,8 +214,9 @@ Instant — no rebuild. Running sessions are unaffected; new sessions use the ne
## Inspect
```http REST API
-GET /v3/agents/agt_123/deployments # deployment history (state, source, actor)
-GET /v3/agents/agt_123/deployments/dep_123 # one deployment (poll async ones to ready|failed)
+GET /v3/agents/agt_123/deployments?limit=50 # deployment history + opaque next_cursor
+GET /v3/agents/agt_123/deployments/dep_123 # one attempt, timing, source, build, result
+GET /v3/agents/agt_123/deployments/dep_123/logs # durable chunks; resume with ?after=<cursor>
GET /v3/agents/agt_123/revisions # revision history (newest first; active flagged)
GET /v3/agents/agt_123/revisions/5 # one revision + its skill file manifest
GET /v3/agents/agt_123/activations # active-pointer audit log
@@ -217,4 +239,4 @@ These are **coming soon** — a deployment that includes them is rejected today:
## Dashboard
-The agent page in the [dashboard](https://app.opencomputer.dev) mirrors all of this: a **Revisions** panel (history, the active revision, one-click rollback) and a **Skills** panel (current skills, plus upload-`.zip` / remove).
+The agent page in the [dashboard](https://app.opencomputer.dev) keeps **Deployments** as the operational attempt history and **Revisions** as successful immutable results. Repository deployment detail includes its exact commit, phase, timing, build metadata, safe error summary, and persisted log.