Skip to content

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:

  • %N names a pane or block (%3). Inside a pane, most commands default to that pane.
  • --json prints the API’s JSON instead of a summary.
  • --host NAME, anywhere on the line, talks to another daemon: a machine on your control account (after arugula login), one in this daemon’s host list, or a URL (More machines).
  • --ssh DEST talks 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.

Terminal window
arugula ls # panes, what they're running, who needs you
arugula run -- make test # in a new tab; prints its pane (%N)
arugula run --wait -- cargo build # and exits with its exit code
arugula run --split %4 --join --cwd ~/app # beside %4, on its machine
arugula run --session work --policy rerun -- npm run dev
arugula attach %3 # use it from this terminal; Ctrl+] detaches
arugula 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 turn
arugula 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,1
arugula upload %4 shot.png # a file onto %4's machine, its path pasted in
arugula tail %3 -f --text # follow output, escapes stripped
arugula tail %3 --last-command # just the last command's output
arugula wait %3 --command-end # until what it started ends; exits with its code
arugula wait %3 --match 'listening on' --timeout 30
arugula capture %3 --scrollback [--ansi|--html]
arugula process %3 # the foreground process
arugula cd %4 ~/src # typed into %4's shell, only if it's at its prompt
arugula rerun %3 # type a failed command again, once the shell is idle
arugula close %3 # its output stays in history
arugula export %3 -o session.cast # for asciinema play session.cast
arugula events -f [--pane %3] [--type command_end,attention] # NDJSON
arugula history --failed --since 2h # commands across panes, newest first
arugula 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 time
arugula search 'panic|Traceback' --since 1d # the output of every pane
arugula 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
  • --policy is what the pane does after a restart: shell, none, rerun, rerun-ask or hook:COMMAND.
  • arugula wait also takes --exit, --idle and --needs-input, and exits 124 on timeout.
  • arugula send --wait exits 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.

These open and drive blocks: web pages, ports, editors, diffs, files, team chat, pull requests and issues.

Terminal window
arugula describe %4 # any block: its type, place and state
arugula describe %4 --detection # how an agent's screen reads: each rule, what it saw
arugula call %4 navigate '{"url":"…"}' # one of a block's own methods
arugula open example.com # a web page (--split %3: beside a pane)
arugula open --split right :5173/about # a dev server's port, beside this pane
arugula 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 files
arugula view %4:src/main.rs:42 # a file block there, at line 42, followed live
arugula 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, rerun
arugula 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 own
arugula 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 blocks
arugula editors install [--with cursor] # Arugula's extension into VS Code or Cursor
arugula editors vsix -o arugula.vsix # or its VSIX, to install by hand

arugula 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.

Terminal window
arugula issue new -t "Frobs leak" --label bug --assignee me # in the current project
arugula issue list [--state closed|all] # newest first (OWNER/REPO: a linked repo's, on GitHub)
arugula issue show 12 # its body, timeline and thread
arugula issue comment 12 "On it"
arugula issue close 12 [--reason not_planned] [-c "…"] # completed, not_planned or duplicate
arugula issue reopen 12
arugula issue edit 12 --add-label p1 # title, body, labels or assignees
arugula issue export -o issues.json # every native issue, with its timeline and comments

See Blocks and Pull requests and issues.

These start and answer agents.

Terminal window
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 server
arugula wait %5 --needs-input # until it asks; prints the request as JSON
arugula call %5 approve # or deny, answer, decline, send, cancel
arugula claude ls [--live] [--all] [words] # Claude Code conversations here (--host all: every machine)
arugula claude open 3fa9c1 # one, as a stopped agent block
arugula agent --resume 3fa9c1 "and now?" # continue it in a block
arugula agent --fork 3fa9c1 # a new session with its history
arugula attention [--json] # what wants you and why
arugula rules # standing permission rules (--forget N, --forget-all)
arugula ide [--diffs NAME] # the daemon as Claude Code's IDE; where its diffs go
arugula shell-env [--refresh] # the environment that blocks running your tools get

See Agents and The swarm, attention and history.

These share sessions and panes with other people.

Terminal window
arugula invite sam@example.com --note "the flaky test" # share this session, notify them alone
arugula invite bea --role editor --drive 30 --pane %4 # may also type in %4 for 30 minutes
arugula access [grant SESSION WHO ROLE | revoke SESSION WHO | log] # ROLE: viewer, editor or owner
arugula share %3 --ttl 2h # a read-only link to a pane (tailnet)
arugula shares # links that still work; shares revoke ID
arugula share %3 --guest # an ssh invite instead, where the owner turned on Guest SSH access
arugula guests # ssh invites that still work; guests revoke ID

See Sharing and Guest SSH.

These reach other machines, through Arugula control, ssh or your tailnet, and say how Arugula is doing on this one.

Terminal window
arugula status # the daemon, control, each agent's adapter, Claude Code's MCP server
arugula 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 browser
arugula logout # end its session
arugula hosts # this daemon's host list, and control's machines once logged in
arugula --host mini attach %2 # a machine on your account, direct or relayed
arugula join [--ssh me@server] # add this machine (or one over ssh) to your account
arugula --ssh me@server ls # a machine you can ssh into; installs Arugula there if asked
arugula hosts add NAME https://{machine}.{tailnet}.ts.net # or ssh://me@server
arugula hosts rm NAME
arugula --host NAME run -- make test # a pane on that machine, in its own layout
arugula grants # what your machines' agents may do with your things on control
arugula 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 back
arugula 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 NAME
arugula telemetry on|off|status # usage and crash reports from this machine

arugula status exits 1 when the daemon doesn’t answer or control dropped the machine. See Arugula control.

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.

Terminal window
arugula cloud create dev --repo https://github.com/acme/app --setup setup.sh
arugula cloud ls # cloud workspaces, and how each one's setup goes
arugula cloud open dev # wakes it if it's paused, and says its machine
arugula cloud key set anthropic # the project's own inference key, from stdin
arugula cloud preview public dev 5173 # a public address for a port, for 7 days
arugula runs start --spec nightly # a run spec, or a command after --, on a cloud workspace
arugula runs spec add nightly --workspace dev -- make test # a named run (also: schedule add, rule add)
arugula runs list # a project's runs, newest first
arugula runs logs RUN --follow # its log, or its pane while it runs
arugula deploys envs # a project's environments
arugula deploys plan --env prod --commit SHA --repo acme/app # plan a deploy and print the plan
arugula deploys request DEP # ask the project's owners to approve it (they do, with a passkey)
arugula deploys show DEP # its plan, state and log
arugula 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 send
arugula draft send DRAFT # send one as you (also: show, discard)
arugula forge inbox # what wants you on your linked repos, newest first
arugula 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.

Terminal window
arugula install [-- FLAGS…] # install the daemon: arugulad install with these arguments
arugula 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.json
arugula hooks status # which of them are there
arugula mcp # an MCP server on stdio
arugula 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=yes answers yes to installing.
  • ARUGULA_SSH replaces the ssh command.
  • By default, panes on the remote machine can use your local ssh agent (for git push) while you’re connected; ARUGULA_SSH_AGENT=no turns that off.

--ssh isn’t available from or to Windows.

arugulad installs, updates and joins the daemon itself.

Terminal window
arugulad install [-- FLAGS…] # install and start the service; flags go to the daemon
arugulad 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 release
arugulad join https://control.arugula.io [--team ID] [--name NAME] # then Add it in control
arugulad join https://control.arugula.io --token ajt_… # a join token: joins at once
arugulad sharing log # who reached this machine through control
arugulad sharing remote-input off # everyone through control only watches; `on` lets them type
arugulad leave # take this machine off control
arugulad 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 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’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.