> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Harness reference

> Choose the correct workflow prompt syntax, distinguish harnesses from models and providers, and find the permission mode a dispatched worker gets.

A harness is the coding-agent program that runs a session. F\[no] supplies workflows and hooks for supported harnesses.

Start with the [quickstart](/docs/quickstart.md). For worker creation, see [run a fleet](/docs/guides/run-a-fleet.md). To run headless workers in a devcontainer that reaches shared Footnote state only through the daemon, see [sandbox a worker](/docs/guides/sandbox-a-worker.md).

## Workflow prompts

Type the target prompt in the harness, followed by the task. The `-H` value selects the harness on a worker launch.

| Harness | `-H` value | Target prompt | Lanes |
| - | - | - | - |
| Antigravity CLI | `agy` | `/target` | `pane`, `headless` |
| Claude Code | `claude` | `/fno:target` | `thread`, `pane`, `headless` |
| Codex CLI | `codex` | `$fno:target` | `thread`, `pane`, `headless` |
| Cursor | `cursor-agent` | `/fno:target` | `thread`, `pane` |
| Gemini CLI | `gemini` | None: give it a plain prompt | `pane`, `headless` |
| Grok | `grok` | `/fno:target` | `thread`, `pane` |
| Muse Code | `muse` | `/fno:target` | `thread`, `headless` |
| oh-my-pi | `omp` | `/skill:target` | `headless` |
| OpenCode | `opencode` | `/fno:target` | `thread`, `pane`, `headless` |
| pi | `pi` | `/skill:target` | `thread`, `pane`, `headless` |
| ZCode | `zcode` | `/fno:target` | `headless` |

These forms select a workflow. They are not shell commands and do not select the model.

> **Note:** oh-my-pi is a fork of pi with its own binary, its own row, and a headless lane only. F\[no] supports it from its source code. No omp turn has run live, so `omp` does not appear in the spawn list yet. oh-my-pi needs bun 1.4.4 or later.

Use the same form for `think`, `blueprint`, `review`, `ship`, and `fix`.

On a worker launch, always write `/fno:target`. F\[no] changes it to the form that the worker's harness reads.

## Choose a default harness

The [wizard](/docs/install.md#run-the-wizard) sets up the harnesses you pick. A worker launch selects its harness in this order:

1. The `-H` flag.
2. The `agents.defaults.provider` setting. Its value is a harness, such as `opencode`.
3. The harness you launch from.
4. Claude Code.

To set the default, run this in a terminal:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno config set --global agents.defaults.provider opencode
```

Replace `opencode` with the `-H` value of your harness.

## Spawn permission mode

When a tool runs, the permission mode decides whether the harness asks first. A dispatch starts a worker for you: a dispatched backlog node or a spawned target run. F\[no] picks the worker's permission mode in this order:

1. The mode that the dispatch itself carries.
2. Your `agents.defaults.permission_mode` setting.
3. The built-in answer for the worker's harness.

> **Note:** The 0.4.7 release and the 0.4.8rc1 and 0.4.8rc2 candidates do not include the per-harness split. On those builds, Claude Code workers also get `bypassPermissions`.

| Harness | Built-in mode | What the worker gets |
| - | - | - |
| Claude Code (`claude`) | `auto` | Claude checks every tool call in the background. |
| Every other harness, except an [OpenCode thread worker](#opencode-thread-workers) | `bypassPermissions` | The harness runs tools with no permission checks, as before. Codex translates the value to its own bypass flag. |

`auto` replaces the blanket bypass. Reads and edits inside the working directories clear the check on their own. Claude blocks anything beyond your request. The worker still runs unattended. F\[no]'s hooks answer the worktree-entry prompt. The worker enters its worktree with no wait.

> **Note:** A session that you start in the [mux composer](/docs/guides/mux-workspaces.md) picks its own permission mode. The composer's permission control decides, not this list.

### OpenCode thread workers

An OpenCode thread worker does not get `bypassPermissions`. It runs under your own OpenCode permission rules, on OpenCode 1.x and 2.x. An act that your rules allow runs. An act that your rules deny does not run.

When your rules leave an act open, the worker asks, and F\[no] answers:

* F\[no] allows a routine act once. It never answers `always`.
* F\[no] refuses an act it is not sure of. The model reads the refusal as the tool's answer.
* F\[no] holds an irreversible act, or an act that your own `ask` rule raised. It files the act as an open question for you.

To answer a held act, run:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno agents ask <name> --answer allow_once
```

Use `--answer deny` to refuse it. With no held act, the command exits 2. After 30 minutes, F\[no] refuses the act. The `agents.thread_permission.hold_minutes` setting changes that time.

### Set the mode yourself

To pin one mode for every dispatch, set the key in your global config:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno config set --global agents.defaults.permission_mode bypassPermissions
```

Read the value back:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno config get agents.defaults.permission_mode
```

An unset key prints `source: default (no config file sets this key)`. The built-in answer above applies. A set key prints your value and the file that carries it. F\[no] does not check the mode name. Use a mode that your harness knows, such as `auto` or `bypassPermissions`.

To remove the setting, run `fno config unset agents.defaults.permission_mode`.

> **Warning:** A worker that asks a human stops the dispatch until someone answers. Autonomous dispatch assumes a worker that runs on its own. The recovery sweep acts on stalled background sessions. It does not resume a dispatch that asks a human.

## OpenCode versions

F\[no] works with OpenCode 1.14.50 and later, on both the 1.x and the 2.x contract. OpenCode thread workers share one `opencode serve`. When the serve starts, F\[no] reads the binary's version and uses that contract for every call. An early 2.x serve that answers only the 1.x routes stays on the 1.x path.

F\[no] looks for the OpenCode binary in this order: `FNO_OPENCODE_BIN`, then `~/.opencode/bin/opencode`, then `opencode` on your `PATH`.

On 2.x, these also work:

* `fno agents peek <name> --follow` streams a live OpenCode session. A 1.x serve shows the tail only.
* Chat events, peek, and transcripts read 2.x sessions.
* The archive step archives a finished 2.x session.

In the mux, the portal pane of an OpenCode thread row shows the live OpenCode screen. The serve and the screen must be the same OpenCode generation: both 1.x or both 2.x. If they are not, nothing starts. The pane names the serve version and each installed binary with its version. To fix it, point `FNO_OPENCODE_BIN` at a binary of the serve's generation, or restart the serve on the installed binary.

## pi and oh-my-pi hooks

The F\[no] extension for pi runs the same hook chains that Claude Code runs:

| When | What runs |
| - | - |
| Session start | The session-start hooks. pi cannot add context here, so their text arrives with your next prompt. |
| Each prompt | Mail delivery and the backlog node bind. |
| After a tool call | Format on edit, the edit check, the claim heartbeat, and merge capture. |
| Before compaction | The session save and the canon doc. |

Each hook script has 15 seconds. Set `FNO_PI_CARRIER_TIMEOUT_MS` to change that limit. A hook that fails or times out does not stop the session.

`fno config plugin install omp` installs the same extension for oh-my-pi.

## Launch axes

| Axis | Meaning | How it is selected |
| - | - | - |
| Harness | Program running the agent | `-H` on a worker launch |
| Provider | Vendor serving the model | Provider routing and account configuration |
| Model | Model answering the prompt | Harness model selection |
| Effort | Reasoning setting | Harness effort selection |
| Account | Credentials used for access | Registered account selection |

For mail, use the worker's exact registered name. It works on every harness.

## Execution lanes

| Lane | Interaction | Typical use |
| - | - | - |
| `thread` | Persistent, attachable | A worker that continues across turns |
| `pane` | Interactive mux pane | A worker you want to watch in a fixed layout |
| `headless` | Noninteractive | One exchange with a final result. `--once` requests it |
| `cloud` | Remote execution | A configured remote worker substrate |

Availability depends on the installed harness and configured services. A refused lane is not an instruction to bypass its gate.

## Check integration readiness

Use the setup dry run to inspect detected harnesses without applying changes:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno config setup run --dry-run --json
```

The JSON includes detected harnesses and proposed setup actions. Read those actions before running an interactive setup or applying configuration.

## Next steps

* [Run a fleet](/docs/guides/run-a-fleet.md): launch a worker on an authenticated harness.
* [Security](/docs/concepts/security.md): what limits a worker's reach.
* [Troubleshooting](/docs/troubleshooting.md): fix missing skills or a refused launch.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.