Working with agents
How an item travels from a plan to a merged pull request. The default flow is
todo → in_progress → in_review → doneIt is a suggestion carried by the Dispatch brief and the tool descriptions.
awaiting_operator is not a step in it: it hands an item to you when it needs
a decision only you can make.
The only rule about who moves an item that the tools enforce is the
operator’s hold.
Author a plan
Write a markdown document with a work: block — by hand, or ask an agent to
draft it. Give each deliverable a stable id, a title and status: todo;
add lane and dependsOn where they help. See the
format reference.
An agent adding or retitling items patches the block and reads the document back, so it sees any diagnostics right away.
Dispatch an item
On the Board, a ready item has a Dispatch button. An agent can do the same
with spawn_session, passing the item’s address as workItem
(plans/shopping-list.md#export-button) and the dispatch template.
Dispatch is a launch template: a short brief plus the plan and item context. The brief tells the agent to:
- check the item’s
todosiblings and cover small ones that belong in the same change (or exactly the ones anAlso cover:line names); - set each covered item to
in_progresswhen it starts; - land the work the way the project lands work, following its own conventions — and ask you if it states none;
- stamp the PR on every item it covers, then set
in_reviewif the PR completes the item, or leave itin_progressif it is only part of it.
A plan with no code behind it (outside a project, or in one whose
project.md names no repo, repos or cwd) gets the document version of
the brief instead: the agent edits
vault documents only, names what it changed in each item’s note, and hands
over with in_review — no branch, no PR.
Dispatch guards against double work. It refuses an item that is already in
progress or in review, or is closed: pass force: true only when a second
launch is really intended. It also refuses a deferred item (set todo to
revive it) and one with an unknown status (set a known status first); forcing
those launches the item but leaves its status as it is. A blocked item can be
dispatched. An awaiting_operator item is refused too, as the operator’s
hold describes.
The agent self-reports
When the dispatched session opens, a todo item flips to in_progress. From
there the agent reports status as it becomes true with
document_work_update, which addresses the item by id, stamps the
timestamps, and appends PR URLs to prs. Agents never hand-edit those
fields in the YAML.
In review
in_review means the work is finished and handed over: its PR is up, or, in a
plan with no code, the changed documents are named in the item’s note. Any
reviewer may take it — another agent or you. On the Board it stays under
In progress with an “In review” pill, since it is still on the agents’ side.
The operator’s hold
awaiting_operator hands an item to you. It lands in your Awaiting you
column, longest wait first — unless it carries an open question and nothing
it depends on is open, which puts it under Needs your input instead. The default Dispatch brief does not end
there: it stops at in_review. Once an item is awaiting_operator, the agent
tools refuse to move it on, even to done after you merge. So keep the
hold for a decision only you can make, or end your own Dispatch brief there if
you want every finished item in your column (see Customising).
This hold is the one rule about who moves an item that the tools enforce, because it guards your decisions:
spawn_sessionrefuses any launch on the item, andagent_runrefuses to bind a sub-agent to it. Both acceptforce: true, which an agent should pass only when you tell it to.document_work_updateandboba work setrefuse to move it to a status of another role, with no override. An agent may still add anoteorprwhile keeping the status.
The hold lives in the tools, not in the file: a direct edit of the YAML can
still change the status, which agents are told never to do. The merged-PR
sweep also closes a held item when you name awaiting_operator in --from. You leave the hold
on the Board, by changing the status or by answering.
Blocking questions. When an agent hits a decision it shouldn’t make — scope,
product, authority — it asks with document_work_question_add instead of
guessing, and may set the item to blocked. The item moves to Needs
your input — once its dependencies are done; until then the question waits
quietly on the card. Answer it in the web UI, or ask an agent to record your answer
(that call goes through your approval policy). An answer that leaves an
awaiting_operator item with no open question is the go-ahead: it moves the
item to in_progress, so a rework session can pick it up.
Close it
done is an observation after the merge, not a claim an agent makes on its
own. Set it yourself, or tell the agent that did the work about the merge: the
item is still in_review, so the agent may close it. In a project with a
repository (repo, repos or cwd in its project.md), the Bookkeeping
action on a plan checks every item against what landed and closes the merged
ones. Or let the merged-PR sweep do it:
boba sweep-merged-prs --from in_review,awaiting_operator --dry-run # what would flip
boba sweep-merged-prs --from in_review,awaiting_operator # flip themIt flips an item to done only when every URL in its prs is merged on
GitHub, and appends the PRs to its note. Any gap — an open or closed PR,
another forge, a failed lookup, an unanswered question — leaves the item
untouched. No model call; safe to run by hand, from cron, or as a scheduled
task. Set GITHUB_TOKEN (or GH_TOKEN) for private repositories, and for
public ones to avoid GitHub’s low limit on unauthenticated requests.
Why not in_progress? Under the Dispatch contract, an agent leaves an
item in_progress with its PR stamped when that PR is only part of the
work. Sweeping it would close half-finished items the moment their first PR
merged. For the same reason --from refuses todo, blocked and
deferred, and closed statuses have nothing left to close.
Customising
The buttons BotBandit ships — Dispatch, Work item chat, Document chat and a
few more — are markdown launch templates, not code. To change what Dispatch
tells your agents, put your own prompts/dispatch.md in the vault. The
nearest prompts/ folder above a plan wins, so a project or a single folder
can carry its own version.
An override replaces the default, it never merges with it: a preset you
leave out falls back to the cautious default (no goal, human approval), not
to Dispatch’s. Start from the full default launch: block —
subject: work-item, goal: item-title, approval: agent,
placement: primary, buckets: [ready] — and change only the brief. It
replaces both the code and the document version of Dispatch wherever it
applies. Templates are documented in
docs/features/launch-templates.md.
Your process may differ from the default flow. For example, your Dispatch
brief can end at awaiting_operator, so that every finished item waits in
your column and only you or the sweep close it. Nothing enforces the
sequence; name your own statuses in --from when you sweep.