Skip to content

Security and Privacy

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

Security and privacy

Agent Playbook is built for one person on one machine: you, your agent, and your own accounts. This page covers how the local canvas server is protected, what never goes into a playbook, what is safe to commit, how to keep your own playbook private, and how to use it responsibly.

To report a vulnerability, use GitHub's private vulnerability reporting on the repository (see SECURITY.md), not a public issue.

The canvas server

playbook/server.py is a small standard-library HTTP server. It is meant to be reachable only by your browser on your machine:

  • Local only. It binds to 127.0.0.1. Other machines on your network can't connect.
  • Host check. Every request must name the server itself in its Host header (127.0.0.1:<port> or localhost:<port>). This stops DNS-rebinding pages from reaching it through another name.
  • Per-run token. Every write and every "open folder" request needs a random token generated when the server starts and embedded in the page it serves. Another website open in the same browser can't read the token, so it can't change your playbook. Cross-site requests to the API are refused.
  • No framing. Responses carry X-Frame-Options: DENY and a Content-Security-Policy with frame-ancestors 'none', so another page can't embed the canvas and trick you into clicking.
  • Strict ids. Every document id is checked against one rule and must stay inside its collection folder, so a request can't read or write files elsewhere.
  • Open folder is limited. It only shows a local folder, or selects a file, in the system file manager. It reads the path the way folder records are read (~ is your home folder, a relative path is inside the skill folder), refuses network shares and paths that don't exist, and never runs anything: on macOS a folder that is an app bundle is revealed, not launched.
  • Bounded requests. Request bodies over 2 MB are refused, and a client that stalls in the middle of a request gets a 408 answer after 20 seconds, so it can't tie the server up. Every error, including malformed requests, is answered as JSON; server errors are also written to playbook/server.log.

The page loads its fonts from Google Fonts, so opening the canvas makes a request to fonts.googleapis.com and fonts.gstatic.com. Nothing from your playbook is sent with it. The engine and pb.py, qc.py, audit.py and run.py make no network requests at all. Some helper scripts call public APIs (Bluesky, X syndication, LinkedIn guest search); scripts/INDEX.json marks them with the network effect.

What never goes in a playbook

  • No secrets. The accounts registry holds handles, labels and how an account signs in ("the owner signs in"), never passwords, recovery codes, tokens or cookies. The canvas form doesn't ask for them.
  • No email addresses in accounts. pb.py check warns (email) when an account record contains one.
  • No secrets in the audit log or the QC lists. The log stores the full text of every post; the lists' about line says "Never put secrets or personal details here."

Your agent signs in to the platforms through your own browser session. The playbook never handles credentials.

What is in the repository, and what stays local

The repository's .gitignore keeps machine-local files out of git:

Ignored (local only) What it is
playbook/history/ Every replaced version, the change journal, and lock files
playbook/store/.trash/ Deleted documents
playbook/store.json The read-only export
playbook/state/runs/ Run checklists, with their notes
playbook/audit/qc.jsonl QC receipts, with the first 80 characters of every checked draft
playbook/server.log Server errors

Everything else in the skill folder is tracked by default, including your data once you add it:

Tracked Holds
playbook/store/ Your flows, accounts (handles), folders (paths on your machine) and parts
playbook/audit/posts.jsonl The full text, links and times of everything you posted
playbook/state/bank.tsv, groups.tsv, recipes.json Your post bank, Facebook groups and recipes
playbook/qc/lists.json, filters.json Your app names, competitors, never-say claims, the people you ignore

Because the version history is local and ignored, git is your long-term backup of the playbook. Commit after meaningful changes.

Keeping your playbook private

The public repository holds the engine and the demo. Once you add your own accounts, posts and lists, keep that copy private. Two ways:

A private repository (simplest). Create a new, empty private repository on GitHub, then push a clone of agent-playbook to it. Don't use GitHub's Fork button for this: a fork of a public repository stays public. To pull engine updates later, add the public repository as a second remote:

git clone https://github.com/RandyNorthrup/agent-playbook.git my-playbook
cd my-playbook
git remote rename origin upstream
git remote add origin https://github.com/<you>/my-playbook.git
git push -u origin main
# later: git pull upstream main

Your data outside git. If you want to keep using a public clone, keep your data out of commits. The data files are already tracked, so adding them to .gitignore isn't enough; tell git to stop watching your local changes:

git update-index --skip-worktree agent-playbook/playbook/audit/posts.jsonl agent-playbook/playbook/qc/lists.json

New files you create in playbook/store/ are untracked; list them in .git/info/exclude so they are never added by accident. This approach is easy to get wrong; the private repository is safer.

Also take care with:

  • The read-only export. pb.py export writes every flow, account, folder and part into store.json. Publish it only if all of that may be public.
  • Screenshots and bug reports. The canvas shows handles, folder paths and post text. Check before you share.
  • CI logs. pb.py check prints file paths and messages, not post text, but a failing test on your own data can print more.

Responsible use

The demo flows and QC filters are written for one owner running their own accounts with a human in the loop. Use the tool the same way:

  • Your own accounts only. Register and post from accounts you own or are authorised to run. The registry check in audit.py add and the account-registry filter refuse accounts that aren't in it, and accounts you've marked retired or skip.
  • Follow each platform's rules on automation. Many platforms have rules for automated or assisted accounts, including labels for automated accounts, rate limits and per-community self-promotion rules. The demo's ground-rules flow says to follow them, its reddit flow says to read each subreddit's rules first, and its pacing flow says to stop and tell the owner after a removal, a warning or a rate-limit page.
  • Never deny being an AI. The ground-rules flow says never deny being an AI and never claim to be human, and the ai-denial filter blocks drafts like "I'm not a bot" or "real human here". If someone asks who runs the account, answer honestly.
  • No vote manipulation, no sockpuppets. The ground-rules rule "One account, one voice": accounts never like, vote on or repost each other to lift a post, and there are no second accounts to agree with the first.
  • Say when it's your app. When you recommend your own project, say it is yours (the demo's Reddit flow writes "(I work on Acme Notes)").
  • Facts from the source. Every claim about your app comes from a README, CHANGELOG or release read that session; the facts-read filter asks for the evidence.
  • No free ads, no spam. The ad-copy, brand-launch and product-news filters keep other companies' launches and pricing out; caps, spacing, author-cap, already-replied and near-duplicate keep volume and repetition down.
  • A human approves anything new. A first post on a new platform, a new account, any purchase or contract waits for the owner, and drafts the owner hasn't seen stay drafts when a run is unattended.

Don't use this to spam, astroturf, evade platform enforcement, or run accounts that aren't yours. The filters catch known mistakes; they don't make a bad use acceptable.

Clone this wiki locally