CLI reference
arugula drives the daemon from any shell, and from inside every pane,
where it’s on the PATH and talks to that pane’s daemon. arugula --help
lists its commands in the groups below, and arugula COMMAND --help lists
every option. What Claude Code’s hooks and Arugula’s clients run (ask,
hook, inbox, bridge and attention STATE) isn’t in that list:
arugula help plumbing lists it.
Options that work with every command:
%Nnames a pane or block (%3). Inside a pane, most commands default to that pane.--jsonprints the API’s JSON instead of a summary.--host NAME, anywhere on the line, talks to another daemon: a machine on your control account (afterarugula login), one in this daemon’s host list, or a URL (More machines).--ssh DESTtalks to the daemon on a machine you can ssh into (below).
These start, type into, wait on and read panes, and search what ran in them.
arugula ls # panes, what they're running, who needs youarugula run -- make test # in a new tab; prints its pane (%N)arugula run --wait -- cargo build # and exits with its exit codearugula run --split %4 --join --cwd ~/app # beside %4, on its machinearugula run --session work --policy rerun -- npm run devarugula attach %3 # use it from this terminal; Ctrl+] detachesarugula send %3 'git status' -e # type a line and press Enter (- reads stdin)arugula send %4 --wait 'fix the test' # prompt the agent there and wait for its turnarugula keys %3 C-c Up Enter # named keys: C-c, M-x, Up, Enter, F5, Space…arugula mouse %3 10 4 --button left --action click # at a cell, counting from 1,1arugula upload %4 shot.png # a file onto %4's machine, its path pasted inarugula tail %3 -f --text # follow output, escapes strippedarugula tail %3 --last-command # just the last command's outputarugula wait %3 --command-end # until what it started ends; exits with its codearugula wait %3 --match 'listening on' --timeout 30arugula capture %3 --scrollback [--ansi|--html]arugula process %3 # the foreground processarugula cd %4 ~/src # typed into %4's shell, only if it's at its promptarugula rerun %3 # type a failed command again, once the shell is idlearugula close %3 # its output stays in historyarugula export %3 -o session.cast # for asciinema play session.castarugula events -f [--pane %3] [--type command_end,attention] # NDJSONarugula history --failed --since 2h # commands across panes, newest firstarugula history --kind answer # who allowed or answered what (command, answer or agent)arugula log %3 --who # a pane's commands, and who typed in it over timearugula search 'panic|Traceback' --since 1d # the output of every panearugula fs ls -l ~/src # files on this machine, read-only (also stat, cat, watch, recent)arugula fs cat %4:~/app/log.txt # on the machine %4 runs on--policyis what the pane does after a restart:shell,none,rerun,rerun-askorhook:COMMAND.arugula waitalso takes--exit,--idleand--needs-input, and exits 124 on timeout.arugula send --waitexits 0 when the turn ended, 2 when the agent needs someone, 3 when it stalled (nothing started) and 4 when it’s still running at--timeout.
See Panes and sessions and The swarm, attention and history.
Blocks
Section titled “Blocks”These open and drive blocks: web pages, ports, editors, diffs, files, team chat, pull requests and issues.
arugula describe %4 # any block: its type, place and statearugula describe %4 --detection # how an agent's screen reads: each rule, what it sawarugula call %4 navigate '{"url":"…"}' # one of a block's own methodsarugula open example.com # a web page (--split %3: beside a pane)arugula open --split right :5173/about # a dev server's port, beside this panearugula edit src/main.rs:42 # VS Code on this file's project, at line 42 (no path: here)arugula diff [%4] [REV_A [REV_B]] # what changed, as a diff block; prints it, then the filesarugula view %4:src/main.rs:42 # a file block there, at line 42, followed livearugula chat [ROOM] [--pin] # team chat as a block (the machine has to have joined control)arugula pr 84 # a pull request (or a URL, OWNER/REPO#N, GROUP/PROJECT!N)arugula pr comment %7 "LGTM" # also: review, merge, rerunarugula issue 89 # an issue (or a URL, OWNER/REPO#N)arugula issue agent %8 # an agent on it, in a worktree and branch of its ownarugula issue new -t "Frobs leak" -b "…" # open one (run by an agent: a draft a person sends)arugula issue comment %8 "On it"arugula editors # editors in the swarm, and editor blocksarugula editors install [--with cursor] # Arugula's extension into VS Code or Cursorarugula editors vsix -o arugula.vsix # or its VSIX, to install by handarugula issue also reads and writes a project’s own issues on Arugula
control, with no block and no daemon (after arugula login). #N or N is
a number in the current project: --project NAME (or $ARUGULA_PROJECT),
else the project this directory’s GitHub repo is linked to, else your
personal one. --native and --github pick whose issues, whatever the
project’s issue home says.
arugula issue new -t "Frobs leak" --label bug --assignee me # in the current projectarugula issue list [--state closed|all] # newest first (OWNER/REPO: a linked repo's, on GitHub)arugula issue show 12 # its body, timeline and threadarugula issue comment 12 "On it"arugula issue close 12 [--reason not_planned] [-c "…"] # completed, not_planned or duplicatearugula issue reopen 12arugula issue edit 12 --add-label p1 # title, body, labels or assigneesarugula issue export -o issues.json # every native issue, with its timeline and commentsSee Blocks and Pull requests and issues.
Agents
Section titled “Agents”These start and answer agents.
arugula agent "fix the failing test" # an agent block; prints its id (--codex, --acp CMD, --model, --cwd, --wait)arugula agent --allow Read --permission-mode acceptEdits "…" # pre-approve tools and pick its mode (--user-settings)arugula agent --mcp 'NAME=COMMAND' "…" # give it an MCP serverarugula wait %5 --needs-input # until it asks; prints the request as JSONarugula call %5 approve # or deny, answer, decline, send, cancelarugula claude ls [--live] [--all] [words] # Claude Code conversations here (--host all: every machine)arugula claude open 3fa9c1 # one, as a stopped agent blockarugula agent --resume 3fa9c1 "and now?" # continue it in a blockarugula agent --fork 3fa9c1 # a new session with its historyarugula attention [--json] # what wants you and whyarugula rules # standing permission rules (--forget N, --forget-all)arugula ide [--diffs NAME] # the daemon as Claude Code's IDE; where its diffs goarugula shell-env [--refresh] # the environment that blocks running your tools getSee Agents and The swarm, attention and history.
Sharing
Section titled “Sharing”These share sessions and panes with other people.
arugula invite sam@example.com --note "the flaky test" # share this session, notify them alonearugula invite bea --role editor --drive 30 --pane %4 # may also type in %4 for 30 minutesarugula access [grant SESSION WHO ROLE | revoke SESSION WHO | log] # ROLE: viewer, editor or ownerarugula share %3 --ttl 2h # a read-only link to a pane (tailnet)arugula shares # links that still work; shares revoke IDarugula share %3 --guest # an ssh invite instead, where the owner turned on Guest SSH accessarugula guests # ssh invites that still work; guests revoke IDMachines and control
Section titled “Machines and control”These reach other machines, through Arugula control, ssh or your tailnet, and say how Arugula is doing on this one.
arugula status # the daemon, control, each agent's adapter, Claude Code's MCP serverarugula web # this machine's page in your browser, signed in (--print: the link)arugula login # sign this CLI in to control: Allow it in a signed-in browserarugula logout # end its sessionarugula hosts # this daemon's host list, and control's machines once logged inarugula --host mini attach %2 # a machine on your account, direct or relayedarugula join [--ssh me@server] # add this machine (or one over ssh) to your accountarugula --ssh me@server ls # a machine you can ssh into; installs Arugula there if askedarugula hosts add NAME https://{machine}.{tailnet}.ts.net # or ssh://me@serverarugula hosts rm NAMEarugula --host NAME run -- make test # a pane on that machine, in its own layoutarugula grants # what your machines' agents may do with your things on controlarugula grants add laptop threads.read --project acme # also threads.post, issues.write, runs.read…arugula grants revoke laptop [POWER] # all its live grants, or one; grants restore gives cloud.drive backarugula agent-tokens # tokens for agents with no machine (made on the platform page)arugula agent-tokens calls NAME # what one's agent did; agent-tokens revoke NAMEarugula telemetry on|off|status # usage and crash reports from this machinearugula status exits 1 when the daemon doesn’t answer or control dropped
the machine. See Arugula control.
Cloud and projects
Section titled “Cloud and projects”These work on a project on Arugula control: its cloud workspaces, runs,
deploys, linked GitHub repos and drafts. They need arugula login.
--project names a project by id or name; without it, it’s your personal
one.
arugula cloud create dev --repo https://github.com/acme/app --setup setup.sharugula cloud ls # cloud workspaces, and how each one's setup goesarugula cloud open dev # wakes it if it's paused, and says its machinearugula cloud key set anthropic # the project's own inference key, from stdinarugula cloud preview public dev 5173 # a public address for a port, for 7 daysarugula runs start --spec nightly # a run spec, or a command after --, on a cloud workspacearugula runs spec add nightly --workspace dev -- make test # a named run (also: schedule add, rule add)arugula runs list # a project's runs, newest firstarugula runs logs RUN --follow # its log, or its pane while it runsarugula deploys envs # a project's environmentsarugula deploys plan --env prod --commit SHA --repo acme/app # plan a deploy and print the planarugula deploys request DEP # ask the project's owners to approve it (they do, with a passkey)arugula deploys show DEP # its plan, state and logarugula project link acme/app # link a GitHub repo (also: ls, unlink)arugula draft ls [OWNER/REPO#N] # comments, reviews and issues waiting for a person to sendarugula draft send DRAFT # send one as you (also: show, discard)arugula forge inbox # what wants you on your linked repos, newest firstarugula forge done OWNER/REPO#N # out of the inbox while the reason holds (also: seen, --undo)See Cloud workspaces and Linked GitHub repositories.
These install the daemon and set up Claude Code (or Codex) with Arugula.
arugula install [-- FLAGS…] # install the daemon: arugulad install with these argumentsarugula setup claude # Claude Code's adapter, Arugula's MCP server and its hooks (setup codex: Codex's adapter)arugula hooks install [--project DIR] [--dry-run] # just Claude Code's hooks, into its settings.jsonarugula hooks status # which of them are therearugula mcp # an MCP server on stdioarugula mcp token --name laptop [--scope read] # a token for /mcp over HTTP (--list, --revoke NAME)arugula setup claude says what changed, naming the settings file it wrote
the hooks to. arugula ask, arugula hook, arugula inbox and arugula attention needs-input|done are Claude Code’s hooks, and arugula bridge is
what clients run; you don’t run them yourself. arugula help plumbing
lists them. See Agents and MCP tools.
--ssh DEST reaches a machine with your own ssh (your ~/.ssh/config,
keys and agent; a password or 2FA prompt shows in your terminal once). One
connection per machine carries every command after it. The first time, if
the machine has no Arugula, it offers to put this version in ~/.local/bin
there (copied over ssh, so the machine needs no network) and to start its
daemon. Declining is remembered.
ARUGULA_SSH_INSTALL=yesanswers yes to installing.ARUGULA_SSHreplaces thesshcommand.- By default, panes on the remote machine can use your local ssh agent (for
git push) while you’re connected;ARUGULA_SSH_AGENT=noturns that off.
--ssh isn’t available from or to Windows.
The daemon: arugulad
Section titled “The daemon: arugulad”arugulad installs, updates and joins the daemon itself.
arugulad install [-- FLAGS…] # install and start the service; flags go to the daemonarugulad install --system # start at boot with nobody logged in (macOS, Windows)arugulad uninstall # remove the service (binaries and state stay)arugulad update [-y] # update to the latest releasearugulad join https://control.arugula.io [--team ID] [--name NAME] # then Add it in controlarugulad join https://control.arugula.io --token ajt_… # a join token: joins at oncearugulad sharing log # who reached this machine through controlarugulad sharing remote-input off # everyone through control only watches; `on` lets them typearugulad leave # take this machine off controlarugulad telemetry on|off|status [--json] # usage and crash reports (also: arugula telemetry …)arugula telemetry status shows whether this machine sends usage and crash
reports, and the next report exactly as it would go. The first arugula
command at a terminal asks once; see the FAQ.
Its flags are in Service and logs. On a Mac where the desktop app runs the daemon, see The Mac app’s daemon.
The HTTP API
Section titled “The HTTP API”The same calls are an HTTP API (/api/…) on the daemon’s Unix socket and,
for callers it lets in (Who gets in), on its port.
Its types are in
crates/proto/src/api.rs;
arugula --json shows what each command gets back.
arugula mcp is Arugula’s MCP server, for Claude Code, Codex or any MCP
client: claude mcp add arugula -- arugula mcp. The tools, which ones to
allow without asking, and the HTTP endpoint are on
MCP tools.
Claude Code in a pane
Section titled “Claude Code in a pane”Claude Code’s hooks (arugula hooks install) put its questions and
permission prompts on cards and take follow-ups from your team. The hooks
and what each part does are on
Agents.
Next steps
Section titled “Next steps”- Service and logs: the daemon’s flags and where it keeps state.
- MCP tools: the same jobs as tools for agents.