blog / , updated
qoop CLI Commands: Every Command, Flag and Exit Code
This page lists the qoop CLI commands in full: the 59 top-level entries in qoop --help and their subcommands. Find your job in the group table and copy the usage line. The tables follow qoop 0.17.1.
How the qoop CLI commands are grouped
| Group | Commands |
|---|---|
| Start, attach and stop | qoop, attach, --space, --version, reset, stop, restart |
| Terminals and agents | agents, read, history, messages, context, send, prompt, wait, new, close, focus, reload-manifests |
| Worktrees and races | worktree, race |
| Herdr plugins | plugin |
| Spaces | ls, sleep, wake, space |
| Remotes and setups | --remote, remote, setup |
| Phone and account | pair, login, logout, devices, bridge, show |
| Notch and icons | notch, icons |
| Hooks and skills | hooks, skills |
| qass, tasks and schedules | qass, task, ask, schedule, doctor, report |
| Settings and config | config, settings, onboard, sound, avatar, telemetry |
| Update, uninstall and paths | update, uninstall, paths |
| Used by qoop itself | daemon, relay, ensure-awake, hook-report, sessions-index |
That is 59 entries. Five conventions apply to every command:
- Targets. A terminal is a number. Where a command takes
<target>(prompt,history,context,agents explain,wait), it resolves a terminal number, then an exact terminal name, then an exact program name; several matches is an error.closetakes a number only. --session <name>. Removed from the arguments wherever it appears. Onlydefaultis accepted, and it is ignored; any other name is refused.QOOP_SESSIONbehaves the same. There is no short form, becausesendandprompttext may contain-s.--generation G. Onsend,promptandclose: the write is refused unless the terminal still runs the process you read. G is the numberqoop agentsprints. It must be the last two words; after--it is text.- qass guard. When qass is the caller,
send,prompt,read,history,context,messages,wait,closeandagents explainrefuse a tab you told qass to leave alone withqoop qass watch off <tab>. A speed bump, not a lock. - Errors. Every error prints one
qoop: ...line on stderr. A word that is not a command is an error naming it, never the interface.
A row lists exit codes only where they are particular; the rest use the shared codes below.
Start, attach and stop
| Usage | What it does |
|---|---|
qoop | Opens the full-screen interface, starting the daemon if there is none and waking the space that slept last. Detach with ctrl-q; the shell keeps running. No flags. Exit 0 on a clean leave, 1 on failure. |
qoop attach | Attaches to one terminal with no interface, for pipes and scripts. Ctrl-Q (byte 0x11) detaches and prints [detached; the shell is still running]. No flags. Keys typed through it count as a person at that terminal for send and prompt. |
qoop --space <id|name> | The interface with that one space in it, made when the name is new. An empty space gets a tab in the current directory. Exactly one argument, else exit 2. |
qoop --version | Prints qoop <version>; -V is an alias. Exit 0. |
qoop reset | Restores a terminal left in raw mode by a killed client: turns off mouse, bracketed paste, focus reporting and alt screen, shows the cursor, runs stty sane. Exit 0. |
qoop stop | Ends the daemon and every tab. The next qoop brings back the same spaces, tabs and directories and resumes agents. Waits up to 8 s. |
qoop restart | Moves the daemon onto the binary on disk now; every tab, command and working agent keeps running. No network. When the move cannot be live it moves nothing, says why, exit 1. --help prints usage. |
Terminals and agents
| Usage | What it does |
|---|---|
qoop agents [--json]<br>qoop agents --watch [--json] | One line per terminal: term=N state=S program=P name=N workspace=W generation=G, plus background=N and subagents=N when nonzero, - for a missing value. No daemon prints nothing ([] with --json). A --json row may also carry command ({exit, millis, ended_at, agent}, the last finished shell command), clients (computer, phone, browser or attach for each connection with the terminal open) and typed_by ({kind, at}). --watch reprints each time the list changes, woken by the daemon, never a timer. Exit 2 for an unknown flag. |
qoop agents explain <target> [--json] | Why one terminal reads as it does: terminal=N state=S source=X program=P generation=G readiness=R workspace=W, then rule=R manifest=M, and a discarded: ... line only when the screen threw something away. |
qoop read <terminal> [--lines N] [--json] [--watch]<br>qoop read <terminal> --back UP [--lines N] [--json] | Prints the current screen as text. --lines N keeps the last N rows (not with --json). --watch reprints on each change; not with --back. --back UP reads history: N rows (200 by default), the first UP rows before the newest. Exit 2 for a bad flag or missing number, 1 for no such terminal. |
qoop history <target> [--last N] [--role user|assistant] [--json]<br>qoop history --dir <repo> [--last N] [--json]<br>qoop history --since <Nd|Nh|unix> [--json] [--out FILE] | Plain: another agent's recent transcript from its own files; default --last 20, at most 200. --dir: what you typed in a repo and its worktrees (Claude Code, Codex, opencode, not Gemini); default --last 200, at most 2000; refused outside a git repository. --since: what you typed to any agent on this computer, less what qoop or qass typed; --out FILE never overwrites. Exit 2 for bad arguments, 1 for no session. |
qoop messages <terminal> [--child ID] [--skip N] [--limit N] [--json] | The agent's chat, parsed from its own session file (Claude Code, Codex, Gemini CLI, OpenCode), newest last. --child ID reads one of its subagents. --skip N skips the newest N; --limit N is the page size (default 60). |
qoop messages --task <id> [--skip N] [--limit N] [--json] | The same chat, from the session the task's done claim recorded, read with no terminal: it still works once the task's tab is gone. A task never claimed done, or claimed before qoop kept records, has no record and says so. |
qoop messages detail <terminal> <tool_id> [--child ID] [--json] | The input and output of one tool call, each cut at 64 KiB, secrets masked. |
qoop context <target> [--last N] [--role user|assistant] [--lines N] [--json] | agents, read and history in one call: who the agent is, whether it is writable (and why not), its live screen and recent transcript. --last defaults to 20, at most 200. Exit 2 for bad flags, 1 for no such agent. |
qoop send <terminal> [--enter] [--paste] [--generation G] [--] <text...><br>qoop send <terminal> --key NAME [--key NAME...] [--generation G] | Types text; --enter appends Enter. --paste sends one paste (bracketed when the program asked), --enter 300 ms after. After -- every word is text. --key presses named keys 50 ms apart: enter esc tab shift-tab backspace space up down left right home end pageup pagedown, ctrl-a to ctrl-z. Text and keys in one call are refused. Also refused: empty text, a missing terminal, a terminal a person is at (keys from the interface, the phone, the browser or qoop attach in the last 180 s, or a line in the last 120 s), and, from qass's terminal, text past 8 writes to one tab in 6 hours or 20 from qass in an hour. Exit 2 for bad arguments, 1 for refusals. |
qoop prompt <target> [--wait] [--timeout SECS] [--generation G] [--] <text...> | Sends text plus Enter (a shell runs it as a command), as one paste, Enter after 300 ms. Sent to an agent from another qoop terminal, the text starts [from <name>, tab <n>], so the agent and you can tell who wrote it. Flags go right after the target; -- lets text start with a dash. --wait waits for the turn the prompt caused, with the status of qoop wait; blocked counts as stopped. --timeout SECS needs --wait, no default. Refused with exit 1: a trust prompt, a blocked agent, a sleeping terminal, a person at the terminal, qass's ceiling. Exit 124 on timeout, 2 for empty text or bad flags. |
qoop wait [target...] [--until STATE[,STATE...]] [--match TEXT] [--timeout SECS] [--json] | Blocks until a target reaches a state. No target means every agent terminal except the caller's. --until takes starting idle working blocked done failed uncertain unknown sleeping; the default is idle,done,blocked,failed. --match TEXT needs one target and waits for TEXT on its live screen, never scrollback. --timeout has no default. A target already in the state returns at once. Exit 0 reached, 124 timeout, 1 target closed or none to wait on, 2 bad flags or state. |
qoop new [--name NAME] [--cwd DIR] [--space ID|NAME] [-- command...] | Opens a terminal and prints only its number, so t=$(qoop new ...) works. -- command... is typed into the shell after its prompt, each argument quoted. Never starts a daemon. Exit 2 for unexpected arguments, 1 for refusals. |
qoop close <terminal> [--generation G] | Ends a terminal and everything it started, as ctrl-a x does. Refused: the terminal it runs in, a moved generation. Exit 2 for a missing or non-numeric terminal. |
qoop focus <terminal> [--json] | Shows that terminal in every attached interface. --json answers {"clients":[pid,...]}. |
qoop reload-manifests | Re-reads the agent-detection overrides without a restart; a bad file keeps the previous rules. Exit 1 when the daemon is not running or silent for 10 s. |
Worktrees
See the Claude Code worktree tutorial for the git side.
| Usage | What it does |
|---|---|
qoop worktree | Takes new, setup, finish, ls or rm. help, --help and -h print usage, exit 0; anything else exits 2. |
qoop worktree new <branch> [--base REF] [--path DIR] [--space ID|NAME] [--name NAME] [--no-setup] [-- CMD...] | Adds a git worktree beside the repo and a terminal in it. Default path <parent>/<repo>-wt-<slug> (feat/Login becomes feat-login). --base REF starts a new branch from REF (default HEAD), refused if the branch exists. An existing branch is checked out as is; one only on a remote, tracking it. --space, --name, -- CMD... as in qoop new. Refuses when qoop is not running. Run from qass's space, the terminal is marked as qass's for its lifetime, and its tasks say so (spawned_by). The terminal opens in --space, else the space whose folder is the repository, else the one with the deepest folder holding it, else the default space. Each linked worktree takes a number of its own for good, the lowest free from 1 (the main checkout is 0). Before the terminal opens, that space's [spaces.<name>.worktree] table in config.toml copies ignored files and runs setup. Output: worktree=<path> branch=<branch>, setup=<state>, terminal=<n>. setup= is done, none, skipped (--no-setup) or failed; a failure keeps the worktree, opens no terminal and exits 1. |
qoop worktree setup [<branch|path>] [--space ID|NAME] | Sets up a linked worktree that exists already (yours when none is named) as new does: claims its number, copies what is missing, runs setup, prints setup=<state>. For a retry after a failure, or a tree made by plain git worktree add. Refused on the main checkout. Opens no terminal; needs qoop running. |
qoop worktree finish <branch|path> [--pr|--merge|--discard] [--base REF] | Ends a linked worktree's work, from outside it: every mode refuses while any process is inside. Plain: refused with uncommitted changes, and unless the branch is proven merged into the base (an ancestor, every commit applied there, or a merged gh pull request whose head is the tip); then deletes origin/<branch> when it is at the tip, removes the worktree and deletes the branch. --pr pushes (never forced), opens or reuses a pull request (pushed, pr=<url>) and keeps the worktree and branch. --merge fast-forwards the main checkout's branch locally, then removes the worktree and branch; it never pushes. --discard removes the worktree and branch with their changes, the only mode that loses work, and takes no --base. Fetches, pushes and asks gh, so it needs the network; git that reaches the remote never prompts and is stopped after five minutes. |
qoop worktree ls [--stale] [--json] | Every worktree of this repository and the terminals inside each. --json is {path, branch, head, bare, terminals} rows. --stale keeps the linked worktrees that are clean, have no process inside, and are merged (nothing the base lacks) or old:<n>d (last commit 30 days old or more), adding why= (--json: a why field). Local refs only, no fetch and no gh. It only lists. |
qoop worktree rm <branch|path> [--force] | Removes a linked worktree, keeps its branch. Refused: the main worktree; any process of yours inside, named by pid (--force never overrides); your own shell inside; a dirty tree without --force. |
Races
A race gives one prompt to two to five agents, each on a branch of its own in its own worktree and tab, all from one commit. You or qass start one; a worker agent's terminal cannot start or drop one.
| Usage | What it does |
|---|---|
qoop race | Takes new, ls or rm. help, --help and -h print usage, exit 0; bare or anything else exits 2. |
qoop race new <name> --agents A,B[,...] [--base REF] [--wait [--timeout SECS]] -- <prompt...>|- | 2 to 5 agents (an [agents] name or claude, codex, gemini, opencode; a second of one agent is <agent>-2), each on a new branch race/<name>/<agent> in a worktree where worktree new puts one, set up as its space says, with a tab named after the branch and the agent started on the prompt (- reads stdin), then a blank line and the racer rule: change files in the worktree only, no commit, push, PR, merge, closing its tab or starting agents or races, and end with a short self-report. The name is lowercase letters, digits and dashes, at most 32. The base is --base or HEAD of the checkout it runs in, one commit for every racer, kept as the ref refs/qoop/race/<name>; uncommitted changes there are not in the racers. Everything is checked before anything is made. Prints race=<name> base=<sha> (<REF>), then per racer agent=<agent> branch=<branch> worktree=<path> setup=<state> terminal=<n> status=starting. |
qoop race new ... --wait [--timeout SECS] | Lists the terminals once a second until every racer ended, then prints agent=<agent> terminal=<n> end=<end> each: finished, failed, blocked (held 5 seconds; why=trust_required for a folder trust prompt, never answered), sleeping, closed, exited or not-started. Exit 0 only when every racer finished, 1 otherwise or when qoop stops while waiting, 124 past --timeout. |
qoop race ls <name> [--test CMD] | Per racer: agent=<agent> terminal=<n> status=<status> files=<n> added=<n> removed=<n> tests=<result> worktree=<path>. Files and lines are what the worktree changed since the base, committed or not, untracked files included; a count that may be low ends in +, an unknown one is -. --test runs CMD with sh -c in each worktree in turn, killed after 600 seconds: pass, fail, timeout, or -. It runs the racer's code. Exit 0 whatever the tests say. |
qoop race rm <name> [--keep AGENT] [--force] | Drops every racer but --keep, which must name a racer (else exit 2). Every racer is checked first and nothing is touched when any is refused: a working, starting or background racer, a racer running something other than its agent or a shell, and one whose folder holds the caller are refused whatever the flags; commits past the base and uncommitted changes are refused without --force. Then per racer the tab is closed, the worktree removed as worktree rm removes one and the branch deleted: removed agent=<agent> worktree=<path|-> branch=<branch>. The first error stops it with exit 1 and a rerun finishes it. The ref goes with the last racer. The usual end is --keep <winner> --force, since racers are told not to commit. |
A racer still working is never dropped, and neither is a folder a process still stands in: a tool server that an agent's own background service started there is named, and race rm stops until it ends.
Herdr plugins
qoop runs Herdr 0.9.5 terminal plugins unchanged. install and link print what a plugin would run first.
| Usage | What it does |
|---|---|
qoop plugin install <owner/repo[/subdir]> [--ref REF] [--yes] | Fetches from https://github.com (owner/repo only), checks out the default branch or --ref (one starting with - is refused), prints the preview, then asks install it? [y/N]. --yes is the only yes without a terminal. An id already installed is refused. A failed build records no consent. |
qoop plugin link <dir> [--yes] | Uses a folder as it is: the same preview, no build, no commit recorded. |
qoop plugin ls [--json] | Id, version, the commit recorded (none (linked) for a link) and whether it still matches your yes: ok, or the reason it would be refused. |
qoop plugin rm <id> | Removes consent, folder (a linked one is left as it is), state and startup commands. Its config folder stays and its path is printed. |
qoop plugin run <id.action> | Runs one action, consent checked first, through the plugin host when it runs, else here in the foreground; an action that calls herdr needs qoop running. |
Spaces
A space is a named group of tabs with an optional goal and folder.
| Usage | What it does |
|---|---|
qoop ls [--json] | Every space: id, name, state (awake, asleep, N of M asleep, stopped), tab count and goal:. --json is {id, name, state, tabs, sleeping, goal, dir} rows. |
qoop sleep <space> | --tab <terminal> [--json] | Ends a space's tabs or one tab, keeping them as records. Exactly one of the two. A running command, working or blocked agent, background job or a wait between tabs keeps a tab awake, and the answer says why. Exit 0 with no daemon (nothing is awake). |
qoop wake [space] | --tab <terminal> [--json] | Brings back a tab, a space's tabs, or the one that slept last, with directories and scrollback, agents resumed by id. Starts qoop if needed. Exit 1 when no tab came back. |
qoop space rm <id|name> | Removes a space with no tab in it, as ctrl-a W does. Refused for the default space and for a name two spaces share. |
qoop space goal <id|name> [text|-] | No text prints the goal, text sets it (- reads stdin), an empty text clears it. One line, 300 characters at most. |
qoop space dir <id|name> [path] | No path prints the folder new tabs start in; a path sets it and must exist. |
The three space verbs need a running daemon and never start one.
Remotes and setups
| Usage | What it does |
|---|---|
qoop --remote <name|ssh-target|ssh command> | The interface for another computer's qoop alone, over ssh. Checks in the foreground first (ssh can ask for a password). Exit 2 for no argument or an unknown target, 1 when the check fails. |
qoop remote | Takes add, rm or ls; bare is ls. Exit 2 for wrong usage. |
qoop remote add <name> <ssh-target> | Reaches the computer over ssh, checks its qoop, offers to install this version in ~/.local/bin there ([y/N], only at a terminal), saves it. Name: letters, digits, -, _, ., up to 24 characters. Target: a host like me@10.0.0.5, or ssh with -p, -l, -i, -J, -4, -6 or -o (Port, User, IdentityFile, ProxyJump, HostName, IdentitiesOnly). |
qoop remote rm <name> | Stops listing that remote. |
qoop remote ls | Prints <name> <target> per remote. |
qoop setup | Works on a Setup, a TOML file: show, trust, check. Trust is per machine, by content hash. An unknown verb is a usage error. |
qoop setup show <file> | Prints what it will run, its hash and its reproducibility level. |
qoop setup trust <file> | Prints the same, asks Run this? [y/N]; only y or yes records the hash. Exit 1 otherwise. |
qoop setup check <file> | Prints confirmed, or fails with not confirmed yet:. |
Phone and account
pair, login, logout, devices and bridge need the full qoop install from qoop.si. The hub is --hub URL, else the one saved at the last pairing or login, else wss://qoop.si.
| Usage | What it does |
|---|---|
qoop pair [--hub URL] | Pairs a phone over an end-to-end encrypted channel: a QR code, then a six-digit code the phone shows. One wrong code ends it. --help prints the usage; any other argument is refused. Needs the network. |
qoop login [--hub URL] | Links this computer to your account, so it shows on qoop.si/app and on your phone. --help prints usage; other arguments are refused. |
qoop logout [--hub URL] | Unlinks this computer. Its key and paired phones stay. |
qoop devices | Bare is ls. --help is not a help path; unknown subcommands exit 1. |
qoop devices ls | One line per device: <name> key <fingerprint> paired <today|yesterday|N days ago>. |
qoop devices rm <name> | Unpairs a device by name or fingerprint; open streams close at once. Exit 1 when no phone matches. |
qoop bridge | Runs this machine's end of the phone link in the foreground; the service pairing installs runs exactly this. Does not return. Needs the network. Exit 1 for an unknown argument. |
qoop bridge reload | Puts the installed bridge service back on the binary on disk. |
qoop show <file|url> [--note TEXT] | Inside a qoop terminal only: puts a screenshot, recording, report or url on your phone. A file is at most 25 MiB, recorded by path. A url is http or https, public, or http://localhost:<port> (also 127.0.0.1, [::1], port 1024 or higher) as a live preview. Exit 1 outside a qoop terminal, 2 for usage. |
Notch and icons
| Usage | What it does |
|---|---|
qoop notch install|uninstall|status | macOS only: your agents in the notch, started at login. Bare is status. Exit 1 for usage. |
qoop notch install | Needs macOS 14 or newer. Sets notch.enabled = true if off, writes a LaunchAgent and loads it. |
qoop notch uninstall | Unloads and removes the LaunchAgent and the written app. |
qoop notch status | Prints not installed: ... or installed at <plist>, running|not running. |
qoop icons install|uninstall|status | On a Mac, the font qoop's icons are drawn from. Exit 1 for usage. |
qoop icons install | Puts the font into ~/Library/Fonts. Does nothing when icons = "off". |
qoop icons uninstall | Removes qoop's icon fonts. |
qoop icons status | Bare is the same: installed, not installed, or off in config. |
Hooks and skills
Hooks ship for claude, codex, gemini, cursor, opencode, copilot, droid, qwen, qodercli (9). Skills ship for claude, codex, gemini, opencode (4). An unknown name prints the names qoop ships one for.
| Usage | What it does |
|---|---|
qoop hooks <install|uninstall|status> [agent...] | Installs an agent's own hook so it reports what it is doing and its conversation. Bare is status. Exit 1 for usage. |
qoop hooks status | One line per agent: installed, installed, and older than this build: run install again, not installed, not present or off, removed on purpose. |
qoop hooks install [agent...] | Writes the hook script into <config dir>/hooks and one entry into the agent's own configuration, beside what is there. Idempotent. With no agent, only agents present are done. Codex needs trust and network_access = true in its workspace-write sandbox. |
qoop hooks uninstall [agent...] | Removes exactly what was added. |
qoop skills <install|uninstall|status> [agent...] | Teaches an agent what qoop is for, so it looks before it writes. Bare is status. Exit 1 for usage. |
qoop skills status | Per agent: installed, not installed, an older-build note, or experimental, unverified. |
qoop skills install [agent...] | Writes SKILL.md into the agent's skills directory. With no agent, the proven agents on this machine. |
qoop skills uninstall [agent...] | Removes exactly that file, and its directory only if left empty. |
qass, tasks and schedules
Start qass with qoop qass. qoop task is the work record each agent's terminal keeps, and qoop ask is how qass puts questions to you. Writes from task, ask, show and schedule identify the calling terminal by QOOP_TERMINAL and QOOP_TOKEN, set in every terminal qoop opens.
qass
| Usage | What it does |
|---|---|
qoop qass | Shows the running qass, wakes one asleep in the qass space, or starts it on [qass] agent from config.toml, then focuses it. ctrl-a Q goes there and back. Exit 2 for any other argument. |
qoop qass page | qass's page: state, agent, activity, wake, sleep and open, and sleep.qass_idle_minutes (never, 15, 30 or 60). |
qoop qass brief <n> [--json] | What qass must know before it writes to agent n: facts only, 200 words at most (its task, whether you are at that tab, recent writes, review rounds, repo: own or repo: not own). |
qoop qass watch [on|off]<br>qoop qass watch off|on <T52|space> | Your switch for qass's watcher. Plain prints watching on|off|resumed and the skipping ... lines. With a tab or space, off leaves it alone and on watches it again. |
Tasks
A task belongs to a terminal; an item is a card on a space's board, keyed like QOOP-3 (any case), #12 or 12. <text> may be - to read stdin (16,000 bytes at most). Exit 2 for wrong usage, 1 for refusals.
| Usage | What it does |
|---|---|
qoop task new [--replace] <goal> | Opens this terminal's task; --replace closes the open one as superseded. |
qoop task goal [--id KEY|N] <text|-> | Rewrites a goal (one line, 300 characters). On an item it is the short title, cut at 32. |
qoop task stage <stage> | One of investigating planning implementing reviewing verifying waiting-human. |
qoop task plan <text|-> | Records acceptance, plan, how it will be verified, risks. |
qoop task evidence <text|-> | Records a check that proves an acceptance point, and its result. |
qoop task done [summary] | Claims it is done; the claim is checked outside the agent. Never refused for unticked steps: the claim lists them (unticked: 3. e2e passes). qoop records the agent's session and the checkout's commit with it, for qoop messages --task. |
qoop task close <KEY|id> --verified|--failed|--dropped [reason] | Ends a task or item. Exactly one outcome flag; --dropped is for items and takes them off the board. Who asked is recorded on the close (verified by qass, verified by T12/3, or verified by unknown outside a qoop terminal) and decides nothing: anyone can still close any task. |
qoop task verify <KEY|id> [--repo <path>] [--json] | Closing facts, 200 words at most, ending Missing: <each>: the PR merged after the task opened, no open PR from the branch, the <repo>-wt-<slug> worktree gone, the approved install newer than the merge. Never closes. |
qoop task add [--space S] <short title> [--description <text|->] | Puts an item on a space's board; prints <KEY> (#id). With no --space it uses the space of the qoop terminal it runs in (outside one, the usage, exit 2). Refused in qass's space. An item a coding agent adds waits in Not started for your start: qass never starts it by itself. |
qoop task describe [--id KEY|N] <text|-> | Sets the item's description. |
qoop task steps [--id KEY|N] - | Replaces the item's steps from stdin, one per line, at most 30 of 200 characters. |
qoop task check [--id KEY|N] <n> [--undo] | Ticks step n, or unticks it. |
qoop task link [--id N] <KEY|#id><br>qoop task link <KEY|#id> --remote R --task N --name NAME --stage S | Puts this terminal's task (or task N) on an open item. The second form is how qass reports an agent on remote R that works on the item. |
qoop task unlink [--id KEY|N] | Takes the task off its item; by id an item loses every agent and is Todo again. |
qoop task start <KEY|id> | Asks for the item to start; it reads Doing for ten minutes. |
qoop task reopen <KEY|id> | Brings a closed item back, steps kept. |
qoop task planfile [--id KEY] <path> | Links the reviewed plan file to the item this terminal's task is on (or KEY); prints its hash. From the agent on the item or qass. |
qoop task approve <KEY|id> --hash <h> [--by owner] | Approves the plan for the hash (or its first 8 or more characters) the approver read; refused if the file changed since. qass only; --by owner when it carries the owner's word. |
qoop task show-me <KEY|id> [--off] | Marks the item as one whose plan the owner wants to see before it is built. qass only. |
qoop task next [--take] [--json] | The Todo item qass should start now, or none: .... --take writes its start (qass only): only items added after pickup began, at least 10 minutes old, three at work at most. |
qoop task ask <question> <option> <option> [<option> <option>] [--pick <letter>] | Asks the owner from the agent's own terminal: a card Q<n> with two to four one-tap options (label or label | why), pushed to the phone. Prints Q<n> waits on the owner; his answer is typed here at your next rest. and returns at once, so the agent goes on with what does not depend on it. Refused with no open task (open one with qoop task new), from qass's space, and while another card for the same agent is live. |
qoop task ls [--json] | Open tasks, or no open task. |
qoop task board [--json] [--dir DIR]<br>qoop task board --page | Items, then every space's goal and open tasks as Markdown. --dir DIR writes README.md and space-<id>.md. --page is a terminal page, first a list in three groups (In progress, Not started, Done folded), then with b lanes Todo, Doing, Done. In the list there is no Needs you group: a waiting row says why in place, an agent's task that no item holds is a row of its own in In progress, and tasks whose tab sleeps fold into one Asleep row. Keys h j k l, enter, c add, H and L move, / filter, v quiet cards, t type to qass, q leave. |
qoop task show [KEY|id] [--before E] [--json] | One task and what was recorded on it; without an id, this terminal's open task. |
qoop task rules [--turn [--prompt -]] | What an agent is told at session start, with its repo's block; --turn prints the line added to each request; --prompt - reads that request on standard input and, when it is the owner's own, adds one line about a question the conversation left unanswered (told once). |
Questions
| Usage | What it does |
|---|---|
qoop ask | Your question inbox, from qass's side. Prints usage, exit 2. |
qoop ask add E<n> --agent <T52|ubox/T2|-> --handle <word> --urgency now|later [--via-qass] | --via-qass keeps the card on that agent but sends the owner's answer to qass, not the agent. Reads a card on stdin as key: value lines (asked, doing, why, asks, options A: to D:, pick:), each one line of 200 characters at most. A bad card is stored nowhere. Only from qass's space. Exit 2 for usage or a rejected card, 3 when the daemon cannot store it, 4 when the number is taken. |
qoop ask close E<n> [--note <words>] | Ends a handled card; the default note is closed. Only from qass's space. |
qoop ask ls [--json] | Cards waiting, and the last five that ended. --json is {"live","ended"}. |
Schedules
Times are local; a bare HH:MM that has passed today means tomorrow.
| Usage | What it does |
|---|---|
qoop schedule | Prints usage, exit 0. |
qoop schedule add <name> (--cron "<m h dom mon dow>" | --at <HH:MM|YYYY-MM-DD HH:MM|+30s|+10m|+2h> | --watch "<command>") [--agent NAME] [--cwd DIR] [--space NAME] [--json] -- <prompt> | Exactly one timing. --watch runs the command with sh -c every 5 minutes, killed after 20 s; new output lines start the agent under the prompt (3000 bytes at most); the first check only notes what is there. --agent is an [agents] name or claude, codex, gemini, opencode (default [qass] agent); opencode starts with --standalone (its own server, so the qoop plugin can report its state) unless its [agents] line already says so. --cwd defaults to here. The prompt is required (- reads stdin). |
qoop schedule ls [--json] | One line per schedule, or no schedules. |
qoop schedule pause <id|name> | Stops firing. |
qoop schedule resume <id|name> | Fires again from now on; nothing that came due while paused is caught up. |
qoop schedule rm <id|name> | Forgets it. |
qoop schedule run <id|name> | Starts it now, leaving the next time alone. |
A missed run is caught up once: within 7 days for a repeat, 24 hours for a one-off, never when the next run is under an hour away. A worker's terminal cannot write schedules.
Doctor and reports
| Usage | What it does |
|---|---|
qoop doctor [--json] [--new <file>] | Reports, without acting, where the board, questions and agents disagree: I1 an item closed in the last day still has an open claimed task; I4 an agent waits on you with no question card; I6 a live card has nobody to take its answer. --new <file> prints only findings not in the file. Exit 0 clean, 1 findings, 3 a read failed. |
qoop report | qass's notes to qoop's maker about its own way of working. Prints usage, exit 0. |
qoop report draft | Reads area, what, cost, often, fix on stdin, checks them, keeps the note, prints the exact bytes it would send. |
qoop report list | The kept notes, each kept or sent. |
qoop report show <n> | One note as it would be sent. |
qoop report rm <n> | Forgets a kept note. |
qoop report send <n> [--yes] | Sends as [report] send allows: never under never; under ask only with --yes. Needs the network and qoop login; a machine not signed in keeps the note. |
qoop report delete <n> | Takes a sent note off the hub. Needs the network and qoop login. |
Settings and config
| Usage | What it does |
|---|---|
qoop config [--json] | Prints the path of config.toml, then each setting in force as key = value (not icons, qass.models.*, board.cards, board.view or telemetry; --json adds the first two), then agents.<name> lines and ! <problem> lines. Exit 1 for usage. |
qoop config set <key> <value> | Checks the value, then changes one setting and keeps every other line. Also agents.<name> '<line>': a launcher name of up to 24 lowercase letters, digits, - or _, not claude codex gemini opencode. |
qoop settings | Every setting on one page, with your pet; left and right change a value and write it at once. Piped, it prints what qoop config prints. |
qoop onboard | The first start: pet, sounds, light or dark, command key, notifications, sleep, the agent qass runs on. Needs a terminal; no arguments. |
qoop sound | Plays the notification sounds; keeps one for "finished" (notify.done_sound) and one for "waits on you" (notify.alert_sound) and sets notify.sound = true. No arguments. |
qoop avatar | Bare is show when stdin is not a terminal, else pick. Exit 1 for usage. |
qoop avatar pick | A batch of six pets; 1 to 6 keeps one, r deals again, q quits. |
qoop avatar show [--json] | Prints the picked pet. |
qoop avatar options [--json] | --hair none block mohawk spikes flat thin4 beacon cap; --hair-ink 212 (Pink) 214 (Gold) 226 (Yellow) 155 (Lime) 208 (Orange) 35 (Green) 135 (Violet) 39 (Sky); --eyes small big bigsmall squint squintw. |
qoop avatar set [--hair H] [--hair-ink N] [--eyes E] | Changes those parts, keeps the rest; at least one part, only values options lists. |
qoop telemetry [status|show|on|off] | The daily usage counts. Bare is status. Exit 2 for usage. |
qoop telemetry status | Prints usage counts: on, off or paused with a reason. |
qoop telemetry show | Prints every unsent day exactly as it would be sent. |
qoop telemetry off | Stops, deletes every count and the id, writes telemetry = false. |
qoop telemetry on | Writes it on and counts. Refused inside a qoop terminal and while DO_NOT_TRACK (anything but 0) or QOOP_TELEMETRY (0, false, off) opts out. |
The 21 keys that config set accepts
The config reference covers what each key changes.
| Key | Choices | Default |
|---|---|---|
prefix | ctrl- plus one of a b e f g k l n o p r t u v w x y | ctrl-a |
theme | auto, dark, light | auto |
icons | auto, on, off | auto |
copy_on_select | true, false | true |
notify.desktop | true, false | true |
notify.sound | true, false | false |
notify.done_sound | a sound name, any case (macOS: Basso Blow Bottle Frog Funk Glass Hero Morse Ping Pop Purr Sosumi Submarine Tink; Linux: the installed theme sounds) | Glass |
notify.alert_sound | the same names | Funk |
notify.mute | off, here, everywhere | off |
notch.enabled | true, false | true |
sleep.idle_minutes | whole minutes, 0 is never | 0 |
sleep.qass_idle_minutes | whole minutes | the value of sleep.idle_minutes |
daemon.exit_when_asleep | true, false | true |
qass.agent | claude, codex, gemini, opencode or an [agents] name | claude |
qass.models.best | a model name | opus |
qass.models.mid | a model name | sonnet |
qass.models.low | a model name | haiku |
board.cards | full, quiet | full |
board.view | list, board | list |
report.send | ask, always, never | ask |
telemetry | true, false | on |
Update, uninstall and paths
Install, update and uninstall walks through the first two in order.
| Usage | What it does |
|---|---|
qoop update [--check] | Fetches the newest release from qoop.si, verifies its SHA-256 checksum, replaces this binary, then moves this computer's daemon and each saved remote's onto it. A working agent or running command is never ended. Fails closed offline. --check only notes the newest release. Exit 1 for an unknown argument. |
qoop uninstall [--yes] | Lists what it removes and asks remove all of it? [y/N]; --yes or -y skips it. Order: notch, hooks, skills, icon font, logout, stop, then config, data, cache and logs directories and the qoop binary. Stops at the first failing step. Refused inside a qoop tab, and while a phone is still paired (qoop devices rm <name>). Exit 1 for refusals. |
qoop paths [name] [--json] | Where qoop keeps each kind of file, and how big; with a name, only that path. --json is {name, path, what, exists, bytes} rows. |
The eight names qoop paths takes:
| Name | Holds |
|---|---|
config | config.toml, remotes, paired phones, hooks, no-auto-update |
data | spaces and tabs (qoop.db), screen history, this Mac's key |
runtime | sockets and locks, made again at every start |
cache | what qoop can build again: the notch app |
logs | the bridge, hub and tunnel logs, update.log |
qass-config | the lessons qass keeps from you |
qass-data | qass's home: its skill, notes, goals and scratch |
skills | the qass skill, in qass's home |
Used by qoop itself
You rarely type these; other commands start them.
| Usage | What it does |
|---|---|
qoop daemon | Runs the daemon in the foreground; a startup lock serializes two starts. |
qoop relay | What ssh starts on the far computer: copies bytes between stdin and stdout and the daemon socket. |
qoop ensure-awake | Does nothing when a tab is awake; otherwise wakes the tab that slept last, or opens a shell. |
qoop hook-report --state <state> [--event user|tool|blocked|done] [--label ...] [--session-id S] | What an agent's hook calls inside a qoop terminal; quiet on success, 5 s limit. --state is starting idle working blocked done failed unknown. --label needs --event; both need --state. Exit 2 for usage mistakes, 1 otherwise. |
qoop hook-report --session-id S | Reports only the conversation id. |
qoop hook-report --subagent-start ID|--subagent-end ID|--subagents ID,... | Reports sub-agents, never a state; not combinable with the flags above. |
qoop plugin host<br>qoop plugin pane-exec <nonce> | The plugin host and what a plugin pane runs. Not for typing. |
qoop sessions-index <file> | Updates the agent-session index at the file; the daemon runs it. Exactly one argument, else exit 2. |
Exit codes in one table
| Code | Meaning |
|---|---|
| 0 | Success. |
| 1 | The command ran and failed: a refusal, no daemon, no such terminal. |
| 2 | The command was called wrong. |
| 3 | qoop ask add: the daemon cannot store the card. qoop doctor: a read could not be made. |
| 4 | qoop ask add: the card number is not free. |
| 124 | qoop wait and qoop prompt --wait timed out, as timeout(1) does. |
These print their usage as an error with exit 1, not 2: config, hooks, skills, avatar, notch, icons, sound, settings, onboard, devices, bridge, context, and uninstall for unknown arguments.
qoop --help (or -h) prints the full command list. --help prints usage and exits 0 on worktree, race, setup, schedule, doctor, show, report, update, restart, uninstall, pair, login and logout. Three commands treat it differently: qoop ls --help and qoop paths --help list, and qoop context --help is read as a target and fails.
Commands for scripts and agents
These qoop CLI commands are the ones to reach for in a script:
qoop agentslists terminals and states; itsgenerationis what--generationchecks.qoop context <target> --jsonsays whether a terminal is writable, and why not.qoop newprints only the terminal number:t=$(qoop new --space review -- claude).qoop prompt <target> --wait --timeout SECSsends and waits. It refuses while the agent is blocked; answer withqoop send <n> "y" --enter.qoop wait <target> --until blockedand--match TEXTblock until a state or a screen line.qoop worktree new <branch> -- claudegives an agent its own checkout;qoop task verifyreads the closing facts afterwards.qoop race new <name> --agents claude,codex --wait -- <prompt>gives several agents one prompt, each in its own worktree; its exit code is 0 only when every racer finished.
Once qoop skills install has run, the qoop skill teaches agents to read another terminal before writing to it, to prompt and wait, and to start work in a new terminal or worktree. Scripting coding agents with prompt and wait builds a longer example. This minimal one shows the status handling:
#!/bin/sh
# Example: send one job to terminal 3 and report how the turn ended.
t=3
gen=$(qoop agents | awk -v t="$t" '$1 == "term=" t { for (i = 1; i <= NF; i++) if ($i ~ /^generation=/) { sub(/^generation=/, "", $i); print $i } }')
if [ -z "$gen" ] || [ "$gen" = "-" ]; then
echo "terminal $t not found or has no generation" >&2
exit 1
fi
qoop prompt "$t" --wait --timeout 600 --generation "$gen" -- "run the tests"
status=$?
case $status in
0) echo "terminal $t finished the turn" ;;
124) echo "timed out waiting on terminal $t after 600 s" ;;
*) echo "qoop prompt failed with status $status" >&2 ;;
esac
exit "$status"
--generation makes qoop refuse the prompt if the process was replaced. Status 124 means only that the wait timed out.
To run these commands on your own agents, sign up at qoop.si and install with curl -fsSL https://qoop.si/install.sh | sh.