Markwork Docs

Agent

The pi orchestrator

Markwork can orchestrate an external harness: a kanban card assigned to @pi is worked on by pi in another project folder, for example a code repo, not in the Markwork work folder.

Animation of a kanban board: @pi cards are assigned, one works and one queues, both finish to Review, then a third card waits for an answer
@pi cards: assigned, working and queued, finished to Review, then waiting for an answer

Assigning cards

---
layout: board
project: web-ecommerce         ← the default project of the board
---

## Plan
- [ ] Checkout with QRIS @pi #feature
- [ ] Test the cart @pi #project/shop-admin     ← the project tag wins over the frontmatter
  1. Write @pi in the card title, or fill in Assigned to in the card edit dialog.
  2. Right-click the card → Work on it with pi.
  3. The project is taken from the #project/name tag or from the board frontmatter project: name. The project folder is asked for once and then remembered in the settings; a card without a project is given a tag from the name of its folder.

When it starts, the card moves to the In Progress list. When it finishes, it moves to Review with the note ↳ pi done …: summary. If it fails, the card stays where it is with the note ↳ pi failed …: reason.

Notes as context

Pi works in the project folder, so it cannot read the notes in the Markwork work folder. Link the notes on the card with [[ ]], and Markwork copies their contents into the prompt.

- [ ] Checkout with QRIS [[Spec#Payment]] @pi
  Follow the decisions in [[Meeting Notes]].

On the board, a link in a card title can be clicked to open its note, and a link in the notes of a card is shown as a ↗ name row below the chip. The notes field in the card edit dialog suggests names when you type [[.

Card status

ChipMeaning
◇Assigned
◌Queued: the same project is being worked on by another card
●Working
⏸Waiting for your answer
✓ / ✕ / ■Done / failed / stopped

One project folder is worked on by one harness at a time; other cards queue and start automatically.

A kanban board with the card Checkout with QRIS showing pi working in In Progress and Test the cart showing pi queued in Plan
One card works, another card in the same project queues

Answering pi

Pi runs in RPC mode, so its conversation can be continued from Markwork:

A kanban board: the card Tidy up the README shows pi waiting for an answer in In Progress, two other cards finished in Review
A card waiting for an answer stays in In Progress
The Answer pi dialog with the question of pi about the README, an answer box, and the Later, End without replying, and Send buttons
The Answer pi dialog

Log and control

The card menu also has:

The pi Log window with the prompt sent to pi, the session, the model reasoning, the bash and edit tool calls, and the finished summary
The pi log: the prompt from the card, the reasoning, the tools, and the summary

Access boundaries

Pi writes freely in the project folder, without the Markwork review window.

Review the result in that project repo itself (pi is asked not to commit). Pi does not ask for tool permission by itself; permission requests come from the pi extensions you install, such as permission-gate.