Skip to content

An open-source, faster Devin alternative

TypeScript

docs: describe automatic Flue repository deploys

Igor Zalutski1e40844ca124
diff --git a/docs/agent-sessions/api-reference.mdx b/docs/agent-sessions/api-reference.mdx
index 44270d62..6c5a66dd 100644
--- a/docs/agent-sessions/api-reference.mdx
+++ b/docs/agent-sessions/api-reference.mdx
@@ -347,6 +347,10 @@ The deployment starts at `accepted`; the agent is visible but cannot start sessi
different fields returns `409 idempotency_conflict`. A name or repository-root conflict also returns
`409` and identifies the existing agent when available.
+The source remains linked after import. A later GitHub push that touches the selected root on its
+production branch automatically creates the next deployment. Flue ignores non-production pushes;
+the current runtime has one live Worker and no preview/staged Worker.
+
### Deploy
<Tabs>
@@ -388,9 +392,9 @@ different fields returns `409 idempotency_conflict`. A name or repository-root c
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); it deploys only an explicitly requested
-production-branch head and has no preview/staged Worker. `POST …/revisions` is inline-only
-sugar.
+with [`POST /agents/import`](#import-a-flue-repository); import deploys the reviewed production head,
+and subsequent production-branch pushes deploy automatically. Flue has no preview/staged Worker.
+`POST …/revisions` is inline-only sugar.
**`Deployment`**
@@ -536,7 +540,13 @@ A skill is a folder with a `SKILL.md`; PUT/DELETE are **deployments** (versioned
</Tabs>
-Linking deploys the current production HEAD immediately (unless `deploy_now: false` / `--no-deploy`); a push to the production branch activates, other branches stage. **Scopes:** `deploy_now: false` needs `agents:link`; the default (with an initial deploy) needs `agents:link` + `agents:deploy`, plus `agents:activate` when that deploy auto-activates. Repo/path are server-anchored to the link. Deployment sources use the **OpenComputer App** (no BYO). Full flow + guarantees: [Deploy from a repo](/agent-sessions/revisions#deploy-from-a-repo).
+Linking deploys the current production HEAD immediately (unless `deploy_now: false` / `--no-deploy`).
+For built-in runtimes, a push to the production branch activates while other branches stage. For
+Flue, only the production branch deploys. **Scopes:** `deploy_now: false` needs `agents:link`; the
+default (with an initial deploy) needs `agents:link` + `agents:deploy`, plus `agents:activate` when
+that deploy auto-activates. Repo/path are server-anchored to the link. Deployment sources use the
+**OpenComputer App** (no BYO). Full flow + guarantees:
+[Deploy from a repo](/agent-sessions/revisions#deploy-from-a-repo).
**`DeploymentSource`**
diff --git a/docs/agent-sessions/flue.mdx b/docs/agent-sessions/flue.mdx
index eaf2bf15..e0b9ca6b 100644
--- a/docs/agent-sessions/flue.mdx
+++ b/docs/agent-sessions/flue.mdx
@@ -79,12 +79,12 @@ 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.
+4. Review the detected Flue entrypoint, model, and exact commit. Give the OpenComputer agent a human-readable name; it may differ from the `agent.toml` Flue entrypoint.
+5. Choose **Deploy agent**. The deployment page keeps one chronological log and summarizes progress as **Prepare**, **Build**, and **Deploy**.
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,
+managed builder version 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.
@@ -95,14 +95,17 @@ OpenComputer sandbox. The build request carries no GitHub token, OpenComputer ke
credential, Workers credential, or secret store.
<Note>
-Repository import currently creates the initial deployment from the selected production branch.
-Automatic deployment of later pushes is not enabled; return to the agent and
-deploy the latest branch head, or use the CLI path below, after changing the repository.
+Repository import creates the initial deployment from the selected production branch. Each later
+push to that branch that touches the selected root automatically creates another deployment for the
+new exact commit. Flue ignores pushes to other branches because it has one live Worker and no
+preview/staged Worker in the current profile.
</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**.
+fix the repository, and push the linked production branch. The first successful deployment creates
+revision **#1**. **Deploy latest** can manually rebuild its current head after a transient platform
+failure.
## Deploy from your machine
@@ -339,6 +342,12 @@ existing sessions before revision verification finishes. There is no isolated st
route, or automatic Worker rollback. `--no-activate`, an old revision pin, and a pointer-only
`oc agent rollback` do not restore older Worker code.
+From the live-upload guard until verification finishes, new session creation and new input return the
+retryable `503 flue_deployment_updating`; retry after the deployment becomes terminal. If an upload
+cannot be verified, the live state becomes `unverified` and those paths remain blocked until a later
+deployment restores verified code (`503 flue_deployment_unverified`). Work already running inside a
+Durable Object is not version-pinned and can also be affected by the Worker change.
+
To restore a known-good build, check out that source and run `oc agent deploy` again. Flue and Durable
Object schema changes are forward-only, so do not downgrade across an incompatible Flue storage
version.
@@ -367,8 +376,12 @@ 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.
+- Repository deployment accepts one self-contained npm root with a committed npm lockfile. Pushes
+ to its linked production branch deploy automatically; preview branches and staged Flue Workers are
+ not supported.
+- The reviewed entrypoint, model, and variables are guarded. Changing those behavior-bearing
+ manifest fields is rejected until existing-agent re-review is available; keep them stable after
+ import for now.
- 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.
@@ -383,7 +396,7 @@ and dashboard as the other runtimes. The important differences are:
- **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.
+ available even if log output was truncated; fix the source and push 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.
diff --git a/docs/agent-sessions/repos.mdx b/docs/agent-sessions/repos.mdx
index a745ce80..81c6d022 100644
--- a/docs/agent-sessions/repos.mdx
+++ b/docs/agent-sessions/repos.mdx
@@ -124,7 +124,7 @@ Choose **Agents → Create agent → Import from GitHub** when the repository is
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;
+2. review the exact commit, Flue entrypoint, model, and agent name while validating the managed Node/package contract;
3. create an undeployed agent and its first deployment attempt; and
4. fetch that exact tracked tree in a short-lived Git box.
@@ -135,9 +135,10 @@ deployment credential belongs to another trusted service and is never present du
build work.
Flue repository deployment currently supports one self-contained npm root with `agent.toml`,
-`package.json`, and `package-lock.json`. Automatic deployment on later pushes is not enabled;
-explicitly deploy the
-latest production-branch head from the agent page after changing the repository. See
+`package.json`, and `package-lock.json`. The initial import links that root to its production branch;
+each later push touching the root automatically deploys the branch's new exact head. Other branches
+do not create Flue preview deployments. **Deploy latest** remains available for manually rebuilding
+the current production head after a transient failure. See
[Flue deployment](/agent-sessions/flue#deploy-from-github) for the full build contract and failure
journey.
diff --git a/docs/agent-sessions/revisions.mdx b/docs/agent-sessions/revisions.mdx
index a553e590..ca722e1e 100644
--- a/docs/agent-sessions/revisions.mdx
+++ b/docs/agent-sessions/revisions.mdx
@@ -103,7 +103,10 @@ await oc.agents.revisions.activate("agt_123", deployment.revision_id);
So `revision` on [session create](/agent-sessions/sessions) is how you exercise any non-active revision (a staged one, or an old one) without touching what's live.
-For [repo deployments](#deploy-from-a-repo) the **branch decides** and `activate` is ignored: a push to the production branch activates, every other branch stages.
+For built-in [repo deployments](#deploy-from-a-repo), the **branch decides** and `activate` is ignored:
+a push to the production branch activates, while another branch stages. Flue repository deployment
+accepts only its linked production branch because the current runtime has one live Worker and no
+isolated preview Worker.
<Tip>Editing `prompt`/`model` via [`PATCH /agents/:id`](/agent-sessions/agents) also deploys a revision — a shorthand for small edits.</Tip>
@@ -123,12 +126,12 @@ metadata and auth, then runs `npm ci` and the offline builder in a separate toke
lifecycle scripts do run in that ordinary disposable OpenComputer sandbox, but its request carries
no source, platform, model, 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.
+The deployment detail page keeps one persisted chronological log and summarizes the attempt as
+**Prepare**, **Build**, and **Deploy**. An install/build failure leaves the imported agent visible
+and undeployed; it creates no revision and cannot start a session. Fix the source and push the
+production branch again.
-<Note>Automatic deployment on later Git pushes is not enabled for Flue. Only an explicitly requested production-branch deployment changes its one live Worker; preview-branch Flue builds and staged Workers are not available.</Note>
+<Note>Each later push that touches the linked root on the production branch automatically creates a Flue deployment. Non-production pushes do not create preview/staged Flue Workers. **Deploy latest** manually rebuilds the current production head when needed.</Note>
### Link a built-in agent directory