Rove

iOS client

Rove Mobile is an iPhone app that drives the Rove on your Mac: see every task and what it is waiting on, watch an engine's terminal, type into it, read the diff, start, land and delete tasks. The Mac stays the only place state lives; the phone holds no copy of your tasks, files or sessions.

The phone cannot reach the daemon's unix socket, so a small Mac-side process, rove-bridge, carries a fixed list of operations over one WebSocket. It is off unless you start it.

Start the bridge

From a checkout of the Rove repo:

bun install
bun run --filter rove-bridge start                      # your real Rove home
bun run --filter rove-bridge dev                        # the dev:sandbox home instead
bun run --filter rove-bridge dev -- --name ios          # a named sandbox home

It prints a pairing URL (and a QR code), then keeps running. It connects to the same daemon and PTY Host your TUI uses, starting them if they are down.

With no flags it listens on 127.0.0.1 only, which reaches the Mac itself and the iOS Simulator. A real phone uses one of two presets. packages/rove-bridge/README.md has the full setup for each, including the Cloudflare Tunnel and Access application.

PresetListens onPhone dialsTransport securityExtra check
--preset tailscalethe Mac's Tailscale IPv4 only (exits if there is none)ws://<MagicDNS name>:7878, or wss:// with tailscale serve + --public-hostWireGuard (plus TLS with tailscale serve)—
--preset cf127.0.0.1, for cloudflaredwss://<tunnel hostname>TLS to Cloudflare, then the tunnelCloudflare Access JWT (signature, issuer, AUD, expiry)

Plain ws:// on a LAN (--host <LAN address>) still works, but it is not a supported way to reach the bridge remotely: the token and terminal output travel in cleartext.

FlagEffect
--preset tailscale / --preset cfSee above.
--public-host <name>Hostname the phone dials over wss:// (tunnel hostname, or a tailscale serve name).
--cf-team, --cf-audCloudflare Access team and application AUD tag; also readable from <ROVE_HOME>/.rove/bridge/config.json.
--host <addr>Without a preset: an explicit listen address. Repeatable.
--port <n>TCP port, default 7878.
--rotate-tokenMint a new token and drop every --device token. Every paired phone must pair again.
--device <name>Print a link carrying that device's own token (minted on first use) instead of the shared one.
--list-devices, --revoke-device <name>List the per-device tokens, or revoke one without touching the others. See WEB.md.
--no-qrPrint the URL without the QR code.

Pair the phone

  1. Build and run the app (below), open Settings.
  2. Scan the QR code, or paste the URL, for example wss://rove.example.com/?token=…&preset=cf. A rove://pair?url=<percent-encoded URL> link opens the app straight into pairing. The app's network picker has two choices: direct (same Wi-Fi or Tailscale, 100.x or *.ts.net) and cloudflare. A URL with preset=cf selects cloudflare; any other URL, including the bridge's preset=tailscale, selects direct. Which address the bridge listens on is the bridge's preset, not the phone's.
  3. For cloudflare, also fill in CF-Access-Client-Id and CF-Access-Client-Secret from your Access service token. Either choice can carry additional request headers.
  4. The app stores the endpoint, token, preset and headers in the iOS Keychain and connects. It sends the token as Authorization: Bearer …, never in the URL. It reconnects by itself when the Mac or the bridge comes back.

The token lives in <ROVE_HOME>/.rove/bridge/token (mode 0600) and survives bridge restarts, so a paired phone stays paired. --rotate-token is the revoke button.

What the app does

  • Tasks. Every task across repos with its title, branch, engine and group — waiting-on-you, landing, ready-for-review, working, idle, unknown — sorted so what needs you is on top. The groups are computed by the same code as rove api context. A badge counts unread attention-inbox items. Pull to refresh; changes also arrive live.
  • Terminal. Each Terminal Tab of a task attaches to the hosted session in the PTY Host — the same session the TUI shows, so both see the output and both can type. A key row under the terminal (always visible, no keyboard needed) sends Esc, Tab, Shift-Tab, a sticky Ctrl, arrows, Enter and Ctrl-C, and leads with 1–4 and Enter while the tab waits at a menu; typing into the terminal goes through keystroke by keystroke; the composer sends an engine tab the whole message through tab.send, held until the turn ends when the engine is busy (held messages show above the field, each with a × that takes it back), and sends a shell tab a line, then Enter. Fit (default) resizes the shared session to the phone's screen, so the TUI pane re-wraps to the phone's width until it next resizes; Watch leaves the size alone and scales the font instead.
  • Archive. A row's menu archives a task: the row moves to the Archived fold at the end of the list, and the worktree, branch and sessions stay as they are. A busy task asks first. Unarchive is in the same menu.
  • New tab. An engine tab with a first message is rove api send --tab new; without one (an idle engine, or a plain login shell) it is rove api tab-new.
  • Sync with base. A task row's menu merges the task's base branch into its worktree. A conflict or uncommitted changes show the files to deal with.
  • Diff. Files changed on the branch versus its base (same base rule as the TUI's changes pane) and uncommitted files, each with its unified diff.
  • New task, land, delete. New task takes a repo, an engine and an optional first prompt. Land and delete ask twice; delete keeps the branch, as rove api delete does.
  • Search. Pages › search conversations finds what you and the agents wrote in any task, through rove api search. A hit opens its task on that tab.
  • Notifications. While the app is running, a task that moves into waiting-on-you, or from working to ready-for-review/idle, posts a local notification.
  • Demo. try a demo on the first screen runs the whole app against canned data bundled in the app (Sources/RoveMobile/Demo/demo-fixture.json, the same file scripts/fixture-bridge.ts serves to the UI tests): no Mac, no bridge, no network request. A strip on every screen says demo · not connected to a mac; connect a mac leaves it. Nothing about the demo is saved, so a cold launch starts on the pairing screen. It exists so App Store beta review can use the app without a Mac (packages/rove-ios/docs/REVIEW_NOTES.md).

Engine names in the app come from Rove's engine registry through the bridge.

Architecture

  • The bridge subscribes to the daemon as a gui client, the way an open TUI does, so the daemon does not idle-stop while a phone is the only UI.
  • Task rows come from task.list, the activity registry, the attention inbox and PTY Host liveness, folded by buildContext from rove api context. Mutations go through the rove api verbs themselves (add, delete, land, send --tab new, tab-new, tab-close), so they keep every guard those verbs have.
  • Each phone connection opens its own PTY Host socket. Closing the WebSocket detaches every session that phone watched; it never ends a session.
  • The daemon is unchanged. No HTTP or SSE was added to it.

Security model

  • Off by default. Nothing listens until you run the bridge.
  • Loopback by default. Remote access is --preset tailscale (tailnet address only) or --preset cf (loopback behind cloudflared); anything else is an explicit --host.
  • One bearer token. 32 random bytes, sent only as Authorization: Bearer; a token in the URL query is refused, so it never lands in proxy or tunnel logs. It is checked with a constant-time compare at the WebSocket upgrade; a missing or wrong token gets HTTP 401 and no socket. Every later frame rides that authenticated socket. The browser client (rove --web, WEB.md) cannot set that header, so it offers the same token as the Sec-WebSocket-Protocol rove.bearer.<token> next to rove.v1, and the bridge echoes only rove.v1. An upgrade whose Origin names another host is refused with 403; phones send no Origin.
  • Cloudflare Access (--preset cf). Before the token, the bridge verifies Cf-Access-Jwt-Assertion against the team's published keys (/cdn-cgi/access/certs) and checks issuer, AUD and expiry. Both layers must pass; each refusal is logged with the reason, never with the token or JWT.
  • Closed op list. The phone can call the operations listed below and nothing else. There is no generic daemon passthrough; anything else is refused with UNKNOWN_OP. api.invoke serves the validated rove api verb contract, not daemon RPCs: it grants nothing term.input into a shell does not, and its destructive verbs are logged like the destructive ops.
  • Terminal input is scoped. term.input only reaches a session this connection attached, and attach refuses a tab with no hosted session instead of spawning one.
  • Diff paths stay in the worktree. Absolute paths and .. are refused.
  • What the token grants. Whoever holds it can do what the app can: read task output, type into engine sessions (which run with your user's permissions), create, land and delete tasks. Treat the pairing URL like a password; rotate it if it leaks.
  • Transport encryption comes from the path. WireGuard for Tailscale, TLS for Cloudflare and tailscale serve. The bridge itself speaks plain ws://, so a LAN --host exposes the token and terminal contents to that network.

Protocol

JSON text frames over one WebSocket. Request {"id": 1, "op": "tasks.list", "args": {}}; reply {"id": 1, "ok": true, "result": {…}} or {"id": 1, "ok": false, "error": {"code", "message", …}}, where a refusal from a rove api verb also carries its hint, nextCommandArgs and refusal data; push {"event": "tasks" | "term.data" | "term.exit", "data": {…}}. The types live in packages/rove-bridge/src/protocol.ts. A slow op may also stream {"event": "op.progress", "data": {id, line}} to the connection that sent it, id being the request's; the reply still ends it (repo.clone streams git's progress lines, at most one per 150 ms). A client that ignores the event loses only the progress text.

OpArgsResult
hello—{protocol, apiVersion, roveVersion, host}; apiVersion is the verb contract api.invoke speaks
api.invokeverb, params? (keyed by flag name, as rove api schema --verb lists them)the verb's result; a refusal is the verb's full error object (API.md)
tasks.subscribe—{tasks, attention, gates}, then tasks pushes on change, and tabs pushes ({taskIds}) when only those tasks' Terminal Tabs changed (re-read them with task.tabs; older apps ignore it)
tasks.list—{tasks, attention, gates} (fresh read)
engines.listrepo? (absolute){engines: [{id, name, command, protocol, builtin}], preferred}; preferred is the engine a picker opens on: the one repo was last started on, else Settings' default
repos.list—{repos} (saved projects plus repos with tasks)
task.createrepo, engine?, prompt?, title?{taskId}
task.deletetaskId, force?, cascade? (also delete every descendant; absent, the task's children are promoted){status}
task.landtaskId, strategy? (merge/squash){landedOn, commit}
task.tabstaskId{tabs: [{id, kind, title, engineName, liveEngine?, alive, engineAlive, split?}]}; liveEngine= the engine running in the tab right now (null when the probe has no answer;engineName falls back to the configured one); split = {activeLeafId, root} while the tab is split (root is a tree of {kind: "leaf", id, title, own} and {kind: "group", orientation: "row" | "column", children}), absent otherwise
tab.newtaskId, kind? (engine default / shell), prompt?, engine?{tabId}; with a prompt it starts the engine on it (send --tab new), without one it opens the tab empty (tab-new); a shell tab takes no prompt or engine (BAD_ARGS)
tab.closetaskId, tabId{}
term.attachtaskId, tabId, leafId? (a split pane leaf-N beyond leaf-1; its stream is taskId::tabId::leaf-N), cols?+rows?, acks? (see term.ack){stream, alive, replay} (base64 bytes)
term.inputstream, data{}
term.resizestream, cols, rows{}
term.detachstream{}
term.ackstream, chars{}: for a stream attached with acks: true, the base64 chars of term.data / term.reset the client has parsed. Past ~1 MB unacked the bridge stops sending that stream's output; once all of it is acked it pushes term.reset {stream, replay} (reset the terminal, write the replay). Keeps Ctrl+C on a flood instant; without acks output flows as before.
term.revivetaskId, tabId{revived, resumed}: tab-revive for the tab term.attach would open (a viewport tab revives the session it shows); a running tab answers revived: false. Attach again afterwards.
diff.filestaskId{base, files: [{path, status, added, deleted, scope}]}
diff.filetaskId, path, scope (working, branch or task: commits and uncommitted work since the base){kind, text?, message?}
files.listtaskId{files, truncated} (tracked + untracked, not ignored)
file.readtaskId, path{path, mime, size, base64} (markdown, HTML, SVG, image or PDF, at most 5 MB, confined to the worktree)
review.listtaskId{notes, unsent} (notes live in state.json diffComments.<taskId>, shared with the TUI)
review.addtaskId, filePath, line, startLine?, code?, body{note}; code is the diff rows the note covers (sign + text per line), quoted in the prompt and compared later to flag a note whose code moved
review.edittaskId, id, body{note}: rewrites one note's text in place; NOT_FOUND for an unknown id
review.removetaskId, id{removed} (destructive)
review.sendtaskId, tabId?{sent, delivered, reason?}; notes are marked sent only when delivery is confirmed
worktrees.listnetwork?{projects: [{repo, worktrees: [{path, branch, dirty, branchOnRemote, verdict, verdictReason, taskId?, taskKind?, …}]}]}
worktrees.removepath, force{removed, residue?}; a dirty worktree is refused with code DIRTY_WORKTREE unless force (destructive)
attention.dismisstaskId, tabId?, deliveryId?{}; refused with GATE_NOT_DISMISSABLE when gateId is named, or when the tab holds only a decision row
gate.answergateId, option?, text? (at least one){delivered}; wraps daemon gate.answer with by: "bridge"
push.key—{publicKey}: the bridge's VAPID key (base64url) a browser subscribes with; UNAVAILABLE when the bridge sends no push (no --web)
push.statusendpoint{subscribed}: whether this endpoint is stored under this connection's token
push.subscribesubscription (PushSubscription.toJSON(): endpoint, keys.p256dh, keys.auth){}; kept in bridge/push.json (0600) under this connection's token. Pushes go out only while no page is on screen, follow the cross-task switch, and stop when the token is revoked
push.unsubscribeendpoint{removed}

Task area ops

Each wraps one rove api verb, daemon RPC or Rove helper; args are schema-checked, engine arguments are engine ids from engine-list (never a command line), and the three destructive ones are logged and confirmed twice in the app. Repo-scoped ops accept only repos repos.list knows (UNKNOWN_REPO otherwise): pass the path as repos.list returned it.

OpArgsResultWrapsDestructive
task.gettaskId{task} (path, prompt, engine, model, effort, PR detail, report)get-task
task.infotaskId{running, activity, changes, base, tabs: [{exit?, tail?}]}collect
repo.branchesrepo{branches, current}listLocalBranches
notes.listrepo{notes}note-list
worktree.adoptablerepo{worktrees, unreadable}RPC worktree.discoverAdoptable
task.spawnrepo (an absolute path; with machine, also a repo id on that machine: owner/name, host/owner/name or a clone URL), machine? (a registered machine's alias: add runs in its daemon), clone? (with machine and a repo id: that machine clones a repo it lacks, with its own git and gh sign-in; CLONE_FAILED carries git's error), engine?, title?, prompt?, branch?, baseBranch?, model?, effort?, count? (1–10) or agents? (id:N,…), status?, pin?, commandFrom? (a local task id: the new task starts on that task's own launch command, read on this Mac, never typed by the client; needs engine to be the engine that task runs, and is refused with machine, count or agents){taskIds, groupId?}add
task.renametaskId, title{}update --title
task.setBranchtaskId, branch{}update --branch
task.setCommandtaskId, engine{protocol?}update --command
task.setModeltaskId, model{}update --model
task.setEfforttaskId, level{}update --effort
task.setStatustaskId, status (six){}update --status
task.pintaskId, pinned{}update --pinned
task.keeptaskId, kept{}update --kept
task.movetaskId, direction (up/down/top){}RPC task.move
task.scheduleStarttaskId (an unstarted task), at (ISO-8601, in the future), prompt{taskId, at}RPC task.scheduleStartALREADY_STARTED when the task has its first message
task.cancelScheduledStarttaskId{}RPC task.cancelScheduledStart
task.startScheduledNowtaskId{outcome} (started, failed, dropped)RPC task.startScheduledNowNOT_SCHEDULED
project.forgetrepo{}RPC project.forgetyes
notes.deleterepo, id{deleted}note-deleteyes
task.openMainrepo{taskId}RPC task.ensureMain
task.openCheckoutrepo (a real git repo), engine?, title?{taskId}; a new top-level session in the project's own checkout (no branch, no worktree), beside the project's main row rather than under it. Start its engine with tab.new on the returned taskRPC task.ensureMain then task.openDir on the project root
worktree.adoptrepo, worktreePath (must be adoptable), branch?, title?, engine?{taskId}RPC worktree.adopt
repo.cloneurl (https/http/ssh/git/scp form, or a GitHub owner/repo resolved to ssh when gh config get git_protocol is ssh, else https), parentDir, folder?{path}; streams op.progress lines while git runscloneRepo
task.ensureWorktreetaskId{worktreePath}ensure-worktree
task.removeWorktreetaskId, force?{removed, worktreePath?, branch?}remove-worktreeyes

Task rows (tasks push and tasks.list) carry label, the name every client shows for the row: the engine's own conversation title when it has named the session (the live PTY title, status prefix stripped; the TUI's worktreeRowLabel rule), else the stored title, branch or path. The bridge computes it and re-pushes tasks within a few seconds of an engine retitle, so clients label, sort and search rows by it and never fetch tabs for naming. title stays the stored title, the one a rename edits. A row served by another machine, or from an older bridge, has no live title: label is the stored name, or absent, and the app falls back to title. Rows also carry optional pinned, routine (a task a scheduled routine's firing made, standing or fresh; clients fold these behind a count row or leave them to the Routines page), order, createdAt, updatedAt, changes ({added, deleted, ahead?, behind?} or {unreadable: true}, from the daemon's worktree.changes push; absent = not collected), rowTokens ({text, tone?, source, expiresAt}), prChip (conflict/failing/passing), prChipStale, noWorktree (true when the task has no worktree on disk yet; call task.ensureWorktree before opening it), and pr.mergeable. Engine rows carry optional models, effortLevels and ready. Older apps ignore them; the app decodes rows without them.

Task-row verb ops

Area ops in packages/rove-bridge/src/ops/taskops.ts; the client never names a directory to open, a command or a path to run.

OpArgsResultWraps
task.landPreflighttaskId{branch, landedOn, ahead?, refusal?, message?, baseDir} (read-only)RPC task.landPreflight
task.syncBasetaskId{baseRef, alreadyCurrent}; refusals carry SYNC_CONFLICT: <files> / SYNC_WORKTREE_DIRTYRPC task.syncBase
task.fixCheckstaskId, tabId?{outcome: "sent" | "none" | "unavailable", detail?}RPC pr.failingChecks + CI prompt + send --plain
task.openScratchengine?{taskId}; always the Mac's $HOME as a Scratch task. No engine = the one Scratch was last started on; a picked one is rememberedRPC task.openDir
task.setEnginetaskId, engine, effort?, model? ("" clears){}RPC task.setVendor
tab.movetaskId, tabId, direction (up/down){moved}moveTab on the persisted tab order
file.openExternaltaskId, path (relative to the worktree){}; opens an image, audio, video, PDF or font in the Mac's own opener. Refused (NOT_OPENABLE) for anything else, anything executable, and any path or symlink that leaves the worktreehelper openExternally
fs.subdirspath (absolute or ~){base, home, names} (read-only)listSubdirs
repo.probepath, adoptable?{ok, repo, reason?} or {ok, repo, branches, current, worktrees?} (read-only)validateRepoPath + branch helpers
github.reposnone{repos: [{nameWithOwner, description, isPrivate}]}, or {repos: [], reason: "missing" | "unauthenticated" | "failed"} when gh is absent, signed out or fails (read-only; never an error)gh repo list --limit 100
github.statusmachine?{status} (the github-status object), or {status: null, reason: "offline" | "outdated" | "denied" | "failed", message} for a machine that cannot answer (read-only; never an error)github-status (on machine)
github.loginmachine?, cancel?{ok: true, result: {state, code?, url?}}, or {ok: false, reason, message}; cancel stops the pending device flowgithub-login (on machine)
github.logoutnone{ok: true, result} (the new status) or {ok: false, reason, message}; destructive: signs this machine's gh outgithub-logout
github.syncmachine{ok: true, result} (that machine's new status) or {ok: false, reason, message}: this machine's GitHub account signed in on machinegithub-sync --to
welcome.env—{engines: [{id, name}], signedOut: [{id, name}], git, start} (read-only): the engines installed and signed in, those installed but signed out, git on PATH, and start = {repo, label, baseRef, engine} for the quick start on the repo rove --web was started in (null outside a repo, without git, or without a usable engine)probeableEngineIds + detectEngineStatuses, firstTaskRepo
file.openInEditortaskId, path (relative to the worktree){tabId}; opens the file in the Mac's configured editor (editor.kind / custom command, else $VISUAL/$EDITOR) in the task's editor tab, replacing the previous one. Refused for a path that leaves the worktree (BAD_FLAG), a missing file, or no editor (NO_EDITOR)tab-new --kind editor
plugin.panes—{panes: [{id: "<plugin>.<pane>", title, placement: "split" | "tab"}]} (read-only): panes of enabled plugins, never their commandslistPaneLaunches
plugin.paneOpentaskId, pane, tabId? (the tab to split){tabId, leaf?}; the pane's argv comes from the plugin manifest on the Mactab-new --kind pane
tab.openViewporttaskId, viewTaskId (same project){tabId}; a tab that shows viewTaskId's first engine session (its rows carry viewOf)tab-new --kind viewport
task.openEditortaskId{outcome: "opened" | "noEditor" | "failed", label?}: the task's worktree (materialised first when missing) in the Mac's editor, as the TUI's o (ROVE_OPEN_EDITOR, else an installed editor CLI or app); the command is never the client'shelpers detectWorktreeOpener + openWorktree
keybindings.get—{path, exists, rows: [{id, keys, prefixKeys?, hint?}], prefix: {key, firstStrokes, timeoutMs}, plugins: [{chord, kind: "pane" | "action", target}], applied, warnings} (read-only): what the TUI's keybindings.yaml parser makes of the file, only the rows it changedresolveUserKeybindings
keybindings.createFile—{path, created}: writes the fixed, fully commented starter; created: false when a .yaml/.yml already exists (never overwritten)createKeybindingsFile
plugin.chordActionchord{target}; runs the plugin action the Mac's own keybindings.yaml binds to that chord, detached. NOT_BOUND for anything elserove plugin action invoke

Task rows also carry optional hasPrompt (a stored brief exists, for Run again), startsAt (ISO time an unstarted task starts by itself, task.scheduleStart); engine rows carry optional acceptsModel.

Terminal-tab ops and the notice push

Area ops (packages/rove-bridge/src/ops/terminal.ts); each wraps one verb, RPC or helper and checks its arguments.

OpArgsResultWraps
tab.statestaskId{tabs: {tab-N: {state, at}}}debug.inspect (activity.tabs)
tab.renametaskId, tabId, title{}update --tab --title
tab.splittaskId, tabId, action (open/close/rename/reset), leafId? (leaf-N; required except for open), direction? (right default / down, open only), title? (rename; one line, ≤80, empty clears), cols?+rows?{leaf, changed, split}; split is the tab's pane layout (null once back to one pane); changed: false = pane too small to split. The shell is always the login shell: no command line is takentab-split
tab.interrupttaskId, tabId?{}interrupt
tab.forkTaskrepo, baseBranch, prompt, engine?, title?, count? (1–5){taskIds}add --base-branch (--count for attempts)
tab.handofftaskId, tabId{kind: "handoff", prompt} or {kind: "no-session" | "no-transcript", engine?}planWorktreeHandoff
tab.requestPRtaskId, tabId?{}buildPRPrompt + send --plain
tab.sendtaskId, tabId?, prompt (≤ 100k chars), queue?{delivered: true}, {delivered: false, queued: true, queueId, position} (with queue, held for a busy tab until its turn ends) or {delivered: false, reason}send --plain [--queue]
queue.listtaskId{items: [{id, taskId, tabId, text, expectReport, at, lastError?}]}queue-list
queue.editid (q-N), text{edited, item?, reason?}queue-edit
queue.cancelid (q-N){cancelled}queue-cancel
attachment.putmime (png/jpeg/gif/webp/pdf), data (base64, ≤ 5 MB){path, kind, bytes}writes ~/.rove/attachments/attach-<date>-<nonce>.<ext>

attachment.put checks the file's magic bytes against the declared type. A continuing session is always a transcript handoff: a native fork needs an attached desktop, so the phone offers none.

Decisions

A task can ask its owner a question (rove api gate-raise, see docs/design/long-run-controls.md § 3). The bridge carries the open ones, and the answered ones the engine has not received yet, in gates beside tasks and attention, and pushes a new tasks event when they change:

{"id": "g-7", "taskId": "…", "tabId": null, "question": "Which approach?",
 "options": [{"key": "a", "label": "Rewrite", "detail": "2 days"}, {"key": "b", "label": "Patch"}],
 "recommended": "b", "context": "…", "status": "open",
 "createdAt": "2026-10-12T00:00:00.000Z", "label": "Nightly loop"}

status is open, or answered with handoff: "undelivered" (the engine was not running; the answer rides the task's next message). label is the task's title; options is empty for a free-text question. Each gate also appears in attention as a decision_needed row with gateId set. That row is answered, never dismissed: the app opens an answer sheet (option buttons, the recommended one marked, an optional note) and sends gate.answer. attention.dismiss refuses a decision with GATE_NOT_DISMISSABLE, and so does an older app that names only taskId and tabId for a tab that holds nothing else. gate.answer keeps the daemon's refusal code on the wire: GATE_NOT_FOUND, GATE_NOT_OPEN (answered or withdrawn elsewhere first), BAD_OPTION.

Mods: the mods push and mod.press

On connect and on every change the bridge pushes {"event": "mods", "data": {"panes": [{plugin, id, title, tree}]}}: every pane a plugin's [mod] has open, each tree an element tree of box / text / button (PLUGIN-AUTHORING.md). Validate it with the SDK's parseModUiPayload rules and drop a pane you cannot draw. mod.press (plugin, pane, key) → {} forwards one button press to the mod over the daemon's mod.press RPC; MOD_UNAVAILABLE means the mod is gone or no longer draws that button. mod.submit (plugin, pane, key, value ≤ 4000 chars, may be empty) → {} does the same for an input field's Enter. The phone apps do not draw mods yet.

Plugin input dialog: the prompt push and ui.promptReply

A plugin's rove api prompt arrives as {"event": "prompt", "data": {promptId, title, placeholder?, initial?, at}}, once per prompt and only to clients connected when it was asked. Answer with ui.promptReply (promptId, value?) → {}; leave out value to cancel. The first answer from any client (TUI, web, phone) wins; a later one gets PROMPT_GONE.

The side panel: ui.viewing fields, the panel push and browser.probe

ui.viewing (taskId or null, tabId?) takes optional layout fields, which the daemon lists for rove api viewers: panel (this page has a side panel: web desktop only), panelOpen, narrow. A page sends no surface or local: the bridge decides both when the socket upgrades, from the request and never the page (surface: the web subprotocol means a browser page, otherwise the phone app; local: a loopback peer with no tunnel header, no Access, no --public-host origin), and adds them to the report. hello answers peer: {surface, local} so a page knows where it is. A client that sends none of the fields still registers.

rove api panel-show arrives as {"event": "panel", "data": {taskId, view, url?, path?, at}} (view is browser, files or diff; url an absolute http(s) URL; path relative to the task's worktree), to every connected client, once per request (a replay older than 10 s, or seen already, is dropped). A page remembers the view for taskId; one that is on that task with a side panel brings it up, without stealing focus or switching task.

browser.probe (url, origin?) → {reachable, frameable, status?, reason?}: can that page sit in an iframe? One HEAD over HTTPS to a public address (a private, loopback, link-local or unique-local one is refused after resolving the name), no redirect followed, 3 seconds, reading only X-Frame-Options and CSP frame-ancestors (pass the page's own origin so frame-ancestors naming it counts). localhost URLs are not probed (frameable: true; reachability is the page's own local), and plain http elsewhere is frameable: false.

Additive fields and events, ignored by an app that predates them: gates itself, attention[].gateId, attention[].resumeAt (a rate-limited task's scheduled auto-resume, ISO time), attention[].label (a routine episode's name) and attention[].automationId (that routine's id, for attention.dismissRoutine and for opening the Routines page on it); tasks[].machine ({id, label, stale?}, set only on a row served by another registered machine, rove machine add; id is the machine alias, stale means it is unreachable and the row is its last known state; absent on this Mac's rows); tasks[].repoId (the repo across machines: the serving daemon's normalized origin, github.com/me/rove, else root:<first commit sha>; absent outside a repo; group by it, else by repo). Remote rows carry no live activity, changes or tabs, and every op that takes a taskId refers to this Mac's daemon, so a client lists them read-only. The push {"event": "notice", "data": {title, body?, kind, taskId?, source?, at}} for rove api notify. The bridge drops a notice whose at it already sent or that is older than 10 seconds, so a daemon replay on reconnect is not shown twice.

Board, routines, GitHub issues and settings ops

The Board needs the Mac's Kanban mod and GitHub issues its Issues mod. The app reads builtinMods.list on every connect and when it comes back to the front, offers only the installed pages in the Pages menu, and lists both mods with install / uninstall in Settings → Plugins. A Mac whose bridge predates the op shows both pages, as before.

Area ops live in packages/rove-bridge/src/ops/ (one table per area, merged in ops/index.ts). Each wraps one rove api verb, daemon RPC or Rove helper and validates its own arguments; ops marked destructive are logged with their ids, and the app asks for a second confirmation before sending them.

OpArgsWrapsDestructive
issue.repos—RPC issue.repos—
issue.listrepoissue-list—
issue.createrepo, title, body?issue-create—
issue.updaterepo, id, title?, body? or clearBody, task? (none unlinks)issue-update—
issue.setStatusrepo, id, status (open/doing/hold/done)issue-update --status—
issue.deleterepo, idissue-delete (the record only)yes
issue.promptrepo, id, where (worktree/project)issue-list + the kanban drawer's prompt builders—
task.eventstaskId, limit?RPC task.recentEvents, newest first—
routine.list—routine-list—
routine.createrepo, name, prompt, schedule, targetTask? + targetTab? (both or neither: deliver into that existing engine tab)routine-create—
routine.updateid, name?, prompt?, schedule?routine-update—
routine.setEnabledid, enabledroutine-update --enabled—
routine.runNowidroutine-run-now—
routine.runsidroutine-runs—
routine.deleteidroutine-deleteyes
attention.dismissRoutineautomationIdRPC attention.dismissRoutine: clears a routine episode (routine_failed), which is keyed on its schedule and has no task for attention.dismiss—
pr.checkstaskId, fresh?gh pr view <n> --json statusCheckRollup,mergeable,mergeStateStatus,reviewDecision,isDraft in the task's worktree, cached 30 s: {outcome: "ok", total, checks[{name, state: fail|pending|pass|skipped, durationMs, url, runId}] (failures first, at most 60), mergeable, mergeState, review, draft}, none (no PR yet) or unavailable + detail—
pr.checkLogtaskId, runId (digits), jobgh run view <runId> --log-failed, cached 60 s per run: {outcome: "ok", tail} (last 40 lines / 4000 chars of that job), none or unavailable—
run.statustaskIdget-task + pty-list + ports --all: {script, running, port, listening, url}. script = the worktree has a non-empty .rove/run.sh; running = the run tab's session is alive; listening = something listens on the task's port—
run.starttaskIdtab-new --kind shell --type "env PORT=<port> ROVE_PORT=<port> sh .rove/run.sh" (the repo's own file; the client sends no command). The port is the task's own from run.portBase/run.portCount in state.json, held in run.tasks; NO_RUN_SCRIPT, NO_PORT refusals. Same answer as run.status—
run.stoptaskIdtab-close on the run tab (ends the script), then archive on the empty shell row run.start made; the task keeps its port. Same answer as run.status—
workitem.listrepo, state?, assignee? (@me), search?, limit?, refresh?RPC workitem.list—
workitem.linksrepoRPC task.list, folded to tasks started from an issue—
workitem.startrepo, number, engine? (built-in)workitem-start—
review.queuerefresh?{prs, other, reason?}: open PRs that ask for your review in the projects this Mac knows (repo, nameWithOwner, number, title, url, author?, isDraft, createdAt, updatedAt, additions, deletions, headRef, baseRef, fork, checks?); other counts those in unknown projects; reason (missing, unauthenticated, failed) when gh could not be read. One fixed read-only gh api graphql search, cached 60 s (refresh skips it)—
review.preparerepo (a known project), number{ref}: git fetch origin +refs/pull/<n>/head:refs/rove/pr/<n>, local refs only; ref is what a review task's worktree starts from (task.spawn baseBranch). FETCH_FAILED carries git's text—
usage.gettaskId?, tabId?the orchestrator's usageSnapshotSignal(); {usage: null} until the daemon reports. With taskId+tabId, also context: that session's contextUsageSignal() reading, or null—
update.checkforce?, locale? (en/zh)checkLatestVersion + fetchReleaseNotesRange: {current, info, notes}; info: null = could not look, never "up to date". With locale: "zh", each release's notes come from its release-notes.zh.md asset when it has one—
release.notesversion (x.y.z), locale? (en/zh)fetchReleaseNotes: {notes} (GitHub release body, or its Chinese asset in zh; null on failure)—
machines.list—the bridge's MachineHub.machinesSignal(): {machines: [{alias, hostLabel, state, version, reason}]}; reason is null while online, else a class (refused, unresolved, timeout, auth-denied, host-key-changed, host-key-unverified, ssh-failed, no-rove, no-daemon, bad-status, handshake, no-forwarding, lost), never ssh's text; read-only—
machines.reposmachine (a registered machine's alias){repos: [{id, primary, checkouts}]} (that machine's repos by id: host/owner/name, or root:<sha> with no origin), or {repos: [], reason: "offline" | "outdated" | "denied" | "failed", message} for a machine that is not online or cannot answer (read-only; never an error, and a machine the hub knows is down is not tried)repo-list (on machine)
daemon.info—RPC daemon.status + isDaemonVersionStale against the bridge's build—
plugins.list—the Plugins section's readPluginRows—
plugin.setEnabledid, enabledsetPluginEnabledyes
builtinMods.list—builtin-mods.json: {mods: [{id, name, description, installed}]} for Kanban and Issues—
builtinMod.setInstalledid (kanban/issues), installedsetBuiltinModInstalled; uninstalling keeps the mod's data—
feedback.sendtitle, body, category?feedback (a public GitHub Discussion)yes
engines.settings—engine registry + detectEngineStatuses + engineIntegrations + state.json switches—
engine.setEnabledid, enabledstate.json disabledEngineIds (+ defaultVendor hand-off)yes
engine.setDefaultidstate.json defaultVendoryes
engine.renameid, namestate.json engineName.<id>yes
engine.resetidstate.json engineCommand/engineName/engineProtocol/customEngineIdsyes
skill.install—installSkillErrors: copies the Rove agent skill into each engine set up on the Mac that lacks a current copy; {error} (null on success)yes
skill.missing—missingSkillNames: {engines} Rove can run on the Mac (CLI on PATH) with no skill copy (drives the persistent skill banner)—
output.readtaskId, tab?, source?, cursor?, limit?read-output—
repo.digestrepo, sinceDays?digest—
turns.listtaskId?, repo?, sinceDays?, limit?agent-turns—
sessions.searchquery, repo?, limit?search—

What the phone cannot do, because each would make the Mac run a command the phone wrote: set a routine's precheck, edit an engine's launch command, change a plugin's manifest settings, install a plugin from the marketplace, set the custom editor command. Engine rows never carry account emails or the launch command's arguments.

Settings preferences

prefs.get returns every Settings knob the TUI keeps in state.json, already run through the TUI's normalizers, so a client never restates a default: prefs (current values by wire key), options (the choices of each enum key, {min, max} for scrollbackRows), info (editorCustomSet, worktreeCustomPath: read-only facts), glyphSets (the TUI's three state-glyph presets) and themes (every bundled and user theme resolved to #rrggbb for dark and light, including the colorblind diff pair from the TUI's own diffInks). prefs.set writes one key per call; the value must be one of options (a boolean for flags, an integer in range for scrollbackRows), and the reply carries the full prefs as the TUI will now read them. Keys: locale, theme, themeMode, transparent, focusAccent, splitStyle, railFold, tabRowHeight, workingBorder, taskColors, glyphSet, colorblind, runningTitle, toast, sound, soundVolume, crossTask, finishedAlerts, keyHints, zen, editorKind, worktreeBase (default, nextToProject, or custom only when the TUI already remembers a custom base), scrollbackRows, tabStrip, prefixTap, remoteProjects, autoStatus, dispatcher. A running TUI follows every key at once (the daemon's state push).

OpArgsWrapsDestructive
prefs.get—state.json Settings keys + resolved theme palettes + glyph sets—
prefs.setkey, valueone allowlisted state.json key—
snippets.get—prompt.snippets in state.json: [{name, text}], the saved @name prompts every client shares—
snippets.savename (letters, digits, -, _, ≤32), text (≤8000)adds or replaces (name is case-insensitive); at most 100; replies with the full list—
snippets.removenamedrops that snippet; replies with the full list—
theme.taskColorstheme, mode (dark/light), taskIds (≤500)the TUI's taskColor(taskId, theme)—
theme.hosted—the rove.run catalogue, each theme resolved for dark and light, plus installed; names that could not be fetched come back in unavailable; dir is the user themes directory—
theme.installname (a catalogue name only)rove theme add https://rove.run/themes/<name>.json; never overwrites, installed:false when already present—
autoRouting.get—tiers (readAutoRoutingTable + tierBlock verdict), pickable engines (effort levels, takes-model), classifier mode/host/key source—
autoRouting.setTiertier (swift/standard/deep), engine, model?, effort?state.json autoRouting.<tier>.engine|model|effortyes
autoRouting.setClassifiermode (off/jev/custom)state.json autoRouting.classifier; custom only restores the endpoint the TUI rememberedyes
engines.hooks.install—ensureGlobalRoveHooksyes
engines.hooks.uninstall—removeActivityHooks for every hook adapteryes
dev.reset—empty state.json and remove tasks.json, then restart the daemon so its in-memory task list goes too (the TUI's "Reset UI state"; the TUI exits instead)yes
daemon.restart—RPC daemon.stop {reason: restart}yes

The classifier's endpoint (shown as a host only), threshold and API key stay Mac-side edits: an endpoint is a destination the Mac would post prompts to, and the key a secret it would store.

Build the app

The app is in packages/rove-ios (SwiftUI, iOS 17+, SwiftTerm). The Xcode project is generated, not committed:

cd packages/rove-ios
xcodegen generate
xcodebuild -scheme RoveMobile -destination 'platform=iOS Simulator,name=iPhone 17 Pro' build test

Running on a physical iPhone needs your own signing team in Xcode; the repo ships no signing configuration.

Not done yet

  • Push notifications (APNs). Notifications fire only while the app is running.
  • TestFlight / App Store distribution.
  • A chat view of the conversation; the app shows the raw terminal.
  • End-to-end encryption between the phone and the bridge (Orca pins a desktop key); today the tunnel or tailnet is trusted.
  • A device list and per-device revoke inside the app; the bridge CLI has them (--list-devices, --revoke-device), the app does not show them.
  • Restoring the TUI's terminal size when a phone leaves Fit mode.

On this page