Spawn
Start a worker session of any supported CLI with a first task, and get its name back once it registers.
From the command line
conveno spawn codex --cwd ~/code/api --task "Write tests for the users migration"
conveno spawn claude --task-file tasks/schema.md
conveno spawn opencode --window --task "Summarise the open TODOs"
The CLI argument is one of claude, codex, opencode, antigravity or grok, and the CLI must be installed. It asks before starting unless you pass --yes.
The new session registers like any other, shows in conveno status marked spawned, and takes messages by name. Pass --name to choose the name, otherwise the usual <cli>@<repo>-<n> is used.
Background by default
A worker runs in the background and stays alive after its first task. The task is optional. Every message sent to it becomes its next prompt: at once when it is idle, Codex included, or as soon as its current turn ends. Stop it with conveno stop <worker>, which cancels its current turn, ends the CLI and everything it started, and tells the session that spawned it. A worker whose CLI exits or crashes does the same on its own.
What a background worker may do without asking is set by an access preset. A worker spawned without --access gets your saved setting, which is full unless you change it.
The first task is the CLI's initial prompt argument. For a CLI with none, such as Antigravity, it is sent as a Conveno message once the session registers, which needs the command to run inside an agent session.
Worker access
| Preset | What the worker may do without asking |
|---|---|
read | Read and search files, and list folders with simple commands such as ls or cat. |
edit | Everything in read, and edit and move files and fetch pages. Running commands is asked. |
full (default) | Anything, with no questions. |
Each preset also sets the CLI's own mode where the CLI has one:
| CLI | read | edit | full |
|---|---|---|---|
| Claude Code | plan | acceptEdits | bypassPermissions |
| Codex | read-only | workspace-write | agent-full-access |
| OpenCode | plan | build | build |
| Antigravity | plan | accept-edits | default |
| Grok | none; Conveno's own filter covers it | ||
The CLI's own rules decide what it asks about. For example, Claude Code treats some commands as read-only and runs them without asking, even in plan mode.
Where to set it
conveno setupasks once.--worker-access read|edit|fullanswers for you.- On the home screen, open the menu with
/and pick "Worker access". - Per worker:
conveno spawn --access read|edit|full, or theaccessfield of the lead'sspawn_sessiontool.
When the worker asks
A call the preset does not cover goes to the session that spawned the worker, as a "wants to run" notice. The lead answers with the answer_permission tool: allow (this once), always (the same call again from this worker, until it stops) or deny. Conveno's own tools are always allowed.
If nobody answers, Conveno waits 1, 2 (the default) or 5 minutes, then denies the call (the default) or allows it. Both are set in the home menu under "Worker access".
A worker you spawned from your own terminal has nobody to ask, so a call outside its preset is denied. Every denial, asked or not, shows on the worker's row on the home screen and in conveno status as "denied: ..." until its next turn.
A denial refuses only that call, and the worker carries on. Codex is the exception for a request to leave its sandbox: there it offers only "Yes" and "Cancel", so a denial ends its current turn.
Workers started with conveno spawn belong to you: they have no spawner, so calls outside the preset are denied and shown on its row. An agent starts workers with the spawn_session tool so its asks and replies come back to it.
The first task is the CLI's initial prompt argument. For a CLI with none, such as Antigravity, it is sent as a Conveno message once the session registers, which needs the command to run inside an agent session.
Model and effort
A worker can run on a chosen model and effort. Pass --model and --effort to conveno spawn, or model and effort to the spawn_session tool. The names are the CLI's own (sonnet, grok-4.6, provider/model); Conveno keeps no list of models and passes them through as given.
For each field, the first of these wins: what the spawner asked for, then your default for that CLI, then the CLI's own default. The home menu "Worker models" sets the defaults. A worker's model and effort show as, for example, sonnet ยท high on its row and in conveno status.
A name the CLI does not offer leaves its default in place, and the spawner is told what the CLI offers (or, for a worker you started yourself, it is written to the worker's log). Window workers get the CLI's own launch flags instead (--model, -m and so on). OpenCode has no effort flag in a window, so effort is ignored there.
In a window
Add --window to open the real CLI in a new terminal, so you can watch it and take over:
- Windows: Windows Terminal (
wt -w 0 new-tab), otherwise a new console window. - macOS: Terminal.app, or iTerm2 when it is your terminal.
- Linux: a new tmux window when you are inside tmux, otherwise the first of
x-terminal-emulator,gnome-terminal,konsole,kitty,wezterm,alacrittyandxterm.
With none of those, the command exits 1 and tells you to leave out --window. The task travels in a launch file that the new terminal deletes as it starts, so it never appears on a command line. You close a window yourself.
How background workers run
Conveno drives the worker through the CLI's Agent Client Protocol (ACP) server: opencode acp, agy acp and grok agent stdio. Claude Code and Codex have no ACP server of their own, so they need an adapter: @agentclientprotocol/claude-agent-acp or @agentclientprotocol/codex-acp. When one is missing, conveno init asks once whether Conveno may run it with npx -y <package>@<pinned version> on first use. If an adapter is already on PATH it is used instead, and if you say no, init prints npm i -g for the pinned version. CONVENO_ACP_CODEX_CMD and CONVENO_ACP_CLAUDE_CMD replace the command. The adapters use the CLI's own sign-in; Conveno never reads it. A small conveno acp-host process drives each worker.
The adapters are third-party packages from the Agent Client Protocol project, fetched from npm at a pinned version and licensed Apache-2.0. Conveno does not bundle or install them. @agentclientprotocol/claude-agent-acp depends on Anthropic's Claude Agent SDK, which you use under Anthropic's terms. The first start through npx downloads the package (the Codex adapter pulls @openai/codex) and can take minutes; Conveno allows up to six minutes for it. conveno doctor shows how each worker would start, and conveno spawn prints the adapter it used.
From an agent
The spawn_session tool does the same for an agent. It takes a CLI from the fixed list, a folder inside your home folder, a name, a task, an optional window flag and, for background workers, an optional access preset, an optional model and effort, and nothing else. It returns the new session's name once it registers. The new session records which session asked as spawnedBy, which is how Conveno tells a worker from a session you started yourself.
Guards
- The CLI must be installed. Conveno runs only the unmodified official CLI, under your own login or API key.
- The folder must be inside your home folder unless you pass
--cwdyourself. - At most 8 spawned sessions run at once.
CONVENO_SPAWN_MAXchanges that. - A spawned session cannot spawn more than 3 levels deep.
- A task is at most 16,000 characters.
- Spawning happens only on your machine, and only when you or the lead session asks. Nothing runs on a schedule.
- For heavy or unattended spawning, use an API key rather than a subscription login. Check each CLI's terms.