Skip to content

The Canvas

Randy Northrup edited this page Nov 19, 2026 · 1 revision

The canvas

The canvas is a single web page served by a small local server (playbook/server.py). It reads and writes the same JSON files the agent reads, so a change you save is what the agent follows on its next pb.py show. The page checks for changes every 4 seconds, so edits made by an agent show up without a reload.

Open it

How Command
Shortcut "Agent Playbook" on the Desktop or in the Start menu (Windows), Agent Playbook.command on the macOS Desktop, or the app menu entry on Linux. Create it with python playbook/install_shortcut.py.
Any OS python playbook/launch.pyw
Another port python playbook/launch.pyw --port 47400, or set AGENT_PLAYBOOK_PORT
Server only python playbook/launch.pyw --no-browser, or python playbook/server.py [--port N]

launch.pyw starts the server in the background if it isn't already answering on the port, then opens http://127.0.0.1:47321/ (or your port). The server writes errors to playbook/server.log.

The status line under the title in the left rail says where you stand:

Status Meaning
Saved to the skill Every change is on disk.
Saving… A change is on its way.
Not saved yet · trying again The server isn't answering; the page keeps the change and retries.
Not saved: needs a reason A change deletes something and no reason was given.
Not saved: reload the page The server didn't accept this window's token (for example after a restart). Reload, then redo the change.
Skill server is not running Start it with the shortcut or launch.pyw.
View only · install the skill to edit You opened a published read-only copy (see Read-only export).

If the server stops while the page is open, a banner says "The skill server isn't answering." Changes you make meanwhile stay in the window and are saved when the server is back, so keep the tab open. Try again retries at once. If you try to close the tab while a change is still unsaved, the browser asks you to confirm.

The views

The left rail has five tabs, a search box (/ focuses it) and the flow list by group. A dot next to a flow means it has your edits. Each view has its own address: #home, #accounts, #folders, #parts, #history, or #<flow-id> for a flow, so you can bookmark them.

Home

Overview page with counts and flow cards by group

Counts of flows, steps and notes, rules and QC checks, accounts, shared folders and nodes you edited, then a card per flow, by group. Each card shows the flow's summary, a bar of its node kinds, how many folders and accounts it uses, and "your edits" if you changed it. New flow creates one: give it a name, a group, a position in the group, a one-sentence summary and an icon. The flow's id is made from its name when it is created and never changes after that, even if you rename the flow.

A flow

A flow on the canvas

The board shows the flow's nodes and connections. Solid arrows are the main path; dashed lines are attached notes. Along the bottom, a legend counts each kind of node: click a kind to highlight it. A minimap and zoom controls sit in the corner.

The top bar shows the group, the flow's name and its summary. Click the name for Flow settings (rename, change group, position or icon). The buttons on the right:

Button Does
Accounts The accounts whose platform flow is this one, and Add an account here
Undo, Redo Step back and forward through your changes to this flow
Clock Versions of this flow (see Versions and restore)
Copy icon Duplicate flow: a full copy with every node, connection and folder link, for a new account or project
Trash Delete the flow (asks for a reason)
Add Add a node of any kind, or From the parts library
Keyboard The shortcut list

To move around: drag the board, scroll to zoom, F to fit. Double-click empty board to add a node there. A wide flow opens at a readable 75% zoom from its left edge; press F to fit, and F again to see the whole flow.

Node details and editing

A step's details panel

Click a node to open its details: the kind, title, one-line summary, details (rendered: a line starting with - is a bullet, **bold** works), checklist, folders, links, and its connections ("Comes from", "Leads to"). A Go to flow node has a button that opens its target. An account node shows the account inline. If the node has an origin or sources, they sit collapsed under Where this came from. The footer has Duplicate, Swap part, Save as part and Delete.

Double-click a node, press Enter, or click the pencil to edit it. The form has:

Field Notes
Type Any of the ten kinds. A goto gets an Opens flow picker; an account node gets an Account picker.
Title Up to 80 characters, one line
One-line summary Up to 120 characters
Details Up to 1200 characters
Checklist One item per line, up to 12 items of 200 characters
Folders Pick a shared folder, or paste a new path (that creates a shared folder)
Links One per line: Label | https://…
Sources One per line (the node's src list)

Ctrl+Enter saves (Cmd+Enter on a Mac). Flows and nodes explains what each kind is for.

Connecting nodes

  • Drag the dot on a node's right edge onto another node to connect them.
  • Drop it on empty board to add a new connected step there.
  • A connection that touches a rule, tool or gotcha is made as an attached note (dashed); any other is a main-path connection (solid arrow).
  • Click a connection to edit it: a label of up to 24 characters ("yes", "pass", "X"), its style (main path or attached note), Reverse, or Delete.

Shift-drag on the board selects a group of nodes; Shift-click adds one. With several selected, the panel offers Copy, Duplicate, Line up in a row, Stack and Delete. Ctrl+C and Ctrl+V copy nodes between flows too.

Accounts

Accounts registry grouped by platform

Every account, grouped by platform, with filters for platform, status and text. A card shows the handle, label, status, what the account is for, its pacing, how it signs in, its projects and notes, plus links to its profile and its platform flow. Buttons: Edit, Duplicate (a copy with the handle cleared, for a second account), Place on canvas (adds an account node to a flow) and Delete. Add account or a platform's Add opens the form.

Deleting an account asks for a reason. Steps that showed the account on a canvas become ordinary steps and keep their text, so nothing is left pointing at a missing account. To stop using an account without deleting it, set its status to retired or skip: audit.py and the QC gate then refuse sends from it. See Parts, accounts and folders.

Folders

Shared folders grouped by kind

Shared folders and key files, defined once and attached to any step. Each row shows the path with three buttons: open it in the file manager, copy the path, open it in VS Code. "Used by" lists the flows whose steps use it. Edit changes the path for every step at once. Deleting a folder asks for a reason and removes it from every step that uses it; the folder on disk is never touched.

"Open in the file manager" works for any path that exists on this machine: an absolute path, a path that starts with ~ (your home folder), or a path relative to the skill folder (such as playbook/state/bank.tsv). pb.py check --paths reads folder paths the same way.

Parts

Parts library: reusable steps with how many steps use each

Reusable steps. Each card shows the part's kind, title, summary, details and how many steps use it, with Add to a flow, Edit and delete. Deleting a part asks for a reason; every step that followed it first gets a copy of its text, so nothing is left pointing at a missing part.

Parts are referenced, not copied. A step made from a part (From the parts library, Swap part, or Save as part) follows the part: its kind, title, summary, details and checklist are read from the part, so a rule is written once and edited in one place (Edit part in the step's details). Detach copies the text into the step and stops following the part. Swap part replaces a step with a part and keeps its connections.

History

History of posted content

Two tabs:

  • Posted content: the audit log. Filter by platform, project, status or text; entries are grouped by day. Open one for its full text, time, link, what it replied to, scheduled time, how it was verified, why it was deleted or removed, notes, media, every later update and its id.
  • Playbook changes: every change to a flow, account, folder or part, newest first: when, what kind of change, who made it (canvas for the canvas; for a pb.py write, the value of AGENT_PLAYBOOK_ACTOR, or agent when it isn't set), and why for any deletion. Each row has a Versions button.

History needs the local server; it is not available in a read-only copy.

Search

Press / and type at least two letters. Results cover node text in every flow, accounts and folders. Enter opens the first result; Esc clears the box.

Keyboard shortcuts

On a Mac, use Cmd where this table says Ctrl.

Keys Does
Drag the board, mouse wheel Move, zoom
F Fit the flow to the screen. On a wide flow the first press zooms to a readable size; press again to see all of it.
+ / - Zoom in, zoom out
/ Search
Esc Close a menu or dialog, leave a field, stop editing, clear the selection
Double-click Edit a node, or add one on empty board
Enter Edit the selected node
Ctrl+Enter Save the node form
Shift+drag, Shift+click Select a group, add to the selection
Ctrl+A Select every node
Ctrl+C / Ctrl+V Copy and paste nodes, across flows too
Ctrl+D Duplicate the selection
Delete or Backspace Delete the selection (asks for a reason)
Ctrl+Z Undo
Ctrl+Shift+Z or Ctrl+Y Redo

The node shortcuts work on a flow; / and Esc work everywhere. Menus take the arrow keys, Home and End, and Tab stays inside an open dialog until you close it.

Delete with a reason

Deleting a node, a connection, a flow, an account, a folder or a part opens a box that asks why. Type a reason or pick one of the common ones (Duplicate, Out of date, Wrong, Replaced by something better, No longer used). The reason goes into the change history next to what was removed. The server refuses a save that drops steps or connections without a reason; if that happens, the canvas asks for one before it saves. Undo puts back a deleted node, connection or flow. A deleted account, folder or part comes back through Versions (below).

Agents follow the same rule: pb.py delete always needs --reason, and pb.py put needs one when the new version drops steps or connections.

Versions and restore

Every save keeps the version it replaced, in playbook/history/<collection>/<id>/, up to 300 per document.

  • On a flow, the clock button lists its versions. Pick one and confirm to restore it. Restoring keeps the current version too, so you can always go back.
  • In History, Playbook changes, the Versions button does the same for any flow, account, folder or part, including one that was deleted: a delete always keeps the last version, and the file itself moves to playbook/store/.trash/.
  • From the command line: python playbook/pb.py versions flows round, then python playbook/pb.py restore flows round <version> --reason "why".

The history folder is local to the machine and ignored by git. Git is your long-term backup.

Two editors, no lost work

You and an agent can have the same flow open at once. Every save carries the revision it started from:

  • If the agent changed a flow while it was open on the canvas, your next save of that flow is refused. The canvas loads the newer version and says: "“Name” was changed outside this window. The newer version is loaded; your last change to it was not saved." Make the change again on the new version.
  • If you changed it while an agent was working on it, the agent's pb.py put (which saves against the revision the agent read) exits 1 with "not saved: flows/x changed since revision A; it is now B. Read it again and redo the change".

Nothing is overwritten silently, and every replaced version is in history.

Read-only export

To show the playbook to someone without the server:

python playbook/pb.py export

This writes playbook/store.json (ignored by git). Publish playbook/playbook.html and store.json in the same folder, for example on GitHub Pages. Opened without the local server, the page reads store.json and shows everything read-only, with "View only · install the skill to edit" in the status line. History is not included.

store.json contains every flow, account, folder and part. Don't publish it if your playbook is private.

Clone this wiki locally