Run an agent fleet
Deploy orboto's pi-runner supervisor on your own server, then drive the whole fleet from orboto - assign projects, roles and models to a running lane without touching the box.
New to agents? Start with Connect your agent for the first one on your own machine, or Your first AI worker - a guided, one-command setup that gets a single agent (or an implement + review duo) running in ten minutes. This page is the scale-up path.
One interactive agent that stays up around the clock and is woken by its inbox is a different shape: An always-on agent in tmux. How a message reaches a running agent at all - the wake channel, followers, bridges - is Agent inbox and wake-up delivery.
Work routing and fleets explains how orboto lets agents pull work safely - leases, routing labels, review lanes, pause switches. This page covers the other half: actually running the agents that do that pulling, on a server you control.
What pi-runner is
orboto pi-runner is a small supervisor process, built into the orboto
CLI, that keeps one coding-agent session alive and feeds
it work. Concretely, it:
- starts and supervises a
picoding-agent session (the integrated coding-agent runtime orboto's fleet tooling drives), - delivers messages from that identity's orboto agent inbox to the session as it works (steering it if it's mid-turn, prompting it if it's idle),
- self-tasks the session: once it has sat idle, pi-runner injects a prompt
that tells it to pull its next ticket with
work-next- the same pull Work routing and fleets describes, just triggered by a timer instead of a human, - automatically switches to a fallback model when the current one hits a provider rate limit or quota error, so a fleet running overnight doesn't just stall on a 429,
- clones and refreshes the working copies the agent needs, and resumes its session on restart instead of starting over.
One running pi-runner process is one lane: a single agent identity,
working in a single role (implementer, reviewer, and so on). A fleet is
simply several lanes running side by side.
The lane registry: configuration lives in orboto, not on the box
Added in v0.176.0 A lane no longer carries its own configuration. It
starts with nothing but an identity - your orboto URL, its API key, its
lane name - registers itself, and asks orboto what to do. Which projects
it serves, in what order, in which role, with which model, how urgent a
ticket it may take, how many tickets a day, which repositories it works in,
what its idle prompt says, whether it is paused - all of that lives in the
workspace, on the Admin -> Agents -> Lanes page or behind orboto lanes assign.
That inversion is what makes a fleet manageable. Changing what a lane does is a two-click act in the UI that reaches the running process within one heartbeat (30 seconds at worst). Nobody logs into the server, nobody edits a file, nothing restarts:
- A lane that is idle switches immediately.
- A lane that is mid-ticket is told to finish the ticket it holds cleanly - post its summary, close its work session - and only then picks up the new assignment. Work in flight is never abandoned to a config change.
The older model, where every knob sat in the lane's environment file and every change meant an ssh session and a restart, is still fully supported as pinned mode - useful when a box must not depend on the registry at all. Everything else on this page assumes the default.
Prerequisites
- A Linux server you control - any VM, dedicated box, or container host. No specific provider is required; this page is written to work anywhere.
- The orboto CLI installed on that server.
- The
picoding agent installed:npm install -g @earendil-works/pi-coding-agent.pi-runnershells out to thepibinary, so it must be on thePATHof whichever user runs the lane. - API keys for whichever LLM provider(s) your lanes will use (the coding
agent reads these from its own environment, same as running
piinteractively). - An orboto account with the agent-lane admin permissions
(
admin:agent_lanes:readto see the fleet page,:writeto assign,:deleteto remove a lane). Super-admins have them already.
Step 1: create one bot identity per lane
Every lane authenticates to orboto as its own bot identity - a user account created for automation rather than a person. A lane will not register under a human account at all; the registration is refused. Give each lane its own identity rather than sharing one across lanes:
- Activity, comments, and commits stay attributable to the specific lane that did the work.
- You can pause or revoke one lane without touching any other.
- Review lanes work correctly:
work-next --role reviewrefuses to hand a reviewer its own identity's implementation work, which only means anything if implementer and reviewer are different identities. - A lane name binds to the identity that first registered it, so one lane's key can never quietly take over another lane's slot.
For each lane: create a bot user (or service account), give it project membership with the role it needs (implementer, reviewer, and so on), and mint an API key for it from that user's profile. Keep the key somewhere you can paste it into the lane's environment file in Step 4.

Step 2: smoke-test one lane by hand
Before wiring up a systemd fleet, run one lane in a terminal to confirm the pieces fit together:
export ORBOTO_BASE_URL=https://your-orboto-host.example.com/api
export ORBOTO_TOKEN=orb_xxxxxxxxxxxxxxxxxxxxx # the bot's API key
orboto pi-runner --remote --lane worker-1You should see timestamped status lines on stderr: the runner registers the lane, reports the assignment version it applied, and - because a brand-new lane has no assignment yet - settles into
[pi-runner] lane worker-1 v0 idle (lane has no project assignment) - heartbeating, waiting for an assignmentThat is the correct, healthy starting state, not an error. Leave it running and give it something to do in Step 3; the same process will pick it up.
Step 3: assign the lane
Open Admin -> Agents -> Lanes. A lane that has registered itself is already listed; you can also create one in advance with New lane and start the runner afterwards. Press Reassign and fill in:
| Field | What it controls |
|---|---|
| Role | Implementation (pulls open tickets and does the work), Review (pulls tickets waiting for review, never its own identity's work), Docs, Admin. See worker vs. review lanes. |
| Model | The model the coding agent runs on, as provider/modelId. Leave empty to use the runner's own default. |
| Fallback models | Comma-separated provider/modelId chain the lane switches through when the current model hits a rate limit or quota error. |
| Projects | The projects this lane serves, in walk order: it tries the first, moves to the next when that one has nothing ready, and idles when all are dry. A lane with no project has nothing to pull and stays idle by design. |
| Priority ceiling (per project) | The most urgent priority the lane may take. Set it to High and a Blocker ticket stays untouched for a human or a stronger lane. |
| Daily limit (per project) | How many work sessions the lane may start per UTC day in that project. Empty means unlimited. |
| Repository URL + Branch (per project) | The working copy the lane needs. The runner clones it, keeps it in sync, and never asks the agent to remember to pull. Credentials do not go in this field - see Checkout lifecycle. |
| Pause this lane at its next turn boundary | The lane keeps heartbeating and stays visibly online, but pulls no work. The safe state during a migration or a maintenance window. Added in v0.236.0 A turn that is running finishes first and the lane keeps its work session; see Pausing. |
The same assignment from the command line:
orboto lanes assign worker-1 --role implementation \
--model your-provider/your-model \
--fallback-models your-provider/your-model,your-other-provider/their-model \
--project ACME:high --repo https://git.example.com/acme/acme.git --ref main--project is repeatable and replaces the lane's whole project list, in
the order you pass it - a partial list unassigns the rest. Omit it entirely
to leave the projects untouched (so orboto lanes assign worker-1 --model X
changes only the model); pass --no-projects to clear them. --repo and
--ref are positional companions: the n-th --repo belongs to the n-th
--project. Add --paused or --resume to flip the lane switch; it is the
same as orboto lanes pause and orboto lanes resume (see
Pausing).
orboto lanes list prints every lane with its state, current ticket,
projects and applied assignment version; orboto lanes show worker-1 prints
one lane's full assignment. Added in v0.236.0 The state of an online lane
that is paused or stopped reads pausing, paused, stopping or stopped.
Back in the terminal from Step 2, the running process applies the new assignment on its own:
[pi-runner] assignment changed (v0 -> v1) - applying
[pi-runner] lane worker-1 v1 applied: role implementation, 1 project(s) [ACME], model your-provider/your-model
[pi-runner] lane worker-1 up - session "orboto-lane-worker-1", heartbeat every 30sA browser for a lane
Added in v0.205.1 A lane can have its own browser. Switch it on in Admin -> Agents -> Lanes, or leave it on automatic and orboto turns it on for lanes that work on a web app. orboto lanes compose <lane> writes the lane's compose file with a headless Chrome next to the runner. That browser may open only your orboto instance and the lane's preview address; every refused attempt is recorded. The runner reports whether the browser is running with each heartbeat, and orboto lanes list shows it.
Step 4: worker vs. review lanes
The role a lane pulls with decides what kind of ticket it sees:
implementation(the default) - pulls open, unclaimed tickets and does the actual work: it's the role that produces the commit.review- pulls tickets waiting for review instead of open ones, and never a ticket its own identity implemented (see Review lanes). Always run review lanes under a separate bot identity from the implementer lanes they check, and ideally on a different model - the cross-check is the point. What a review lane reviews, when it reviews again and where it works is under Review lanes below.preflightandintegration- attach to a ticket without reassigning it or moving its status, for lanes that validate or integrate work alongside the implementer rather than owning the ticket themselves.
A fleet commonly runs more implementer lanes than review lanes, since review
work is faster per ticket. Use routing labels
(agent:<tag>) when you want finer
steering than role alone provides.
Step 5: deploy under systemd (or as containers)
Container alternative Added in v0.176.1: the product repo ships a
ready-made runner image (deploy/pi-fleet/Dockerfile) - one container per
lane, started with only the three identity variables plus your model
provider keys, checkouts on a named volume. On a platform like Coolify
that makes the entire lane lifecycle remote: reassignment through orboto
as always, and even runner updates become an image rebuild instead of a
binary swap on the box. If you run containers, skip the rest of this step.
Web search inside the lanes Added in v0.177.0: the runner image also
carries web_search and fetch_content tools backed by a SearXNG instance
you point at with SEARXNG_URL. Run that SearXNG LAN-only (no public
hostname, port bound to an internal address) - the lanes reach it from
inside the network, and nothing else should. The tools are always present;
without the variable they fall back to http://localhost:8080 and every
call fails, so set it wherever the image runs.
orboto ships a generic systemd template unit plus an example environment file. Because the configuration lives in orboto, the unit and the env file are now nearly identical for every lane - only the lane name and the key differ.
-
Create the service user the lanes run as:
sudo useradd -r -m -d /var/lib/orboto-agents -s /usr/sbin/nologin orboto-agent -
Install the binary at
/usr/local/bin/orboto(however you normally install the orboto CLI on this host). -
Create the template unit at
/etc/systemd/system/orboto-agent@.service. It's a systemd template unit: the@lets you start any number of instances (orboto-agent@worker-1,orboto-agent@review-1, ...), each reading its own environment file at/etc/orboto/agents/<lane>.env:# orboto pi-agent lane - one lane = one bot identity = one env file. # The env file holds the lane's IDENTITY only; everything the lane does # comes from orboto. Logs: journalctl -u orboto-agent@<lane> -f [Unit] Description=orboto pi agent lane %i After=network-online.target Wants=network-online.target [Service] Type=simple User=orboto-agent EnvironmentFile=/etc/orboto/agents/%i.env # Remote mode manages its own checkouts under the lane root # ($HOME/.orboto-lanes/<lane>), so this is only the starting cwd. WorkingDirectory=/var/lib/orboto-agents ExecStart=/usr/local/bin/orboto pi-runner --remote $ORBOTO_AGENT_EXTRA_ARGS Restart=on-failure RestartSec=10 # A wedged provider call must not hold the lane forever on stop. TimeoutStopSec=30 # Hygiene - the lane needs exactly: its workdir, the network, and /tmp. NoNewPrivileges=true PrivateTmp=true ProtectSystem=full ReadWritePaths=/var/lib/orboto-agents [Install] WantedBy=multi-user.target -
Write one environment file per lane at
/etc/orboto/agents/<lane>.env. Three identity variables, plus the credentials the box needs:# --- lane identity - the whole contract --- ORBOTO_BASE_URL=https://your-orboto-host.example.com/api ORBOTO_TOKEN=orb_xxxxxxxxxxxxxxxxxxxxx # the lane's bot key ORBOTO_AGENT_LANE=worker-1 # matches the systemd instance name # --- provider key(s) for the model this lane is assigned --- YOUR_PROVIDER_API_KEY=... # --- git credentials for private repositories (optional) --- ORBOTO_AGENT_GIT_USER=x-access-token ORBOTO_AGENT_GIT_TOKEN=...Lock the file down - it holds an API key and, if you use one, a repo token:
sudo chmod 600 /etc/orboto/agents/<lane>.envand confirm it's owned byroot.The lane name must match the part after the
@in the unit instance, sojournalctl, the file and the lane registry all read the same way. -
Reload systemd and start each lane:
sudo systemctl daemon-reload sudo systemctl enable --now orboto-agent@worker-1 sudo systemctl enable --now orboto-agent@review-1
From here on, that box is done. Adding a project to a lane, swapping its model, tightening its priority ceiling, moving it to a different repository - all of it happens in orboto.
Retargeting a running lane
Added in v0.176.0 This is the day-to-day operation of a fleet, so it is worth stating plainly what happens when you press Apply assignment:
- orboto stores the new assignment and bumps the lane's version.
- The runner notices - either from the version echoed in its next heartbeat (30 seconds at worst) or, usually sooner, from the notification orboto sends the lane.
- If the lane is idle, it tears down its session and applies the new assignment straight away. If it is working a ticket, it is told to finish that ticket cleanly first and only then switches; a session that wedges is given 30 minutes before the switch is forced and the abandoned lease is reclaimed server-side.
- Working copies follow: a repository the new assignment no longer names is parked, not deleted, and the trees the new assignment does name are cloned or re-synced before the agent gets going.
The lane list shows the applied version, so you can see at a glance whether every lane has caught up with what you assigned.
Checkout lifecycle
Added in v0.176.0 A lane owns its working trees; you only name a
repository and a branch in the assignment. Under the lane's root
(~/.orboto-lanes/<lane> by default) the runner keeps one directory per
assigned repository, plus its own state directory.
- Every wake verifies the base: fetch, check out the assigned branch, hard-reset to the remote. The agent never has to remember to pull.
- Nothing is reused blindly, and nothing is deleted in anger. A tree that cannot safely be reused - uncommitted changes, commits that exist nowhere else, not a git checkout at all, or a repository the assignment no longer names - is renamed to a timestamped sibling and replaced with a fresh clone. The log line says why; the parked copy keeps the evidence.
- Parked trees are cleaned up on a schedule: they are dropped once they pass a grace period (7 days by default) or when the lane's checkout directory exceeds its disk budget (10 GB by default), oldest first. Active trees are never pruned - if the budget cannot be met without deleting live work, that is reported rather than done.
- Credentials never travel in the assignment. Set
ORBOTO_AGENT_GIT_TOKEN(andORBOTO_AGENT_GIT_USER, defaultx-access-token) in the lane's environment file and the runner supplies it through a git credential helper - it reaches neither the process list nor the repository's config. Without it, whatever the host already has (a credential helper, an ssh agent) stays in charge. Every log line is scrubbed of embedded URL credentials, so a token cannot leak through git's own error text either. - Each lane keeps its own state, so several lanes on one box never cross-report which ticket they are working on.
Review lanes
Added in v0.236.0 A review lane reviews a delivery, not a ticket status. The delivery of a ticket is its newest finished implementation work session and the commit that session recorded. orboto keeps the record of which deliveries a lane has reviewed on the server, so a runner restart, a lost journal or a lane resume never reviews the same state twice.
One review per delivery
- A review lane is offered a ticket in review only when the ticket has a delivery, the lane holds no review task for that delivery in any state (a cancelled one included) and the lane's account has not recorded a verdict for it.
- A review task is complete as soon as its review has recorded an
approvedorreworkverdict for the delivery. That holds while the ticket still waits in review for a person's sign-off under an approval gate too: the lane does not review the unchanged delivery again on its next cycle. - The next review starts when the delivery changes - a fix round after
rework, or a new commit recorded on the delivered work session - or when someone asks for one (see below). - If the implementer delivers again before a queued review has run, that review is refused with
delivery_supersededand cancelled, its summary names the new delivery, and the lane reviews the new delivery once. A running review that recorded its verdict for a newer delivery is completed, not interrupted.
Ask for another review
An operator asks a review lane for one more review of a ticket's current delivery when the first one missed something or the acceptance criteria changed.
| Where | How |
|---|---|
| Web app | Admin -> Agents -> Lanes, open Autonomous work on the review lane (the robot button on its row), and on a completed or cancelled review under Tasks and outcomes choose Review again (shown to people with admin:agent_lanes:write). Give the reason under Why the delivery needs another review and choose Request review. The task then reads "Review 2 of this delivery" (and so on). |
| CLI | orboto lanes rereview <lane> <TICKET> --reason TEXT [--key KEY]; --key makes a retried call return the same task |
| REST | POST /agent-lanes/{laneId}/tasks/rereview with {"ticketId": "...", "reason": "...", "idempotencyKey": "..."} |
| MCP | orboto_lane_rereview with lane, ticketKey and reason (in the full toolset; the default toolset reaches the route through orboto_api_call) |
The request needs admin:agent_lanes:write, or a place among the Authorized coordinators of the lane's standing mandate; the lane's own account may not ask. The lane has to be a review lane with a standing mandate, the ticket's project has to be one of the lane's projects, and the ticket has to have a delivery (a finished implementation work session). If the ticket already has an open review in the lane, that review is returned instead of a second one. Each request is written to the audit log as agent_task.review_requested. A lane name is looked up with admin:agent_lanes:read; someone who has only the coordinator place passes the lane's UUID instead of its name.
Where a review lane works
A review lane checks out the delivery it reviews. It never works on the project's branch, and it never works on a detached HEAD. Before the review starts, the runner fetches the repository and puts the delivery commit on a local branch:
- the delivery branch - the branch the implementation session reported with that commit - when the remote has it with the commit on it;
- else the remote branch whose tip is the commit;
- else a new local branch named for the ticket.
The branch is created from the Branch of the lane's assignment and moved to the commit, so the head is the delivery commit even when the remote branch has moved on or was deleted. Whatever the review runs - lint, typecheck, tests - runs on exactly the delivered state, and the Live diff compares the delivery with the lane's branch. A local branch of that name with commits that no remote branch holds is renamed to parked-<stamp>-<branch> instead of being deleted (see Checkout lifecycle). An implementation lane keeps landing on the assignment's branch. Inside a pi-runner review lane orboto work-next --role review does the same checkout before it prints the reservation.
When the delivery cannot be checked out
The runner never falls back to the project's branch. When it cannot land on the delivery, it blocks the task before any lease or turn starts and names the reason:
| Reason | What it means |
|---|---|
delivery_missing | The task names no delivery to review. |
delivery_commit_missing | The delivery has no commit. A delivery without a pushed commit cannot be reviewed. |
delivery_commit_not_on_remote | No branch of the remote holds the commit (a commit the remote can only serve by id, from a pull request ref or a tag, does not count). Push a branch with the commit, then retry the task. |
The task shows the reason as Review checkout failed: ... in red under Tasks and outcomes, and the worker status in the same panel reads Blocked. The reason also shows in orboto lanes tasks list <lane> and in the Live status line of the task's session. The task stays blocked until you retry or cancel it (Review for retry or Cancel task, with the reason recorded in the audit history). When the ticket gets a new delivery first, the lane's next reconcile cancels the blocked task and names the new delivery, which gets its own task. The runner reports the failure with orboto lanes tasks checkout-failure (REST POST /agent-lanes/{laneId}/tasks/{taskId}/checkout-failure) under the lane's own account and session; it is the runner's call, not an operator command. In a pi-runner lane the reservation is cancelled with the reason instead and the lane is not offered that delivery again until a new one arrives.
Each review task also shows its delivery, Delivery: <branch> at <commit> (or Delivery: commit <commit> when no branch is known), with the commit cut to 12 characters.
What the runner adds to each prompt
Added in v0.236.0 Before each dispatch the runner adds to the lane's prompt, for Claude Code, Codex and pi lanes alike and without any hook:
- The knowledge routing, in three lines: a decision or project fact goes in with
orboto primer-fact add, a lesson or procedure withorboto knowledge add, and the wiki is asked before a person. After it comes one usage-limit line: before the agent stops, defers or reschedules work because of a usage limit, it runsorboto claude limits(ororboto codex accounts listand its siblings) and acts on what has room, never on the wording of an error. An unknown answer means one retry of the stopped work on the same model first. - The wiki pages that match the ticket: at most 3, strict hits only, found by the instance from the ticket's title and description, and offered once per work session. The project's recall switch off, an instance without an embedding provider, no match, an answer slower than 1.5 seconds or
ORBOTO_RECALL=offin the runner's environment leave the prompt as it is. See Wiki pages at the handoff. - What the session did, on a dispatch that resumes an attempt: at most 12 lines of tickets, commits with their CI result, wiki writes and claims. A first dispatch gets none, and so does a lane with
ORBOTO_DIGEST=off. See What the session did.
Watching lanes
- The fleet page: Admin -> Agents -> Lanes shows every lane - online or offline, idle or working, the ticket it currently holds, its assigned projects with their caps, its model, and the assignment version it has applied. A lane counts as online while its last heartbeat is recent. Added in v0.236.0 A lane that is paused or stopped says so under its status: pausing while a turn is still running, paused, stopping, stopped (see Pausing).
- Logs:
journalctl -u orboto-agent@<lane> -f- the runner prefixes every status line with a timestamp, and echoes a condensed view of what the agent said and which tools it called, so you can follow a lane's progress without attaching to the session directly. - The Live view: Added in v0.236.0 each lane's session streams to
Admin → Agents → Live unless the runner runs with
ORBOTO_LIVE_SESSION=off(see Publish an agent session live). A Claude Code lane works one step per dispatch, so the view showsidle: step done, the runner decides what followsafter every step andrunning: session resumedwhen the next step continues the same session; that is the lane working as designed, not an error. A shell call shows as its command (see Remote console). - Active leases:
orboto work-sessions --mine(run as, or with the token of, the lane's own identity) shows exactly what that lane currently holds;orboto work-sessions --ticket ACME-42shows who - if anyone - holds a specific ticket. - The workspace UI: tickets a lane is actively working show its identity as assignee, same as a human's would.
Sessions, scope and the wake ledger
A fleet is many sessions, often under few identities, so the question "who should this message wake?" stops being academic. The rules are one page of their own - Sessions, scope and the wake ledger - and these are the four points a fleet operator needs:
- Every lane declares a scope. A session says which role it plays and which
projects and tickets it is responsible for, with
orboto session-start --role <role> --scope-projects ACMEororboto agent-heartbeat --role ... --scope-projects .... It is then woken by mail addressed to it, by mail inside those projects and tickets, and by broadcasts - and not by a sibling lane's conversations. - You can write to one session, not just one account. Every rendered message
prints the sender's short session id;
orboto agent-notify <email> "..." --session <short id>Added in v0.200.0 reaches exactly that running lane, and is refused rather than guessed when the reference is ambiguous. - A channel session without a declared scope receives less on purpose. Added in v0.200.0 A session that announced a wake channel pays a model turn per event, so until it declares a scope the channel delivers only mail addressed to it and broadcasts, plus one reminder per connection. Its ordinary message list still shows the whole account, so nothing goes unseen.
- The wake ledger says whether the wakes were worth it.
orboto agent-wakesAdded in v0.200.0 lists every message that woke one of your sessions with the rule that delivered it, the outcome and the context tokens it cost;orboto agent-wakes --statsreduces that to a precision per session and per sender. In the UI it is the Wakes (24 h) column and the Wake ledger drawer of Admin → Agents → Live; a session whose 24-hour precision falls below 80 percent over at least ten wakes raises one operator notification per day naming the sender and rule that misrouted most of them.
Pausing
Three switches, from narrowest to widest:
- The lane switch Added in v0.176.0 - Pause on the lane's row in
Admin -> Agents -> Lanes,
orboto lanes pause <lane>, or Pause on the lane's assignment (orboto lanes assign <lane> --paused). The runner keeps heartbeating, so the lane stays visible in the fleet page, but it pulls nothing. Resume with Resume,orboto lanes resume <lane>or--resume; the lane picks work up again within one heartbeat. Added in v0.236.0 A pause takes effect at the next turn boundary and keeps the work in flight, and Stop now is a separate action; see Pause, resume and stop now. - The per-bot toggle and the workspace-wide switch in Admin →
Multi-Agent, described under pausing.
These are identity-level, so they work the same whether the identity is
connected through
pi-runner, the MCP server, or anything else.
You never need to stop the systemd service to pause a lane, and stopping it is the worse option: a lane whose service is stopped goes offline in the fleet page instead of showing that it was paused on purpose.
Pause, resume and stop now
Added in v0.236.0 A pause never throws away the work a lane has in flight. Pause and Stop now are two separate actions:
| Action | Where | What happens |
|---|---|---|
| Pause | Pause on the lane's row; orboto lanes pause <lane> [--reason TEXT]; POST /admin/agent-lanes/{id}/pause; MCP orboto_lane_pause | Takes effect at the next turn boundary. The running turn finishes and its usage and effects are recorded. The lane keeps its work session open and renews its lease at every heartbeat, the session's timer is paused, and no new turn or task starts. |
| Resume | Resume; orboto lanes resume <lane>; POST /admin/agent-lanes/{id}/resume; MCP orboto_lane_pause with action: resume | The held task continues with its next turn in the same work session and the same runtime session: no new attempt, no second claim. Resume also clears a stop now that is still pending. |
| Stop now | Stop now, then Stop now? to confirm (the confirmation lapses after 5 seconds); orboto lanes stop <lane> [--reason TEXT]; POST /admin/agent-lanes/{id}/stop; MCP orboto_lane_stop | Interrupts the running turn at the runner's next heartbeat, releases the work session and records the task as interrupted. There is no backoff and no model switch. The lane stays paused until you resume it, and the next run of that task is a new attempt that first inspects the effects saved so far. |
Each action needs admin:agent_lanes:write, takes an optional reason of up to 500 characters and is written to the audit log (agent_lane.paused, agent_lane.resumed, agent_lane.stopped). The REST body is optional. orboto_lane_pause and orboto_lane_stop are in the full MCP toolset (see Choosing the toolset); the default toolset reaches the same routes through orboto_api_call. Their lane argument is the lane's name or UUID, and the name lookup needs admin:agent_lanes:read.
What you see:
- On the lane's row, under its status: pausing - finishing the current turn while a turn is still running, paused, holding ACME-12 once the lane holds a ticket, paused, stopping - interrupting the turn and stopped. A hint line below the buttons says what the next click does.
- In
orboto lanes list, the state column readspausing,paused,stoppingorstopped. - In the Live view of a held lane:
paused: the lane holds at this turn boundary until the operator resumes it. The task's history records the hold and the resume.
How the two runners take it:
orboto agent-runner(Claude Code, Codex, pi and protocol lanes) works one turn per dispatch and holds at the boundary; the task's progress deadline is suspended while it holds. The stop reaches it at its next heartbeat, which is its--pollinterval (30 seconds unless you set it, 5 to 300).orboto pi-runnerhas no turn boundary to hold at: pi keeps working the ticket it has and a pause only closes the pull of new work. A stop now reaches the runner at once through the lane message, otherwise with its 30-second heartbeat. It terminates pi, releases the work session the runner recorded and starts no pi until you resume.
A worker restart during a pause keeps the session (agent-runner). The hold is kept in the worker's private journal, so a worker that is stopped during it (orboto agent-runner --stop, a signal, a service restart) or that crashes leaves the work session open with its timer paused. On its next start the worker holds again, without a second claim or a new attempt, when the task still runs in that same work session, the session is still active, the worker's harness is unchanged and no stop now is pending. After you resume, the next turn runs in the same work session. A work-session lease lasts 15 minutes between renewals, so a worker that stays down longer loses the hold: the session expires, the task is recorded as interrupted and its next run is a new attempt. The same happens when the session ended meanwhile, the task runs under another session, the harness changed or a stop now is pending. A pi-runner holds nothing across a restart: a stop signal releases the work session it recorded, and after a crash the lease runs out.
A pause that waits for the turn boundary, and Stop now, need the runner from 0.236.0: an older agent-runner still cancels the turn on a pause, and an older pi-runner ignores stop now.
Pinned mode: configuration on the box
The original model - every knob in the lane's environment file, a restart for every change - is still supported, unchanged. Use it when a box must run without depending on the registry, or when a lane's behaviour is deliberately frozen.
Override the unit's start command with a systemd drop-in
(sudo systemctl edit orboto-agent@worker-1):
[Service]
ExecStart=
ExecStart=/usr/local/bin/orboto pi-runner --project ${ORBOTO_AGENT_PROJECT} --session-name %i $ORBOTO_AGENT_EXTRA_ARGSand put the lane's configuration in its environment file instead of in orboto:
| Flag | Env var | What it controls |
|---|---|---|
--project | ORBOTO_AGENT_PROJECT | The project key this lane works. Required in pinned mode. |
--work-role | ORBOTO_AGENT_ROLE | implementation (default), review, preflight, or integration. |
--agent-tag | ORBOTO_AGENT_TAG | The routing tag this lane prefers, e.g. backend - matches the agent:backend label from Work routing. |
--workdir | ORBOTO_AGENT_WORKDIR | Directory pi is spawned in, independent of wherever the supervisor process itself runs. Created if missing. |
--repo | ORBOTO_AGENT_REPO | A git URL to clone into --workdir on first start, and fetch + fast-forward on every restart. Requires --workdir. |
--idle-prompt | ORBOTO_AGENT_IDLE_PROMPT | The self-tasking prompt injected once the session has been idle this long. Leave unset to run a lane that only reacts to inbox messages and never self-tasks. |
--idle-after | ORBOTO_AGENT_IDLE_AFTER | Minutes of idle time before --idle-prompt fires (default 30). |
--model | ORBOTO_AGENT_MODEL | The model the pi child uses, as provider/modelId. |
--fallback-models | ORBOTO_AGENT_FALLBACK_MODELS | Comma-separated provider/modelId chain to switch through automatically on a rate limit or quota error. |
--poll | - | Poll interval in seconds, used only as a fallback while the live event stream reconnects (default 15). |
--session-name | - | The pi session id, used to create-or-resume a session per working directory across restarts. |
--bootstrap | - | A one-time prompt delivered when the lane first starts. |
--ref | ORBOTO_SENDER_REF | Identifies this lane as a message sender, so it never wakes itself up from its own outbound replies. Defaults to a generated value. |
The same variables double as single-knob overrides on a remote lane: an
ORBOTO_AGENT_* value set on the box still beats what orboto says - but
never silently. Each override writes a warning to the log naming the server
value it is shadowing, so a forgotten leftover is visible in journalctl
instead of quietly steering the lane. Pin one knob to debug something, then
delete the line.
Troubleshooting
| Symptom | Likely cause |
|---|---|
pi-runner exits immediately with "is pi installed?" | The pi binary isn't on the PATH of the user running the service. Confirm sudo -u orboto-agent pi --version works. |
| The lane exits with "register refused" | The token belongs to a human account rather than a bot, the key has been revoked, or the lane name is already bound to a different identity. None of those heal by retrying, so the runner exits instead of looping. |
| The lane logs "idle (lane has no project assignment)" forever | It registered fine but nothing is assigned to it - open Admin -> Agents -> Lanes and give it a project. |
| The lane logs "idle (lane is paused by the operator)" | Its lane switch is on. Resume it in the fleet page or with orboto lanes resume <lane> (or orboto lanes assign <lane> --resume). |
| The lane stays on pausing | Added in v0.236.0 A turn is still running, and a pause waits for the turn boundary. It ends when the turn does. Stop now ends it at once and records the task as interrupted. |
| A pause interrupted the running turn, or the task ran again after the resume | Added in v0.236.0 The runner is older than 0.236.0. Update it: only the 0.236.0 agent-runner holds the work session at a pause, and only the 0.236.0 pi-runner takes a stop now. |
| A review task is Blocked with "Review checkout failed" | Added in v0.236.0 The runner could not put the delivery on a branch. Read the reason under When the delivery cannot be checked out, fix it at the git host, then retry the task. |
| A review lane does not review a ticket that is in review | Added in v0.236.0 It already reviewed the ticket's current delivery, or the ticket has no finished implementation work session to review. A new delivery is reviewed on its own; for another review of the same delivery use Review again. |
| A reassignment doesn't seem to take effect | Check the applied version in the fleet page. A lane mid-ticket finishes that ticket first by design; a lane whose heartbeat is stale isn't running at all - check systemctl status orboto-agent@<lane>. |
| The log warns that an env var "shadows the server" value | A pinned ORBOTO_AGENT_* variable is overriding the assignment. Remove it from the environment file unless you meant it. |
| The lane keeps working the same ticket status forever | Check journalctl for repeated work-next calls returning all-blocked or all-leased - see the reason table in Work routing. |
| A Claude Code lane's turn fails and its status names a denied tool | Added in v0.236.0 The lane status names the tool Claude Code refused. Claude Code ignores the permissions of a checkout it does not trust, so a lane's allow and deny rules must live in the user settings of the worker's account (or come from --settings in the executable named by --adapter-bin). Add the rule there. |
| The lane hits a provider limit and never recovers | Set a fallback chain on the assignment. Without one, a limit error is only logged - the lane doesn't switch on its own. |
| Fresh checkout fails on first start | git clone failed - check the repository URL on the assignment, and that the lane's user can reach the git host with the credentials in its environment file. A failed clone is treated as fatal so a lane never silently works on an empty directory. |
A lane's working copy vanished and reappeared as parked-... | Expected: the tree could not be reused safely (local changes, unpushed commits, or a repository the assignment no longer names). The parked copy still holds the evidence; it is cleaned up after its grace period. |
Your first AI worker
A step-by-step guide anyone can follow: put an autonomous AI agent on your project in about ten minutes - alone, or as an implement + review duo.
Watch and steer live agent sessions
Follow a running agent session as it happens, answer its questions and approvals, take over and type into it, and sign its harness in from your phone.