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 sameclaudewith the Z.ai environment, the key comes from theZAI_API_KEYvariable;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,qwenandkimi. - Written conservatively and not tested:
codex,antigravity,grok,opencode,cursorandcopilot. 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.mcpsection: automatic delivery exists forclaude,glm,qwen,codex,copilotandopencode;claudeandqwenhave been tested on a live CLI, the other four have not. There is no automatic delivery forkimi,antigravity,grokandcursor:kimiaccepts an MCP config only as themcp.jsonfile, without variable references (~/.kimi-code/mcp.jsonor the launch directory's.kimi-code/mcp.json), inantigravityMCP servers are connected through the/mcppanel or a settings file, ingrokyou rungrok mcp addonce with theonreel orch mcpstdio command (by default~/.grok/config.toml; theGROK_CONFIGoverlay does not accept themcp_serverstable), andcursor-agenthas no documented MCP mechanism. Such an attempt runs without orchestration tools, and onreel says so with an event in the Run journal and themcpNotDeliveredfield 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,qwenandcodex. For the others it isunknown.
3.3 · Connecting an agent
- Install the CLI and sign in the way its vendor prescribes.
- Make sure the host sees the command: it looks in the
PATHof the environment it was started from, not in your interactive shell. - Check with
onreel doctor: every enabled agent has its ownagent.<id>line. - If you changed
PATH, environment variables, manifests orconfig.json, restart the host. - Start the agent manually in a project:
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:
- built-in;
- yours —
~/.onreel/agents/*.yaml; - 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.
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 heavyAn 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.
onreel settings rights
onreel settings permissions --mode auto
onreel project update --project <projectId> --permission-mode autoHow 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.