<!-- rove-skill-version: 133 — bump in lockstep with ROVE_SKILL_VERSION (src/lib/skill-install.ts). -->
Rove shell control
Use rove api to manage local coding tasks. Managed Tasks created by API
automation own a git Worktree and branch plus Hosted PTY engine tabs;
directory Tasks reuse existing directories. API automation works
without an open TUI; prompted send and add ensure a target engine tab.
Inside a Rove session, Rove verbs come first
Check where you are before choosing how to delegate or parallelize:
test -n "${ROVE_TASK_ID:-}"
When that passes, you are an engine session Rove manages — $ROVE_TASK_ID
is your task, $ROVE_TAB_ID your tab. Coordination should then go through
Rove, not around it, because work routed through rove api gets what
ad-hoc subprocesses never do: its own Worktree and branch (no file
collisions with you), a sidebar row with live state the user can watch,
lifecycle tracking, and an explicit outcome contract.
- Parallel attempts of one prompt →
add --count N, not N hand-rolled subagents. - Delegating a scoped piece of work →
add --prompt, not a rawclaude -p
child the user cannot see or manage.
- Following up on a task you started →
send; comparing →collect;
finished your own task and were spawned by another → a bare send
(no --task-id) replies to the DISPATCHER — the exact task + tab that
created you, recorded at creation (.task.dispatcher on get-task;
add records it; --no-dispatcher skips it).
If that tab died it falls back to the dispatcher task's live canonical
engine tab; nothing alive fails loud (DISPATCHER_UNREACHABLE) — it
never spawns a new engine, so a failed reply is visible, not fake-ok.
- Messaging another agent session on this machine →
send, and ONLYsend
— never relay through the user, a side file, or a generic peer channel
(an MCP server offering to message "other instances" is exactly that
channel: it reaches a process, not a task, so nothing it delivers is
attributable, watchable, or replyable). Sent from
inside a Rove task, the prompt arrives prefixed `[ROVE PEER] from
"<title>" (task <id> — Rove agent skill /rove, read it once per session …)`,
so the receiver knows who is talking, that this skill is required reading,
and how to answer — the baked-in reply command is tab-precise
(--task-id <sender> --tab <sender's tab>), so peer conversations need
no coordinator and no human relay. That prefix is the contract: do not
strip it with --plain for
coordination messages (--plain is only for a verbatim paste the
receiver should treat as content, not conversation). Received a
[ROVE PEER] message yourself? Read this skill once per session. The
baked-in command identifies where a necessary reply goes; it is not an
instruction to acknowledge every message. Act on FYIs without replying.
sendcarries text, but that text can carry FILES: peers share a
filesystem, so put the absolute path of a screenshot, log, diff, or any
artifact in the prompt and the receiver opens it with its own Read tool —
images included. An annotated screenshot beats a paragraph describing one;
prefer "see /path/to/shot.png — the arrow marks the broken card" over
re-narrating pixels. Paths under the sender's Worktree work too (worktrees
are world-readable locally); just never expect the receiver to WRITE
there.
dispatchstays the dispatcher's verb (deliver-only into an
already-hosted session; never impersonate the user in someone else's
terminal).
Your own engine's in-context subagents remain fine for read-only
research/exploration inside your task — the boundary is WORK: anything that
edits files, runs long, or the user should be able to see and steer belongs
in a Rove task. Do not recursively fan out from a spawned task.
When the check fails, none of this applies — use rove api only if the
user asks for Rove by name.
Vocabulary — what the user's words map to
| Term | What it is | Isolation it gives | Users also say |
|---|---|---|---|
| Task | one tracked workspace record — managed worktree or existing directory | managed Tasks own files + branch; directory Tasks reuse files | "a task", "a new one", "a separate attempt" |
| Worktree | the isolated git working tree a managed Task owns (.task.worktreePath) — a filesystem address, never shown in the UI | — | "workspace", "this checkout", "this branch", "here" |
| Terminal Tab | one engine, shell, command, or content surface inside a Task | an engine tab has its own conversation, but every tab uses the SAME Task files | "tab", "chattab", "another chat", "a second agent on this" |
| Split | the tree that divides ONE Terminal Tab into several regions (the pane-open verb's unit; a leaf is not called a pane) | none — same session's screen, same files | "split it", "side by side", "put the logs next to it" |
Two of those colloquialisms are traps, so read them as INTENT, not as
product terms: in Rove's own vocabulary Workspace is the center Terminal
Tab region of the UI (CONTEXT.md), not a checkout, and ChatTab is
retired vocabulary for Terminal Tab. A user saying "in this workspace" means
the worktree they are looking at — answer the intent, keep writing the real
term.
A Task is ONE engine conversation. Another conversation is a child task
shown under it. Isolation drops at every level down:
new Task → `add`: own worktree + own branch (parallel work can't collide)
child, shared dir → `add --no-worktree`: own engine session, SAME files (a helper in the same checkout)
new Split → same session's screen, one tab divided (a monitor beside the work)
Inside a Rove session add makes a child of yours: it shows under your
top-level task and its worktree is cut from your CURRENT branch tip, so it
builds on what you committed (uncommitted edits do not come along —
parentDirty: true in the reply says you had some; commit first if the child
needs them). It nests only in your own repo; another --repo stays a
top-level task. --no-parent is the unrelated top-level task cut from the repo
default, --parent ID nests under another task. Whether it has a parent and
what passes between you are separate choices: --handoff-from tab-N (with
--no-worktree) hands that tab's conversation to the child; the reply address
(on by default, --no-dispatcher off) lets its bare send report back to you.
Only need a separate checkout to edit in yourself? `add --repo "$PWD"
--worktree-only cuts the worktree (worktreePath` in the reply) and starts no
engine. It is not a session, so nothing lists it under you until you send it
work. Delete it when you are done.
A session is an agent, so a task always has one: an add without
--prompt, --start or --worktree-only is refused (EMPTY_SESSION), from
a session or a plain shell alike. Never add --start and ensure-worktree
just to get a directory: that is a session nobody works in. Several sessions may share one worktree
(add --no-worktree); a worktree with no session is --worktree-only.
The distinction that decides every routing call: **a shared child uses the
parent's worktree and branch; only a new task (add) gets its own.**
Two conversations in one directory edit the same files, so they can collide —
that is a feature when the user wants a helper in the same checkout, and a
bug when they wanted parallel attempts. A split isolates nothing at all: it
is a layout, for watching something (logs, btop, a test loop) next to the
work — never the answer to "do this work".
One boundary the isolation model does NOT cover: **never git stash in a
managed worktree.** The stash stack lives in the repo's common dir
(.git/refs/stash) and is shared by every linked worktree — two tasks that
stash in parallel can pop or drop each other's work. Commit instead; a
commit is per-branch and isolates exactly the way the model promises.
Where does this work land?
Inside a Rove session ($ROVE_TASK_ID non-empty — check first: it is what
makes the tab/split rows addressable at all), match top to bottom and take
the first row that fits:
| The user says | Lands in | Command |
|---|---|---|
| "you do it", "just fix it", "change X to Y" | you, right here | no Rove verb — edit the files yourself |
| "try it N ways", "compare approaches" | N new tasks | rove api add --repo "$PWD" --count N --prompt "…" |
| "branch off this and keep my uncommitted changes", "fork this task" | a sibling task cloned from THIS worktree, edits and untracked files included | rove api add --fork "$ROVE_TASK_ID" --prompt "…" (refused with FORK_UNSUPPORTED where the volume cannot clone; then plain add --repo starts from the last commit) |
| "split", "side by side", "keep an eye on X while…" | a new region in the CURRENT tab | rove api pane-open --command "…" |
| a request for ANOTHER repo on this machine: "ask the X project", "file this with X" | a new session in that repo's own checkout (no worktree) | rove api send --repo <path> --prompt "…" |
| names a tab: "tell the agent in tab 3" | that exact tab | rove api send --task-id <id> --tab tab-3 --prompt "…" |
| a LOCATION word: "in this workspace/worktree/checkout", "on this branch", "here", "same task" | a shared CHILD of THIS task (same directory) | rove api add --no-worktree --prompt "…" |
| names an ENGINE for the same files: "let codex take over here", "try this one with claude instead" | a shared child of THIS task on that engine | rove api add --no-worktree --command codex --prompt "…" |
| anything else — no row above matched | a NEW task — new worktree + branch | rove api add --repo "$PWD" --prompt "…" |
Order is the tiebreak: a count ("3 ways in this workspace") beats a location
word, and delegation language loses to "you do it" — the user asking YOU is
not asking for a fleet. Two more rules the table can't show:
- No location word at all ⇒ new task. It is the only routing whose isolation
cannot corrupt work-in-progress, so it is the safe default.
- "this repo" / "this project" are NOT location words — they name the repo,
not the checkout. Only worktree-scoped words route to a tab.
Outside a Rove session none of this applies: there is no "this task" to add
a tab to, so add (single or --count) is the only routing available.
Know where you are before you route
echo "$ROVE_TASK_ID / $ROVE_TAB_ID" # who you are (empty = not a Rove session)
rove api get-task --task-id "$ROVE_TASK_ID" # .task.title, .task.branch, .task.id, .running, .tabs[]
# .task.worktreePath too — only if you are about to read/write its files
get-task is the per-task read that answers "what is my worktree, my
branch, and which sibling tabs exist" — .tabs[] carries each tab's id, kind,
vendor, liveVendor, lastTitle and alive, which is exactly the target list for
send --tab. A tab flagged unregistered: true is a live session the tab
snapshot lost; it is addressable like any other.
Once you know what the conversation is about, retitle your own task so the user can tell it from its siblings: rove api update --title "short, specific title" (no --task-id needed — it defaults to your task).
Coordinating others? Read `context` when you lack the state
If you spawned tasks, read context at the start of a session and whenever
you need state you do not have — between two of your turns a worker can
finish, crash, stall on a permission prompt or get its PR approved, and you
witnessed none of it. A turn started by a [ROVE REPORT] line or a peer
message that already carries the outcome acts on that message; it does not
re-read the fleet first:
rove api context --repo "$PWD" --text
One line per task, sorted so the first line is what needs a person next.
The group on each row is DERIVED from that task's report, PR observation,
engine activity and tab liveness — it is NOT the status field, which a
crashed worker leaves reading in_progress forever:
| group | your move |
|---|---|
| waiting-on-you | answer it — permission prompt, quota wall, settled error, dead tab that delivered nothing |
| landing | merge it — PR open and approved |
| ready-for-review | read the diff — a report landed, nobody acted |
| working | nothing. An engine is producing output |
| idle | nothing. We looked; it is quiet |
| unknown | look (get-task, read-output). We could NOT look — this is not "idle" |
Never read unknown as idle, and never act on a group as if it were a
verification: ready-for-review means a worker CLAIMED something, so
collect and the actual diff still decide whether it lands. Drop --text
for structured rows (group, rank, checkState, report) when you are
going to branch on the fields rather than read them.
context also carries the unhandled attention inbox and the repo's newest
field notes — the same notes a fresh session here is handed, so brief your
workers from those and don't re-derive what is already written down.
Refer to a task the way the user sees it
The sidebar row is the task's title; the line under it is its branch.
Nothing in Rove's UI ever renders worktreePath, so the directory name in it
(~/.rove/worktrees/<repo>/marlin) is a filesystem address the daemon picked
from an animal pool — the user has never read that word and cannot find it on
screen. Never name a task by its directory to a user or in a report.
Use the title when a human reads it, the task id (or its last six
characters) when you need it to be unique, and both when you need both:
- ❌
marlin opened a PR·landed in zorilla·see mammoth's branch - ✅
"Skill version guard…" (task …CWWA) opened PR #972 - ✅
succeeded: guard now fails the build (branch fix/skill-version-bump)
worktreePath earns a mention only when the sentence is about files on disk —
cd, a path in a command, a file you edited.
Fresh worktrees start empty — install before you judge
A managed task's worktree is a brand-new checkout: no node_modules, no
build artifacts, nothing a lockfile promises. Two consequences:
- A test failure in a fresh worktree may be fake. Missing dependencies
masquerade as product bugs ("Could not resolve: react-dom/client" reads
like a regression, not a missing install). Before reporting any failure as
real, confirm the repo's install step ran — and when a failure looks
unrelated to your change, compare against the same command on the base
branch before believing it.
- Repos with an install step should ship
.rove/init.sh— it runs once
per worktree, before the engine, in the worktree (per-user override:
rove repo set --init-script; inspect with rove repo show, which lists
.rove/init.sh: absent when unset). Working in a repo that lacks one and
you just paid the install tax? Suggest adding it.
Discover before calling
Do not guess flags — but do not pay a round-trip for the ones you use every
turn either. These five carry almost all traffic:
add --repo(REQ) --prompt --title --command --count --agents --activate --no-worktree --handoff-from --no-dispatcher
send --prompt|--prompt-file(REQ) --task-id --tab --plain --expect-report --if-runnable
get-task --task-id(REQ) list (no flags)
collect --group <groupId> | --task-ids <csv> | --repo
Names that have actually been guessed wrong here: add --vendor is
--command; read-output --task is --task-id; per-field verbs
(set-<field>, rename, pin) are all update --<field>; dispatch --text is
--prompt (--text belongs to note); issue-list --state is --status
(a comma list, beside --search).