Skip to content
12 changes: 10 additions & 2 deletions docs/contributing/runtime-implementation.md
Original file line number Diff line number Diff line change
Expand Up @@ -1687,8 +1687,16 @@ Two artefacts of the run are worth knowing about:
and local smoke runs.
- The rollout session files are archived as transcripts but not error-classified: only the tee'd
`exec --json` capture yields a verdict, which is what the runner's exit-code override reads.
- Native sub-agents (ADR 0126) have not completed a fleet-shaped run; `review`/`retro` stay on
Claude Code in the docs until one does.
- Native sub-agents (ADR 0126) have run fleet-shaped only locally on macOS Apple Silicon,
natively and in a Fedora CoreOS (aarch64) podman VM
([#6970](https://github.com/fullsend-ai/fullsend/issues/6970)), not through the fleet
workflows. In two of the three `review` runs on #6970 a persona the skill selects did not run,
and neither result said so ([#9073](https://github.com/fullsend-ai/fullsend/issues/9073),
[#9657](https://github.com/fullsend-ai/fullsend/issues/9657)). On collaboration V2 (ADR 0159),
`review` and `retro` have run natively on macOS only
([#9085](https://github.com/fullsend-ai/fullsend/issues/9085#issuecomment-6920231259)), and there the
`review` parent dropped the challenger's kept findings after its own check of the repository
([#9657](https://github.com/fullsend-ai/fullsend/issues/9657)).

### Re-check on a `CODEX_VERSION` bump

Expand Down
4 changes: 2 additions & 2 deletions docs/guides/getting-started/choosing-a-runtime.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ sidebar_label: Choose a Runtime

# Choose an agent runtime

> **Claude Code is the stable default.** The fleet agents have run on Claude Code in production for a long time; it is what a new installation gets unless you ask for something else. **pi and codex are experimental** — pi works end to end for `triage`, `prioritize`, `code`, `fix` and `review`/`retro`; codex runs OpenAI models through the same secretless credential path; `review`/`retro` are best left on Claude Code there. Neither runtime has completed a fleet pilot. Unless you are taking part in one, keep the default.
> **Claude Code is the stable default.** The fleet agents have run on Claude Code in production for a long time; it is what a new installation gets unless you ask for something else. **pi and codex are experimental** — pi works end to end for `triage`, `prioritize`, `code`, `fix` and `review`/`retro`; codex runs OpenAI models through the same secretless credential path, but in two of the three local `review` runs on [#6970](https://github.com/fullsend-ai/fullsend/issues/6970) a selected review persona (a sub-agent that checks one aspect of the change) did not run and the result did not say so, and in a later run the review dropped findings its challenger persona (the one that re-checks the others' findings) had kept ([details](../../runtimes/codex.md#not-yet-exercised)). Neither runtime has completed a fleet pilot. Unless you are taking part in one, keep the default.

This page explains what the choice means and where it is made. **You do not select anything on this page** — the selection happens in the next step. On GitHub, [Configuring GitHub](configuring-github.md) asks when you run `fullsend github setup` (press Enter for `claude`) or you pass `--runtime`. On GitLab, set `runtime:` in `defaults.config`, `gitlab.config`, or the repository entry's `config` in `repos.yaml` before running `fullsend repos install` (there is no install flag) — see [Configuring GitLab](configuring-gitlab.md).

Expand All @@ -16,7 +16,7 @@ Fullsend supports multiple agent runtimes. A runtime is the program that runs in
|---------|--------|-------------|-------------|
| `claude` | **Stable (default)** | Claude Code on Vertex AI | Every production deployment — mature, full sub-agent support for `review`/`retro` |
| `pi` | Experimental (enablement phase) | [Pi](https://github.com/earendil-works/pi) — Claude on Vertex by default; any provider pi supports by model name (e.g. Gemini on Vertex with the same credentials) | Opt-in pilots only; see [Runtimes](../../runtimes.md) for known constraints |
| `codex` | Experimental | [Codex](https://github.com/openai/codex) — OpenAI models through the same secretless credential path, or any Responses-capable model through an inference gateway (`gateway/<model>`) | Opt-in pilots only, when you want GPT specifically. Sub-agents run as [native Codex children](../../runtimes/codex.md#sub-agents), not yet verified fleet-wide, so keeping `review`/`retro` on Claude Code is recommended; needs an OpenAI or `gateway/` model named (`FULLSEND_CODEX_MODEL`) because the fleet harnesses ask for `opus`; see [Codex](../../runtimes/codex.md) |
| `codex` | Experimental | [Codex](https://github.com/openai/codex) — OpenAI models through the same secretless credential path, or any Responses-capable model through an inference gateway (`gateway/<model>`) | Opt-in pilots only, when you want GPT specifically. Sub-agents run as [native Codex children](../../runtimes/codex.md#sub-agents) when harness security is on (`security.enabled`, the default) and Codex resolves the parent model to [collaboration V1 or V2](../../runtimes/codex.md#sub-agents) at its pinned version, except on a `gateway/` model or, for a V2 parent, when a child model selects V2; otherwise the parent does the sub-agents' work itself; needs an OpenAI or `gateway/` model named (`FULLSEND_CODEX_MODEL`) because the fleet harnesses ask for `opus`; see [Codex](../../runtimes/codex.md) |
| `opencode` | Experimental | [OpenCode](https://opencode.ai/) — reads `AGENTS.md` natively | Opt-in read-only agents (`triage`, `prioritize`) until the security-hook adapter lands; see [OpenCode](../../runtimes/opencode.md) |

## When and how the runtime is selected
Expand Down
2 changes: 1 addition & 1 deletion docs/runtimes.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ sequenceDiagram
| Sub-agents | Native (`Agent` tool) | `Agent`/`Task` via a fullsend extension | Native Codex children under a runner-owned policy, for an agent whose tools include `Agent` (or that declares no `tools:`), with harness security on, on a parent model Codex resolves to collaboration V1 or V2 on the direct route ([Sub-agents](runtimes/codex.md#sub-agents)) |
| Default alias models | `opus`/`sonnet`/`haiku` → `claude-*-5-5`, passed as the id; `fable` by Claude Code's own table; sub-agent frontmatter resolved by Claude Code | `opus`/`sonnet`/`haiku` → `claude-*-5-5`, `fable` → `claude-fable-5-1`, children included | Not applicable — OpenAI models only |
| Fallback model chain | Alias requests retried by the runner when Vertex does not serve the model (Claude Code's own "model not available" result naming the model, or Vertex's [two 404/403 messages](runtimes/claude.md#models)): `FULLSEND_FALLBACK_MODELS`, else the alias's built-in chain (`opus` → `claude-opus-4-6`, `sonnet` → `claude-sonnet-4-6`, `haiku` → `claude-haiku-4-5`); only an explicit `FULLSEND_FALLBACK_MODELS` is also passed as `--fallback-model`, never the built-in chain; pinned ids, retargets and sub-agents fail loudly | The same chain, same provider only; sub-agent children asking for an alias use its built-in chain; pinned ids and retargets fail loudly | Ignored with a warning |
| Roles | All | All; `review`/`retro` at `--thinking medium` by default | Same recommendation as before until a fleet-shaped run completes ([Sub-agents](runtimes/codex.md#sub-agents)) |
| Roles | All | All; `review`/`retro` at `--thinking medium` by default | All; some `review` runs have dropped a sub-agent the skill selects without saying so, or findings its challenger kept ([#9073](https://github.com/fullsend-ai/fullsend/issues/9073), [#9657](https://github.com/fullsend-ai/fullsend/issues/9657)) |
| Effort | `--effort low..max` | `--thinking`, same levels (`high` when unset) | `model_reasoning_effort`, same levels |
| Tools | Native Claude permission syntax | `--tools` (strict) + a first-token Bash allowlist | Shell + `apply_patch` only; `tools:` is recorded, not enforced (the allowlist hook is opt-in) |
| Security controls | Full matrix | Full matrix; stricter on failed-call sanitizing | Full matrix; post-tool hooks detect and block but cannot rewrite output |
Expand Down
71 changes: 45 additions & 26 deletions docs/runtimes/codex.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,10 @@ run at once on V2; the depth is one. A runner-owned hook admits a spawn only for
role with that fresh context and no model or effort override; it denies resume, V2's message and
follow-up calls, Codex's built-in `explorer` and `worker`, and any spawn from a child. A denied
spawn is final for that role: the parent runs that
sub-agent definition itself. A wait works the other way. On V2 Codex refuses a `wait_agent` whose
sub-agent definition itself. In a fleet-shaped V1 `review` run on
[#6970](https://github.com/fullsend-ai/fullsend/issues/6970) the parent dropped the denied persona
instead, and its result did not say so ([#9073](https://github.com/fullsend-ai/fullsend/issues/9073)).
Unlike a denied spawn, a refused wait is not final. On V2 Codex refuses a `wait_agent` whose
`timeout_ms` is over 120000, a max the runner sets in Codex's own config, and the parent waits
again with a shorter timeout; on V1 Codex has no such setting, and the runtime note asks for the
same cap. A spawn the hook did not admit fails the run after the fact, within
Expand Down Expand Up @@ -347,9 +350,10 @@ What a local codex run needs, beyond the guide:
- **Debugging** — `--debug='*'` (the `=` is required); sandbox-side failures land in
`codex-debug.log` inside the run directory, next to the transcripts, not in the runner's output.

- **Platforms** — the runtime was brought up and smoke-tested on macOS Apple Silicon (podman
machine, Homebrew `openshell`, arm64 image); the local guide's platform notes otherwise apply
unchanged.
- **Platforms** — the runtime was brought up and smoke-tested locally on macOS Apple Silicon
(podman machine, Homebrew `openshell`, arm64 image), and `review` and `retro` also ran with
fullsend and OpenShell 0.1.4 (CI's pin) inside a Fedora CoreOS (aarch64) podman VM on the same
Mac. The local guide's platform notes otherwise apply unchanged.

## Behaviour differences worth knowing

Expand Down Expand Up @@ -433,28 +437,43 @@ What a local codex run needs, beyond the guide:

## Not yet exercised

**Start on a disposable repo,** with `triage` or `prioritize` before `code` or `fix`. Codex has been
run end to end by hand — the fleet's own `triage` and `review` harnesses, on `openai/gpt-5.6-luna`,
on macOS — but not yet through a full fleet lifecycle, and not yet on the CI credential path: the
Workload Identity route needs an OpenAI organization mapped to the repositories, which does not
exist yet, so local runs use `OPENAI_API_KEY` on the runner. Until that mapping exists codex also
has no default behaviour-test coverage; its scenario is gated. What was run, and on which versions,
is recorded in [codex runtime
internals](../contributing/runtime-implementation.md#codex-runtime-internals-6920).

**Keep `review` and `retro` on Claude Code.** Their sub-agents run as native Codex children
([Sub-agents](#sub-agents)), but that path has not completed a fleet-shaped run yet. Nothing
prevents a repo-wide `runtime: codex` from applying to them — they will run — so pin them with
`runtime: claude` on their `agents:` entries until it has:

```yaml
agents:
- name: review
runtime: claude
```

**`code` and `fix` delegate too.** They declare no `tools:`, so on a V1 or V2 parent on the
direct route with harness security on they get the `default` and `explore` roles, children with the parent's shell and `apply_patch`,
**Start on a disposable repo,** with `triage` or `prioritize` before `code` or `fix`. Codex has
been run end to end by hand, locally on macOS Apple Silicon. On `openai/gpt-5.6-luna`, a V1
parent, the fleet's own `triage`, `code`, `fix`, `review` and `retro` harnesses ran natively,
and `review` and `retro` also ran in a Fedora CoreOS (aarch64) podman VM. On an
`openai/gpt-6.1-sol` parent, a V2 one, `review` and `retro` ran natively. None of these runs
went through a full fleet lifecycle or the CI credential path: the Workload Identity route needs
an OpenAI organization mapped to the repositories, which does not exist yet, so local runs use
`OPENAI_API_KEY` on the runner. Until that mapping exists codex also has no default
behaviour-test coverage; its scenario is gated. What was run, and on which versions, is recorded
in [codex runtime internals](../contributing/runtime-implementation.md#codex-runtime-internals-6920),
in [#8836](https://github.com/fullsend-ai/fullsend/pull/8836) (`triage`, `code` and `fix`), on
[#6970](https://github.com/fullsend-ai/fullsend/issues/6970) (`review` and `retro` on V1) and on
[#9085](https://github.com/fullsend-ai/fullsend/issues/9085#issuecomment-6920231259) (`review`
and `retro` on V2).

**`review` and `retro` delegate.** On a V1 or V2 parent on the direct route with
harness security on, `review` runs its skill's personas and `retro` its
investigation tasks as native Codex children ([Sub-agents](#sub-agents));
otherwise, and on a V2 parent when a child model selects V2, they run in one
context. Both have run fleet-shaped that way on
`gpt-5.6-luna`, a V1 parent, locally on macOS Apple Silicon, natively and in a Fedora
CoreOS (aarch64) podman VM, not through the fleet workflows
([#6970](https://github.com/fullsend-ai/fullsend/issues/6970)). Every run
exited 0, but in two of the three `review` runs on #6970 a persona the skill
selects did not run, and neither result said so
([#9073](https://github.com/fullsend-ai/fullsend/issues/9073),
[#9657](https://github.com/fullsend-ai/fullsend/issues/9657)). On a `gpt-6.1-sol` parent, a V2
one, with `gpt-5.6-luna` children, `review` ran eight personas and `retro` four tasks natively on
macOS, and each child's result reached the parent once
([#9085](https://github.com/fullsend-ai/fullsend/issues/9085#issuecomment-6920231259)); the `review`
parent then dropped the challenger's kept findings after its own check of the repository
([#9657](https://github.com/fullsend-ai/fullsend/issues/9657)). To keep either agent on Claude Code,
set `runtime: claude` on its `agents:` entry ([per-agent
settings](../runtimes.md#per-agent-runtime-model-and-effort)).

**`code` and `fix` delegate too.** They declare no `tools:`, so under the same conditions they get
the `default` and `explore` roles, children with the parent's shell and `apply_patch`,
the spawn guard and the dispatch note, as `review` does. Both have run end to end that way on
`gpt-5.6-luna` and chose not to spawn, so neither has run a native child yet.

Expand Down
3 changes: 2 additions & 1 deletion internal/cli/runtime_prompt.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ func promptRuntime(printer *ui.Printer, in io.Reader, interactive bool) (string,
printer.StepInfo("Choose the agent runtime for this repository:")
printer.StepInfo(" [claude] Claude Code — stable default, recommended; all fleet agents, concurrent sub-agents")
printer.StepInfo(" [pi] pi — experimental (enablement phase); any provider pi supports, no sub-agent tool yet")
printer.StepInfo(" [codex] Codex — experimental; OpenAI models, or gateway/<model> through an inference gateway. Recommended: keep review and retro on claude")
printer.StepInfo(" [codex] Codex — experimental; OpenAI models, or gateway/<model> through an inference gateway;")
printer.StepInfo(" review has skipped one of its sub-agents without saying so (#9073, #9657)")
printer.StepInfo(" [opencode] OpenCode — experimental; read-only agents only until the security-hook adapter lands (unbound-force#515)")
printer.StepInfo(" Keep the default unless you are taking part in a runtime pilot. Change later with `runtime:`")
printer.StepInfo(" in .fullsend/config.yaml or `fullsend github setup --runtime`; see docs/runtimes.md.")
Expand Down
5 changes: 3 additions & 2 deletions internal/runtime/codex_bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -493,8 +493,9 @@ const codexV2DispatchMarker = "Dispatch follows collaboration V2."
// codex's native tools and states the policy the spawn guard enforces, so
// the parent passes the arguments the guard admits and handles a denial
// without retrying. The first two sentences and the denied-spawn sentence
// are what the agents repository's pr-review skill keys on; change them
// only together with that skill. roles is
// are what the agents repository's pr-review skill, review agent and retro
// agent key on (fullsend-ai/agents#1849, fullsend-ai/agents#1971); change
// them only together with those. roles is
// the registered roster, sorted by name (codexRoles); version is the
// collaboration version the gate admitted. The V2 note keeps the keyed
// sentences, puts codexV2DispatchMarker right after its third sentence,
Expand Down
Loading