Skip to content

03 · Agents and manifests

How onreel launches agent CLIs and how to connect your own.

3.1 · How onreel launches an agent

onreel is not built into any agent: it launches the CLI you installed yourself, in a terminal of a separate process, ptyd. A manifest describes how to find the CLI, which flags to launch it with and when to consider the session ready; it is a YAML file. onreel does not install agents, does not sign in to them for you and does not update them.

The built-in set has ten manifests:

  • claude — Claude Code;
  • glm — the same claude with the Z.ai environment, the key comes from the ZAI_API_KEY variable;
  • qwen — Qwen Code;
  • kimi — Kimi Code;
  • codex — Codex CLI;
  • antigravity — Antigravity CLI (agy);
  • grok — Grok Build, the official xAI CLI;
  • opencode — opencode;
  • cursor — Cursor CLI (cursor-agent);
  • copilot — GitHub Copilot CLI.

3.2 · What has been tested on live CLIs

The manifests were written from CLI help and tests, so confidence differs between them.

  • Tested on a live CLI: claude, qwen and kimi.
  • Written conservatively and not tested: codex, antigravity, grok, opencode, cursor and copilot. If your CLI behaves differently, adjust a copy of the manifest.
  • The host connects the onreel MCP server to attempts itself, via the manifest's launch.mcp section: automatic delivery exists for claude, glm, qwen, codex, copilot and opencode; claude and qwen have been tested on a live CLI, the other four have not. There is no automatic delivery for kimi, antigravity, grok and cursor: kimi accepts an MCP config only as the mcp.json file, without variable references (~/.kimi-code/mcp.json or the launch directory's .kimi-code/mcp.json), in antigravity MCP servers are connected through the /mcp panel or a settings file, in grok you run grok mcp add once with the onreel orch mcp stdio command (by default ~/.grok/config.toml; the GROK_CONFIG overlay does not accept the mcp_servers table), and cursor-agent has no documented MCP mechanism. Such an attempt runs without orchestration tools, and onreel says so with an event in the Run journal and the mcpNotDelivered field of the launch reply; the working manual way to connect is through the CLI's own settings, as described in "CLI and MCP" (the "Connecting MCP to a client" section).
  • onreel counts token usage from session files only for claude, qwen and codex. For the others it is unknown.

3.3 · Connecting an agent

  1. Install the CLI and sign in the way its vendor prescribes.
  2. Make sure the host sees the command: it looks in the PATH of the environment it was started from, not in your interactive shell.
  3. Check with onreel doctor: every enabled agent has its own agent.<id> line.
  4. If you changed PATH, environment variables, manifests or config.json, restart the host.
  5. Start the agent manually in a project:
terminal
onreel agent start --project <projectId> --agent codex --prompt "Tell me what is in this repository"
onreel agent list
onreel agent stop --session <sessionId>

To limit the set of agents, list the ones you want when creating the config: onreel init --agents claude,codex. A disabled agent is not shown in lists and cannot be started.

Never put a key or token into a manifest or a repository. If an agent reads its key from an environment variable, the manifest names only the variable, and the host takes the value from its own environment at launch. Every agent the host launches inherits the host environment.

3.4 · Your own manifest

Manifests are read from three places; when an id repeats, the later one wins and its file replaces the earlier one entirely, with no field merging:

  1. built-in;
  2. yours — ~/.onreel/agents/*.yaml;
  3. the project's — <repository>/.onreel/agents/*.yaml.

A project manifest is not trusted by default: a cloned repository must not run arbitrary commands on your machine. Launching from such a manifest is refused with agent_untrusted. To trust it, copy the file into ~/.onreel/agents.

A terminal manifest consists of these sections: detect (how to find the CLI and its version), launch (arguments, model, effort, rights, MCP, environment), prompt (how to deliver the prompt), readiness and idle (when the session is ready and when it is idle), and the optional models, usage, faults, quotaProbe and compaction. The schema is strict: an unknown field is a file error. A file larger than 256 KiB is rejected. A broken file does not affect the others: onreel doctor names it.

To adjust a built-in manifest, copy it to ~/.onreel/agents/<id>.yaml, edit the copy and restart the host. The copy replaces the built-in manifest entirely, so you stop receiving updates to the built-in one. You can edit the same manifest in the interface: in Settings → Agents, "New manifest" gives a commented skeleton, and "Trial run" checks the schema, trust, the CLI and the launch command without launching the agent.

3.5 · Model and effort

The model and effort are passed with --model and --effort where the manifest knows them. If the manifest cannot pass a model or effort and you gave one, the host refuses with invalid_request instead of silently dropping it.

3.6 · Profiles and classes

A distribution profile assigns agents to a Run by work classes from light to heavy. The coordinator starts an attempt by class, and the host fills in the executor, model and effort; when the primary executor is unavailable or out of quota, the fallback is used.

terminal
onreel profile list
onreel profile show --profile balanced
onreel orch run create --project <projectId> --objective "What to do" --profile balanced
onreel orch dispatch start --run <runId> --task <taskId> --class heavy

An agent outside the profile is refused with executor_not_allowed. The default profile is set for the host (onreel profile default) or for a project (onreel project update --profile).

3.7 · Agent rights

Rights are a set of permissions granted "without asking": reading and editing files, files outside the worktree, shell commands, web and command networking, and onreel MCP calls. The ask, auto and full modes are presets of that set. full is the default: the agent runs commands with your rights, including outside the worktree.

terminal
onreel settings rights
onreel settings permissions --mode auto
onreel project update --project <projectId> --permission-mode auto

How rights turn into flags depends on the CLI: not every agent can "deny", so onreel settings rights without flags shows the outcome of each right for the enabled agents. More about protection is in the Security article.