Routines
Work that runs without you. A Routine is a cron rule + a prompt + a repo (or no repo), owned by the daemon. By default every firing creates a fresh task with its own worktree, its own branch, and its own engine session, carrying the prompt as that session's first message. A routine that needs to remember what it said yesterday can instead keep one standing session, or deliver into an existing task and tab.
That last part is the design, not an implementation detail. A run is not a hidden background job with a log file somewhere; it is an ordinary task in your sidebar that you can open, read, disagree with, and keep talking to. Scheduled work you cannot inspect afterwards is not worth scheduling.

Two minutes to your first routine
The example throughout this page is the one in the screenshot: every morning at 03:00, audit this repo's dependencies and open a branch with the safe upgrades.
From the TUI
ctrl+a2(or click Routines in the sidebar rail) opens the page.nopens the composer.tab/shift+tabwalk the fields: name, repo (a scrolling picker over your projects), deliver to (new task or an existing task in that repo), the existing engine tab when selected, prompt, and schedule, five labelled cells (min / hour / day / month / weekday) where←/→picks a cell and↑/↓changes it. The composer restates the next fire time in your own clock as you type ("weekdays at 12:00 · in 2d · Mon 12:00"), so a cron expression you got wrong is visible before you save it.sruns it once, right now. Do this. It is how you find out the prompt works without waiting a day for the schedule, and it does not shift the next scheduled run.enteropens the task that run created. From here it is a normal session.

There is no in-page editing of the name, prompt or schedule: recreate the
routine, or use rove api routine-update. The composer carries name, repo,
delivery target, prompt, schedule and the confirm step. The web page's detail
has [ change ] beside the engine, which sets the engine, model and effort;
everything else is CLI-only — --precheck (below), --precheck-timeout,
--base-branch, --grace, --persistent-session, --new-conversation and --disabled, and in
the TUI --vendor, --model and --effort too.
The page end to end: walking the schedules, pausing one, then composing a routine whose next fire time is restated in plain words as the cron cells change:

From the CLI
The same routine, with the precheck the TUI cannot set:
rove api routine-create --repo . \
--name "Nightly dependency audit" \
--prompt "Audit dependencies for advisories and open a branch with the safe upgrades." \
--schedule "0 3 * * *" \
--precheck "git log --since=24.hours --oneline | grep -q ."
rove api routine-list # every routine + its next run
rove api routine-run-now --id <id> # fire it now, skipping the precheck
rove api routine-runs --id <id> # run history, newest firstA prompt with backticks, $vars or quotes goes through --prompt-file
(- reads stdin), the same escape hatch send and add have. Inside double
quotes the shell runs a backticked command and ships its output instead of the
words:
rove api routine-create --repo . --name "Morning reply" --schedule "0 9 * * *" \
--persistent-session --prompt-file - <<'EOF'
Reply via `rove api send --task-id $ROVE_TASK_ID` with what changed overnight.
EOF--repo and --base-branch are checked when the routine is saved, not when it
fires: a path that is not a git repository, or a base ref that does not resolve
in it, is refused with a message naming the value. The check is not a guarantee
— a repo deleted after the routine was saved still fails at 03:00 — it just
catches the typo while you are still at the keyboard.
A routine with no project
Not every scheduled prompt belongs to a repo ("summarize my inbox", "check the
weather"). --no-repo (instead of --repo) makes a routine with no project:
rove api routine-create --no-repo --name "Morning brief" \
--schedule "0 9 * * *" --prompt "Summarize what I should look at today."Exactly one of --repo and --no-repo is required, so a forgotten --repo is
an error, not a quiet repo-less routine. Every run works in the routine's own
directory, <home>/.rove/routines/<id>/ (made when you save it, and again
before a run if it went missing), and its session is a directory task: no
worktree, no branch, nothing to land. Like every routine run's session, it
stays out of the sidebar; open it from the Routines page. The precheck and --script
run in the same directory. There is no --base-branch, there is no
switching a routine between a repo and no project after it is saved (create
a replacement), and --target-task still works: it only needs the task to
exist. The default engine skips the per-repo layer: --vendor, else the
built-in default.
--model and --effort pin what every run's engine launches on, the same
values rove api add takes. They are checked when the routine is saved, so an
engine that has no reasoning levels refuses --effort at the keyboard instead
of at 03:00. The engine they are checked against is --vendor, else the
repo's default engine, else the built-in default (claude), and a pinned
routine stores that vendor: its runs launch the engine its pins were checked
against, even if the repo's default changes later. A routine with no pins and
no --vendor stores no vendor, and its runs launch the built-in default.
routine-update --model '' or --effort '' clears the pin. A
routine bound to an existing tab cannot set either: that tab keeps its own
engine. Changing --vendor also checks any retained pins against the new engine;
replace or clear incompatible pins in the same update. Clearing --vendor
while pins remain resolves the engine again the same way, checks the pins
against it and stores it; clearing it with no pins left stores no vendor.
Changing, adding or clearing the vendor, model or effort of a persistent
routine that already has a standing task lets go of that task: its engine
keeps what it launched with, so the next run builds a new standing task on the
new pins, with a new conversation and (in a repo) a new worktree. The old task
is not stopped or deleted; routine-update names it as
releasedSessionTaskId, so delete it yourself once nothing in it is needed.
Repeating unchanged pins and editing other fields keep the standing task.
Binding to an existing tab also clears the standing link and uses that tab's
engine settings.
--precheck-timeout only means something alongside --precheck; on its own it
is refused rather than quietly ignored. To change just the timeout, pass the
command again.
Full flag list: rove api schema --group routine, or rove api.
Reading the page
| Where | What it tells you |
|---|---|
| Header, right | Whether an enabled routine is keeping the daemon awake right now |
| Row | Name, repo, five-field schedule, the model its runs launch on (the engine's name when none is pinned), and the next run in relative time (in 5h), or paused |
| Detail box | The selected routine's prompt, what its runs launch on (engine, model, effort), its precheck if any, and RECENT RUNS with their outcomes |
[ run now ] | The same thing s does; try it without waiting for the schedule |
Keys: j/k move, n creates, e pauses or resumes, s runs now, d
deletes, r refreshes, enter opens the task from the latest run, esc or q
closes the page.
Deleting removes the routine and its run history. Tasks it already created are
untouched. They outlive the schedule that made them — but they are not quite
ordinary: each carries a routine marker of its own, and the sidebar leaves
marked tasks out and skips them in the cold-start "which task to open"
fallback. Deleting a --persistent-session routine therefore leaves its
standing task with no row and no Routines page entry; delete the task too, or
open it from the Inbox or rove api list.
To find them (a run that reported partial, blocked or failed keeps its
task, see Between runs), read the ids off its history before
deleting it, since deleting takes the history with it. History is capped at the 100 most recent runs per routine
(pruned on every write), so a */30 * * * * routine loses task ids after about
two days — collect them as you go rather than at deletion time:
rove api routine-runs --id <id> | jq -r '.runs[].taskId | select(.)'Then delete the ones you want with rove api delete --task-id <id>. Rove
deletes a run's task itself only when the run finished cleanly; the ones left
are tasks you may still need to open.
The schedule
Five-field cron, in the daemon host's local time (there is no timezone field):
┌─ minute (0-59)
│ ┌─ hour (0-23)
│ │ ┌─ day of month (1-31)
│ │ │ ┌─ month (1-12)
│ │ │ │ ┌─ day of week (0-7 or SUN-SAT; 0 and 7 are both Sunday)
0 3 * * *| Expression | Fires |
|---|---|
0 3 * * * | Every day at 03:00 |
0 9 * * MON-FRI | Weekdays at 09:00 |
0 4 * * MON | Mondays at 04:00 |
*/30 * * * * | Every half hour |
Day matching follows the Vixie rule: when both day-of-month and weekday are
restricted they are OR'd, so 0 0 1 * MON means the 1st or any Monday, not
"a Monday the 1st". A field that starts with * counts as unrestricted even
with a step, so 0 0 */2 * MON means Mondays that fall on an odd day.
The precheck: don't burn a turn on an idle repo
--precheck "git log --since=24.hours --oneline | grep -q ."The command runs in the repo, through your login shell, before the engine
starts. Exit 0 proceeds. Anything else skips the run without creating a
task: a non-zero exit, a timeout (120s by default, --precheck-timeout,
silently clamped to the range 1-600s — --precheck-timeout 900 runs as 600),
or a failure to spawn.
This is the cost control. The dominant waste in scheduled agent work is firing on time when nothing has changed: the engine still boots, still reads the repo, and still burns a turn to conclude there was nothing to do. A shell command answers that for free.
It fails closed on purpose. A broken precheck must never quietly degrade into
"run every time", which is exactly the cost it exists to prevent. run now /
routine-run-now skips the precheck entirely; asking for the run by hand is
the answer to "should this run?".
Script routines: no engine at all
rove api routine-create --repo . --name janitor --schedule "0 * * * *" \
--script "./scripts/janitor.sh" --notify--script runs the command in the repo through your login shell, and that is
the whole run: no task, no worktree, no agent turn. Use it for cheap checks
that run often, where an engine session per firing would cost more than the
work. Exit 0 records ran, anything else script_failed (which raises the
routine alarm like dispatch_failed). Non-empty stdout, the last 4000
characters, is the run's response. The timeout is --script-timeout (120s by
default, at most 600s). Scripts run inside the serial sweep, so a slow one
delays the routines due after it.
--script replaces --prompt, so the engine flags (--vendor, --model,
--effort, --base-branch, --persistent-session, --target-*) are refused
with it. A --precheck still works. routine-update --script '' turns it back
into a prompt routine (pass --prompt in the same call).
Tell me on WeChat
--notify (on create or update) hands every run's response, and every run
that needs a human, to your WeChat agent, headed [Routine <name> #<run>].
For a script routine that is its stdout; for an engine routine, the summary
the agent reports. Rove does not post it to WeChat itself: the WeChat agent
decides whether it is worth telling you and writes the message. Bind the
channel first with rove weixin login (WeChat). Only runs that
finish after the daemon starts are handed over.
What each run did
Run outcomes are deliberately distinct rather than a single "didn't run", because unattended work is only trustworthy if one glance tells you whether a human is needed:
| Status | Meaning |
|---|---|
dispatched | A new task started with the prompt, or the prompt was delivered into a live standing or bound conversation |
revived | Standing session only: its engine was not running (it is stopped after every run), so it was started again in the same worktree, on the same conversation where the engine can reopen one |
skipped_cancelled | The routine was disabled, edited, deleted, or its runner stopped before delivery |
skipped_precheck | The precheck said there was nothing to do. Healthy |
skipped_blocked | The task cannot use a tick right now (blocked.reason): an open decision gate, an unreported earlier run, a rate limit, a permission prompt, or a turn still running. The cause is already in the Inbox. Healthy as a status |
skipped_missed | The occurrence was older than the grace window, or the sweep never reached it. A busy sweep no longer drops occurrences silently: one row records how many were passed over and when the first was due |
skipped_unavailable | The routine's repo no longer exists (checked before the precheck, so a missing repo is never a quiet skipped_precheck), or the dispatch threw before it produced an outcome — the repo or worktree could not be resolved, but a branch collision, a worktree-creation error or a full disk lands here too. The error field names which. Needs you |
dispatch_failed | The prompt did not reach an engine — the engine process never started — or should-run refused a bound tab whose engine is dead or in a sticky error (blocked.reason engine-dead / engine-error), which no Inbox row covers. Needs you |
skipped_precheck and dispatch_failed are opposite signals; they never share
a label.
skipped_blocked is the daemon's should-run check (rove api should-run)
declining a scheduled firing at a task that cannot use it. It applies to
bound-tab and standing-session routines: the run's blocked field is the
verdict (reason is one of awaiting-owner, report-missing, quota,
awaiting-permission, busy) and error
prints it beside the status. Nothing is pasted, no delivery is armed and the
occurrence is not retried: a skip is recorded and dropped. It is not an
alarm and raises no Routines Inbox row, because the cause (an open gate, a
report_missing row, a rate limit) is already in the Inbox. The two reasons with no
Inbox row of their own, engine-dead and engine-error, are not skips: the
firing is recorded dispatch_failed (keeping blocked) and raises the
routine alarm, so a dead bound tab is not silenced. A standing
session whose engine died is still revived, not skipped. A firing that
creates a fresh task has no prior state; it is skipped only when the
engine's cached quota snapshot already says the window is exhausted (the
daemon never fetches vendor usage for this), and the check is skipped
when the quota is unknown. run now bypasses the check, like the precheck.
An engine turn that fails because the connection dropped or the provider
returned a 5xx (Unable to connect, 503) does not stop the routine: the
next scheduled firing goes ahead and is the retry. Any other failure still
holds the next firing until you look (dismiss the Inbox row or run now).
Either way the Routines page shows the newest failure under the routine
(last failed 3h ago: …), so an outage that healed itself is still visible.
dispatched means the engine PROCESS was seen running — not that the terminal
opened. An engine whose launch command points at something that is not there
exits immediately and leaves the login shell behind it, and the terminal is
alive either way; a run that ends that way records dispatch_failed with the
engine's own Engine exited (code 127) line in error. That check costs a
firing nothing when the engine is fine and a few seconds when it is not.
What each run concluded
A run record says the prompt was delivered. What the agent concluded is its
report, and every delivered run can carry one. Each delivered run is
linked to a delivery (d-<n>, see
rove api deliveries). The daemon prefixes each routine
prompt it delivers (new task, standing session, or bound tab) with one line
naming the run and its delivery, then a blank line, then your prompt
unchanged:
[ROVE ROUTINE] "morning audit" run #12 — when done, report with: rove api report --delivery d-41 --outcome done|partial|blocked|failed --summary … [--evidence …]… [--next …] (only if something happened or you are blocked)
<your prompt>A standing session already has your prompt in its conversation, so it gets
the full text only on its first run, on a run whose engine was just created
or revived, on the first run after you edit the prompt, after the engine
compacts its conversation or switches to a new one (/clear, a resume),
and at least every 20th run for engines that never report compaction.
Every other run gets the header and one line saying the instructions are
unchanged.
The agent reports when the run found something or is stuck:
rove api report --delivery d-41 --outcome done --summary "No new failures since yesterday."
rove api report --delivery d-41 --outcome blocked --summary "CI is red on main" \
--evidence "run 8123" --next "retry after the revert lands"routine-respond --run <runId> still works. It is the same thing as
report --outcome done --summary <text> on the run's delivery:
rove api routine-respond --run <runId> --text "No new failures since yesterday."
rove api routine-respond --run <runId> --prompt-file report.md # `-` reads stdin- One report per run. Reporting again replaces it.
- The summary cap is 32,000 characters. Over it the verb refuses
(
RESPONSE_TOO_LARGE) instead of truncating. - An unknown or pruned run id is
RUN_NOT_FOUND; an unknown delivery id isDELIVERY_NOT_FOUND. - Rove does not read transcripts to guess a report. A routine turn that
completes without one had nothing to report: the delivery turns
quiet, with no Inbox entry, and the next run goes ahead. A turn that failed or was interrupted, an engine that died, or nothing happening for 10 minutes still turns the deliverymissing, and an Inbox entry report missing points at the tab. A latereportclears it. - A routine turn that reported (or went
quiet) raises no "turn finished" Inbox entry. The report is the entry.
A delivered run (dispatched or revived) reads as awaiting response
until its delivery is reported or goes missing, then no response, in the
warning colour. A quiet run shows neither. A run from before deliveries existed has no delivery and
keeps the old rule: no response after two hours. A response raises an
Inbox entry (one per routine, the newest replacing the last) that opens the
Routines page. On the page, the selected routine's detail splits in two:
run history on the left, its responses on the right, newest first, each
headed by its run number, status and time, with the text rendered as
markdown. routine-runs includes deliveryId, deliveryStatus
(awaiting, reported, missing, quiet) and, once reported, response
({text, at}) on every run; the last two are read from the delivery.
You do not have to go looking
The two statuses marked Needs you raise an entry in your Inbox, and the
Routines page marks the row — † an engine that would not start, ! a
routine whose target is gone, ✓ a healthy last run, · nothing to do — with
a count of how many need you in its header. One entry per routine, refreshed
rather than repeated, so a routine failing every minute is one line and not
1,440; it clears itself when the routine runs cleanly again.
Deliver into an existing conversation
Use this for a prompt that belongs in a conversation you already opened. Get the
exact tab id from rove api get-task --task-id TASK_ID, then bind both ids:
rove api routine-create --repo . --name "Check this conversation" \
--schedule "*/15 * * * *" --prompt "Check the current work and report progress." \
--target-task TASK_ID --target-tab tab-2
rove api routine-list
rove api routine-run-now --id ROUTINE_ID
rove api routine-runs --id ROUTINE_ID
rove api routine-update --id ROUTINE_ID --target-task TASK_ID --target-tab tab-3
rove api routine-update --id ROUTINE_ID --enabled falseThe composer also offers Deliver to. Select an existing task with the current
up/down controls, then enter its engine tab id. The detail panel shows the bound
task and tab; each delivery receipt carries taskId and tabId. Existing
e pause/resume, s Run now, and the visible Run now button use this target.
Use the API to edit a saved routine, as with its other fields.
The public binding is target: {kind: "existing-tab", taskId, tabId}. Omitting
target from an update preserves it. target: null clears it; the CLI spelling
is --target-task '' --target-tab ''. Both CLI flags must be supplied together.
Clearing returns to new-task behavior. Old records without a target retain their
original fresh-task or standing-session behavior.
The routine repo must match the target task's repo. A bound directory task
does not require a git repository because the routine creates no worktree. An existing binding cannot
also set vendor, model, effort, baseRef or persistentSession, including values already
stored before an update. Clear those values in the same update when switching
modes: --vendor '' --model '' --effort '' --base-branch '' --persistent-session false. The target
keeps its own engine, worktree and conversation; routine runs never change its
ownership or add a task or tab. Its precheck still runs in the routine repo.
Scheduled and manual delivery use the same exact-tab gate. A missing or deleting
task records skipped_unavailable. A missing tab or exited engine records
dispatch_failed. None of these creates a replacement, selects another tab, or
revives an engine. Repair the target or retarget the routine explicitly.
Delivery is unconditional: the prompt is pasted into the target tab's engine and submitted, whatever its composer holds. Disabling or deleting a routine stops future scheduling; it does not retract a prompt already delivered.
The runner persists an occurrence claim before delivery, so overlapping ticks and a daemon restart cannot deliver that scheduled occurrence twice. It checks for disable, edits, deletion and stop again after precheck and before handing the prompt to delivery. An already handed-off prompt may finish. This is at most once, with a crash limitation: a crash after claim persistence but before delivery can lose that occurrence, and a crash before its run receipt is saved can leave no receipt. Restart does not retry that claimed occurrence. Unclaimed due occurrences follow the normal missed-run grace policy.
One standing session instead of a task per run
A routine that asks the same question every day — is CI slower than last week? — is worthless starting from zero each morning. Give it a standing session and every firing lands in the same task, as another turn in one conversation:
rove api routine-create --repo . \
--name "CI trend" \
--prompt "How do this week's CI times compare with last week?" \
--schedule "0 9 * * MON-FRI" \
--persistent-sessionLeave it off for a routine that edits code. A fresh worktree per run is what makes each result a branch you can review and land; a week of runs piled onto one branch is a branch nobody can merge.
Where its output goes
A routine's tasks do not sit in your sidebar: not the standing task, not any
fresh run's task, in the TUI or on the web. Seven daily routines would
otherwise be forty-nine rows a week competing with the handful of tasks you
opened yourself. Open a run from the Routines page: enter opens the latest
run's task, and a click on any recent run opens its session.
Out of the sidebar is not out of reach: a run still raises an Inbox entry when it reports or needs you. That entry is how you learn what last night's routine said, and how a routine stuck on a permission prompt or a quota wall reaches you — you do not go looking for it.
It also never wins the "which task should I open?" fallback on a cold start. A routine that fired at 03:00 is genuinely the most recently touched task in the install and the least likely one you meant; opening Rove lands on your own work instead.
Between runs
A routine's own task keeps no engine running between runs. When a run's turn ends and no other prompt is waiting on that tab, the daemon stops the engine. A routine bound to an existing tab runs in your task, and that engine is never stopped.
A routine that starts a new task per run also deletes that task when the run is
finished: its turn ended with a done report or with nothing to report, and no
other prompt is waiting in the task. The worktree goes with it, along with any
checkout the run cut with add --worktree-only. Uncommitted work is saved to a
salvage ref first (refs/rove/salvage/…), the branch is never deleted, the
engine's own conversation stays on disk, and the run keeps its report in the
routine's history. A run that reported partial, blocked or failed keeps
its task, because you still have to open it. A standing session is never
deleted this way.
The standing task's tab remembers its conversation. The next firing starts the
engine again in the same worktree and reopens that conversation through the
engine's own resume command, so files, branch and transcript all carry over.
That run is recorded as revived rather than dispatched, and it gets the
short "instructions unchanged" line when the reopened conversation already
holds the prompt. An engine with no resume command, or a conversation the
engine no longer has, starts a new conversation in the same worktree instead,
with the full prompt.
A reopened conversation grows with every run, and each run reads all of it again. A routine that works a queue and needs nothing from earlier runs can keep the standing task without that cost:
rove api routine-update --id <id> --new-conversationEvery run then starts a new conversation in the same task and worktree, with
the full prompt. --new-conversation false goes back to reopening the last
one; it is refused without --persistent-session, and turning that off drops
it. The detail's "Delivers to" line says which of the two a routine does.
If the standing task is deleted, the routine simply builds a new one on its next firing rather than failing forever.
Fire it from a webhook
A schedule finds a new issue up to fifteen minutes late. A webhook finds it
straight away. Turn the trigger on and the routine also fires when a signed POST
reaches the web server (rove --web):
rove api routine-update --id <id> --webhook --persistent-sessionThe result carries .webhook.secret. In the repo's GitHub settings, add a
webhook with:
- Payload URL:
https://<your --public-host>/hooks/routines/<id> - Content type:
application/json - Secret: that value
- Events: the ones you want, for example Issues
The daemon checks GitHub's X-Hub-Signature-256 against the secret. It
answers 202 at once and runs in the background, so GitHub's 10-second limit
never matters. GitHub's ping gets a 200 and runs nothing. A bad signature
gets a 401, an unknown id a 404, and a paused routine a 409.
A webhook run still goes through the precheck, with ROVE_WEBHOOK_EVENT and
ROVE_WEBHOOK_ACTION set, so the precheck can filter. Triage only opened and
reopened issues:
rove api routine-update --id <id> \
--precheck '[ "$ROVE_WEBHOOK_ACTION" = opened ] || [ "$ROVE_WEBHOOK_ACTION" = reopened ] || [ -z "$ROVE_WEBHOOK_EVENT" ]'The last test keeps scheduled runs, which have no event, working.
The prompt starts with the event, for example
Fired by webhook: issues.opened Sma1lboy/rove#7 <url>. With
--persistent-session, every firing lands in the same conversation. The run's
history records trigger: "webhook" and that same line as event.
--webhook false forgets the secret. Turning it back on makes a new one.
Restarts, and runs you missed
The next run is stored as an absolute timestamp on disk, never an in-memory timer. A daemon that restarts, or that was down for a day, rediscovers every armed schedule on its first sweep, with no re-arm step and no lost schedule.
If the daemon was down when a run was due, the occurrence still runs late as
long as it falls inside the grace window (--grace, minutes). Down at 09:00,
back at 09:20 with a 60-minute grace → it runs. Back at 14:00 → skipped_missed.
Only the most recent missed occurrence is ever considered. Three days offline produces one run, not three: a stampede at boot is worse than a gap.
A pause is not downtime. Resuming a paused routine arms it for its next
occurrence after the resume; the occurrences that fell inside the pause neither
run nor record skipped_missed.
The daemon stays awake for you
Rove's daemon normally stops a few seconds after the last GUI detaches. An
enabled routine holds it open, because a schedule that only fires while
someone is watching Rove is not a schedule. The header says so while it is
happening, and rove daemon status reports the hold, so a daemon staying up for
a schedule does not read as a leak.
The hold releases when the last routine is deleted or disabled, restoring ordinary idle shutdown. See Sessions for the rest of the daemon's lifetime rules.
Limits
Known and deliberate, as of today:
- A standing session's engine, once it has exited, comes back without the previous transcript (see below).
- No timezone field; schedules are the daemon host's local time.
- No per-run cost attribution, and no remote/SSH execution target.
See also
- rove api: every
routine-*verb and flag. - The TUI: the Routines page among the other pages.
- Concepts: what a task is, and why a run being one matters.
- design/automations.md: internal design note, the sweep, the cron implementation, the daemon-lifetime hold.