Run, verify and deliver
Every worker costs model usage, billed by the provider its client uses. Check the proposed worker and budget before you start it.
Start a worker
- Dashboard
- Claude Code or Codex session
- Terminal
In Chat, describe the change. Choose Start on each task you want, or Start all. Follow the workers in Team and find the results in Issues. See Start workers from Chat.
In Team, open a session to follow it. Expand shows its console with the worker's live output; Execution and Timeline show the steps it took.
Ask the session to hand the work to a LibraOS Engine worker. The agentd skill drafts
the task from the code (goal, acceptance criteria, verification) and shows it
to you before it starts anything.
libraos-core run starts one worker on one task in the current repository and waits
for it:
libraos-core run "Add a test for the parser" --budget 30m
| Flag | What it does |
|---|---|
--worker claude or --worker codex | Chooses the worker. Claude by default. |
--check CMD | Sets the check. Without the flag, a check is guessed and shown before the worker starts, such as go test for a Go module, npm test for a package.json with a test script, or pytest. Without any check, the result is not tested. See Checks. |
--budget | Sets the budget. 30 minutes by default. |
--allow-dirty | Runs with uncommitted changes. Without it the run is refused. See Your uncommitted files. |
--yes | Runs a guessed check without asking. A check taken from a script in the repository, such as a package.json test script, is shown and needs a yes first. Without a terminal to answer on, such as from a script or an agent, the run is refused unless you pass --yes or --check. |
The run ends with a card: the handoff id, worker, branch and commit, diff stat,
check exit code, minutes and dollars. When the branch has commits, the card
ends with Open a draft PR: libraos-core handoff pr ID; see Review and
publish. Ctrl-C detaches; follow the worker with
libraos-core handoff show ID.
How many workers run at once
Workers started from Chat or the dashboard's other views, from a session's
handoff or by the watchdog run at most max_workers at a time, 2 by
default. libraos-core run starts its worker
at once. Raise the limit, with AGENTD_USER exported as an owner:
libraos-core config set dispatch.max_workers 8
A task over the limit waits in the queue. The watchdog timer, which runs
every minute, starts it once a slot is free. A worker the watchdog starts gets
the watchdog service's PATH, %h/.local/bin:/usr/local/bin:/usr/bin:/bin
(%h is your home folder), not your shell's. If claude, codex or a tool
the check needs is installed elsewhere, such as under nvm, libraos-core doctor
reports it.
If a worker fails. The failed work item shows in Inbox with the reason. Fix the cause, then choose Start again on the item. It starts a new worker on the same task, with its goal, acceptance criteria, check and budget; you can change the worker and checkout, then Confirm and start. The handoff's sender, its claimer or an owner can start it again, and the dashboard must be allowed to dispatch (see Start workers from Chat).
Checks
A task's check runs after the worker commits, in the worker's own worktree. Make it test the committed result: the repository's tests, or, for the files that changed:
git diff --name-only "$(git merge-base HEAD origin/HEAD)" HEAD
git diff HEAD and git status are empty once the worker has committed. If
the clone has no origin/HEAD, such as one made with git init and a remote
added later, the snippet fails with Not a valid object name origin/HEAD. Set
it once in the checkout:
git remote set-head origin -a
To set a repository's check, worker, budget and criteria once for every
task, commit them in .agentd/tasks.toml; see
The repository task file.
Checks that need dependencies. A worker's worktree has only what the last
commit has: no node_modules, .venv or vendor. LibraOS Engine installs nothing.
Make the check install first, such as npm ci && npm test, or say so in the
task. A Codex worker has no network access unless [dispatch] codex_network = true or its role sets network: true, so a Codex install step that
downloads fails without it.
Dependency warnings. Before a Codex worker without network starts, LibraOS Engine
looks for what its check needs. A Node check (npm, pnpm or yarn) with a
lockfile and no node_modules, or a Python check (pytest, python or
tox) in a project with no virtual environment, gets a warning that the check
will likely fail. It shows in libraos-core run's summary, the task's history, the
Chat proposal and the dashboard's start sheets. Fix it in one of these ways:
- use a Claude worker;
- set
[dispatch] codex_network = true; - install the dependencies first, or make the check install them.
A worker's result and history also name what its worktree lacks: uncommitted
changes, ignored folders such as node_modules, .venv or vendor, and
uninitialised submodules.
An owner can replace or waive a task's check, with Change check on the item
in the dashboard, or from a terminal with AGENTD_USER exported as an owner:
libraos-core handoff check ID --check 'npm test' # replace it
libraos-core handoff check ID --check none # waive it
The history records who changed it, and the worker is told. A worker cannot change its own check.
Independent validation
A project check and a validator answer different questions. The check runs a command against the change. A separate validator assesses whether the result meets the task's acceptance criteria and whether the recorded evidence is sufficient.
When you plan a task with your coding agent, ask it to add a separate validation handoff after development. Give the validator the original goal, acceptance criteria, changed files and check result. The validator should inspect the result and run the checks it needs before recording its verdict. A worker's own completion summary is not independent validation.
For a command-menu task, the acceptance record could specify:
| Criterion | Evidence to look for |
|---|---|
| Escape closes the menu | A test that opens the menu, presses Escape and checks that it closes. |
| Focus returns to the trigger | A focus assertion after closing the menu. |
| Existing behavior is preserved | The project's relevant regression checks. |
A missing or failed check, unresolved question, or unmet criterion stays open for follow-up. Inspect the task's evidence before authorizing delivery. Passing verification does not grant publication or merge permission.
Where the work goes
LibraOS Engine finds the repository's default branch in this order:
origin/HEAD, if the clone has it.- What origin says its default branch is, asked once, for at most 5 seconds.
- Your
init.defaultBranchsetting, if a branch of that name exists. mainormaster. These two always count as a default branch.
A worker started in a checkout on its default branch, or on a detached HEAD,
gets a git worktree of its own under .claude/worktrees, on a new agentd/…
branch. This holds for Claude and Codex alike, so a develop or trunk
default is never worked on in place. Your checkout stays where it was.
A worker started in a checkout on another branch, or in a linked worktree,
works there in place, on that branch, with your files as they are. With
libraos-core run from a main checkout on another branch:
- a Claude worker is refused, because Claude Code does not edit a main
checkout from the background. Run from the default branch, from a linked
worktree (
git worktree add), or with--worker codex; - a Codex worker works in the checkout, on that branch.
Your uncommitted files
libraos-core run refuses a checkout with uncommitted changes unless you pass
--allow-dirty.
A worker in its own worktree starts from the last commit, without your uncommitted changes. A worker in place works beside them. LibraOS Engine records which files were uncommitted when the worker started and keeps them out of its commits:
- Claude worker
- Codex worker
The worker is told which files are yours and to stage only its own, by name. If its commits change one of your files anyway, LibraOS Engine warns when the worker finishes.
The worker commits through LibraOS Engine, which commits only the files changed since the worker started. Your modified, staged and untracked files stay out, even one the worker edited too, and the result names what it left out.
The task's history, the Chat card and the result card say the checkout had uncommitted changes.
Behind GitHub
LibraOS Engine never pulls. Before a worker gets a new worktree, LibraOS Engine fetches origin,
waiting at most 20 seconds; if the fetch fails, the worker starts anyway from
your HEAD. When your default branch is behind origin's and has no commit origin
lacks, the worktree starts from origin's branch, such as origin/main,
instead. Otherwise it starts from your HEAD. The result card, the task's
history and the worker's prompt say which. Your checkout is never pulled,
switched or reset.
Workers and publishing
The worker workflow stops at a local commit. Publication uses a separate authorized action. How the worker's restriction is applied depends on its client:
- every dispatched Claude worker gets a rule that refuses
git push,gh pr create,gh pr merge,gh pr readyandgh apicalls that write; - a Codex worker has the same rule in its prompt only. The card from a
terminal run reads every remote before and after the worker and prints
!! PUSHEDif a ref for the branch changed.
A prompt-level rule is not a permissions boundary. A worker uses your OS account and may have access to its credentials; inspect any reported remote change before proceeding.
Publishing goes through you: see Review and publish. To limit what else a worker may run, see Worker permission rules.
Review and publish
LibraOS Engine pushes a worker's branch and opens a draft pull request only after you confirm. Merging is a separate owner action in the dashboard, or an action on GitHub; see Merge. A passed check or validator result does not grant permission to publish or merge.
When a worker finishes with commits on its own branch, the person who sent the task gets Ready for review: open a pull request? in the Inbox, with the diff summary, check, time and cost. The task in Issues and the Chat result card offer the same.
- Check the evidence against the acceptance criteria, and inspect the change
where it needs attention. Changes lists the changed files with their added and
removed lines; open a file for its diff. Past 200 KB the diff is cut, with
the terminal command for the whole change. Result has the worker's
summary, its latest report and its deliverables in
out/. - Choose Open a draft PR. The confirm sheet shows the branch, the remote and repository, the base branch, and the pull request's title and body.
- Choose Push and open draft PR. LibraOS Engine pushes only that worker's branch to origin, without force, opens a draft pull request, links it to the task and records who opened it in the task's history.
- Confirm the repository's required checks and approvals, then merge it.
Not now dismisses the Inbox item for you. Open a draft PR stays on the task.
From a terminal, with AGENTD_USER exported:
libraos-core handoff pr ID --dry-run # show what would be pushed and opened
libraos-core handoff pr ID # push the branch and open the draft PR
Who may open one. The task's sender, its claimer or an owner; not a
viewer, and on a team not the shared dash token. LibraOS Engine also checks that the
branch is the task's own agentd/… branch and not the default branch, that
the repository is in [sync] repos, and that the GitHub CLI is signed in. A
remote branch that already has other commits is refused. A refusal shows the
commands to run by hand; see Open a pull request by
hand. Opening it again returns the same pull
request.
Report-only tasks. A task whose changes are only in the worker's out/
folder, such as a written review, has nothing to publish. The Inbox shows
Report ready with View, which opens the result and its deliverables,
and no pull request is offered. When a change mixes out/ files and
repository files, the confirm sheet lists the out/ files that would be
published too.
Turn it off. With AGENTD_USER exported as an owner:
libraos-core config set dash.open_pr false
This hides the proposal and refuses both Open a draft PR and
libraos-core handoff pr.
Merge
Once a pull request is linked, Merge appears on the task in Issues, with the pull request's state beside it, such as draft, checks failing, review required or blocked. Only an owner can merge from the dashboard.
On a draft pull request the button reads Mark ready and merge: it marks the pull request ready for review, then merges it, and records both steps in the task's history. LibraOS Engine never bypasses branch protection: a merge that GitHub refuses stays refused. You can also merge on GitHub.
Open a pull request by hand
If Open a draft PR is turned off or refused:
-
Review the branch.
-
Push it and open a pull request, for example:
git push -u origin BRANCHgh pr create --draft --fill -
Link the pull request to its task:
libraos-core pr sync-ghIt reads the pull requests of the repositories in the config file's sync list (
[sync] repos;libraos-core initadds the current one) and links each to its task by branch name. A running dashboard also syncs every 5 minutes. It needs the GitHub CLI signed in. -
Once the pull request is linked, Merge appears on the task in Issues.
Logs
| What | Where |
|---|---|
| Each worker's output and settings | ~/.local/share/agentd/.state/dispatch/ |
| A session's MCP server | ~/.local/share/agentd/.state/mcp-SESSION.log |
| The dashboard, watchdog and notification services | journalctl --user -u agentd-dash -u agentd-watchdog -u agentd-notify |
libraos-core handoff show ID names the log of each worker of a task.