Skip to content

Quick Start

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

Quick start

This page walks through the demo the way an agent uses it: read the flows, open a run checklist, check a draft, log the send, close the run. It takes about ten minutes. Run the commands from the skill folder (the inner agent-playbook/ folder of the clone).

1. Open the canvas

python playbook/launch.pyw

This starts a small local server on http://127.0.0.1:47321 (no console window) and opens the page in your browser. If the port is taken: python playbook/launch.pyw --port 47400.

Overview page

Things to try:

  • Home lists every flow by group, with counts. Open Ground rules: the rules every session starts with.
  • Open Change the playbook. Click a node to read it in the details panel; follow a Go to flow node with its Open button. Press F to fit the board, / to search.
  • Look at Accounts, Folders, Parts and History in the left rail.

Don't edit yet: every change on the canvas saves straight into the playbook files. The canvas covers editing.

2. Read the demo from the terminal

These commands only read.

python playbook/pb.py list
python playbook/pb.py show ground-rules
python playbook/pb.py show qc
python playbook/pb.py check --strict
python playbook/pb.py catalog
python playbook/pb.py catalog reply

pb.py show prints a flow as an outline. Each line starts with the node's kind: [START], [STEP], [DECIDE], [QC], [RULE], [TOOL], [GOTCHA], [RESULT], [GOTO], [ACCOUNT]. Rules, tools and gotchas attached to a step print under it with a +. A branch prints its label in brackets, and a [GOTO] line ends in the id of the flow it opens:

# QC gate [Rules & QC] id=qc rev=34560e1bcf73bfe8
Every draft passes qc.py before it is sent: fix a BLOCK, answer an ASK with evidence, report a WARN.

[START] Draft ready | The exact words, in a file
  Write the draft to a file so the receipt and the log match it word for word.
[QC] QC the draft | qc.py check before every send
  ...
  + [TOOL] Which filters apply | qc.py filters and explain
...
[DECIDE] What did it say? | One verdict per filter
  (BLOCK) [STEP] Fix and check again | Never argue with a BLOCK
  -> continue at: QC the draft (above)

pb.py catalog reply shows the recipe for a reply run: its checklist, the flows it reads, the parts and scripts they use, and the QC filters that apply to its sends.

3. Make a throwaway copy

The next steps write files: a run checklist in playbook/state/runs/, QC receipts in playbook/audit/qc.jsonl and entries in the audit log playbook/audit/posts.jsonl. Do them on a copy so your clone stays clean. Everything in the skill folder finds its files relative to itself, so a copied folder is a complete, separate playbook.

bash or zsh:

cp -R "$(pwd)" /tmp/pb-try
cd /tmp/pb-try

PowerShell:

Copy-Item -Recurse $PWD.Path "$env:TEMP\pb-try"
Set-Location "$env:TEMP\pb-try"

4. Open a run checklist

python scripts/run.py recipes
python scripts/run.py start --recipe reply
reply run, started 2026-11-18T18:58:56-08:00
[ ] start            Read flows ground-rules and pacing; run audit.py today against the caps  (flow ground-rules)
[ ] x                X @acmenotes_demo: every reply from the last 2 days answered or skipped with a reason  (flow x-reply)
[ ] bluesky          Bluesky: bsky_open.py acmenotes.example; every thread handled  (flow bluesky)
[ ] reddit           Reddit: open questions in the account's subs answered where the app fits  (flow reddit)
[ ] log              Every reply logged and checked live  (flow audit)
[ ] report           Report: counts per platform, skips with reasons, QC warnings  (part part-verify-live)

0 done, 0 skipped, 6 todo

Each step names the flow or part that does it. Close the first one with evidence:

python playbook/audit.py today
python scripts/run.py done start --note "read ground-rules and pacing; audit.py today: nothing logged yet"

python scripts/run.py status shows the checklist again at any point.

5. Check a draft

Pretend someone on X asked a question and you drafted a reply with a link in it:

python playbook/qc.py check --platform X --account @acmenotes_demo --action reply --target https://x.com/a_reader/status/3001 --text "Here is the guide: https://example.com/guide"
BLOCK  links-in-reply       1 link(s); the most is 0. organic replies carry no links unless the thread asks; if it did, --ok links-in-reply="what they asked"
BLOCKED (qc-20261118T185857-842292): fix the draft and check again; audit.py add refuses this text unless --override "why"

Exit code 1. Replies carry no links unless the thread asked for one. This filter is "waivable": if they did ask, say so with --ok:

python playbook/qc.py check --platform X --account @acmenotes_demo --action reply --target https://x.com/a_reader/status/3001 --text "Here is the guide: https://example.com/guide" --ok "links-in-reply=they asked for the guide link"
OK     links-in-reply       ...  waived: they asked for the guide link
PASS receipt qc-20261118T185857-f49503: send it, then audit.py add with the same text

Now a reply that names the demo app. Pass --project so the app's never-say list and promo rules apply:

python playbook/qc.py check --platform X --account @acmenotes_demo --action reply --target https://x.com/a_reader/status/3001 --project acme-notes --text "Acme Notes reads tags from the front matter, so any editor can see them."
ASK    facts-read           it is about the owner's app: which README, CHANGELOG or release did you read this session for every claim? (URL or commit)  (answer: --ok facts-read="...")
BLOCKED (qc-20261118T185857-0a4be7): fix the draft and check again; audit.py add refuses this text unless --override "why"

An ASK is a judgment a script can't make. Answer it with the evidence and check again:

python playbook/qc.py check --platform X --account @acmenotes_demo --action reply --target https://x.com/a_reader/status/3001 --project acme-notes --text "Acme Notes reads tags from the front matter, so any editor can see them." --ok "facts-read=README section Tags, read this session"
OK     facts-read           ...  answered: README section Tags, read this session
PASS receipt qc-20261118T185857-af047b: send it, then audit.py add with the same text

Every check writes a receipt with its own id, whatever the verdict. In real runs, write the draft to a file and use --text-file so the words you check, send and log are exactly the same.

6. Send, then log it

Right before a send, check the spacing between sends:

python playbook/audit.py gap --platform X --account @acmenotes_demo --action reply
READY (105.2 h since the last reply, 2026-11-14-x-1abd4d1e)

WAIT (exit 1) means wait that long. This is where the agent would send the reply in the browser. Then log it, with the same words that passed QC:

python playbook/audit.py add --platform X --account @acmenotes_demo --action reply --project acme-notes --url https://x.com/acmenotes_demo/status/9001 --target https://x.com/a_reader/status/3001 --no-promo --text "Acme Notes reads tags from the front matter, so any editor can see them."

It prints the new entry's id, for example 2026-11-18-x-7570773f. After checking the live page, record that:

python playbook/audit.py update 2026-11-18-x-7570773f --status live --verified "opened the reply link; the text matches"

Use the id your add printed. Things add refuses, so you can see the gate work:

  • text that has no passing receipt for the same platform and account in the last 72 hours (try changing one word);
  • an account the registry doesn't know (--account @someone), or one it marks retired or skip;
  • the same link, or the same text within 24 hours, logged twice.

7. Close the run

python scripts/run.py done x --note "1 reply logged: 2026-11-18-x-7570773f"
python scripts/run.py skip bluesky --reason "owner: next run"
python scripts/run.py skip reddit --reason "demo account: nothing to answer"
python scripts/run.py done log --note "verified 2026-11-18-x-7570773f live"
python scripts/run.py done report --note "report sent to the owner"
python scripts/run.py finish
finished reply run (20261118-185856-reply.json)

Skipped (put these in the report):
- bluesky: owner: next run (owner's call)
- reddit: demo account: nothing to answer (agent's call: tell the owner)

No pace flags.

No QC overrides.

No QC warnings.

finish refuses (exit 1) while any step is still todo. A skip whose reason starts with owner counts as your call; any other skip is the agent's call, and the report must say so. Because the Bluesky step was skipped with owner: next run, the next reply run lists it first:

python scripts/run.py start --recipe reply
python scripts/run.py abandon --reason "trying the tool"

8. See it on the canvas

python playbook/audit.py recent --platform X --account @acmenotes_demo
python playbook/audit.py show 7570773f

To see the copy on the canvas, start it on another port. A canvas already running on 47321 belongs to your clone, and launch.pyw would just reopen it:

python playbook/launch.pyw --port 47322

Open History: the reply is under Posted content with its text, link, status and the update.

9. Clean up

Stop the copy's server (see Troubleshooting), then delete the copy: rm -rf /tmp/pb-try, or Remove-Item -Recurse -Force "$env:TEMP\pb-try".

Where next

Clone this wiki locally