Repository navigation
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.
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
Hostheader (127.0.0.1:<port>orlocalhost:<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: DENYand a Content-Security-Policy withframe-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.
- 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 checkwarns (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'
aboutline 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.
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.
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 mainYour 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.jsonNew 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 exportwrites every flow, account, folder and part intostore.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 checkprints file paths and messages, not post text, but a failing test on your own data can print more.
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 addand theaccount-registryfilter refuse accounts that aren't in it, and accounts you've markedretiredorskip. -
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-rulesflow says to follow them, itsredditflow says to read each subreddit's rules first, and itspacingflow says to stop and tell the owner after a removal, a warning or a rate-limit page. -
Never deny being an AI. The
ground-rulesflow says never deny being an AI and never claim to be human, and theai-denialfilter 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-rulesrule "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-readfilter asks for the evidence. -
No free ads, no spam. The
ad-copy,brand-launchandproduct-newsfilters keep other companies' launches and pricing out; caps, spacing,author-cap,already-repliedandnear-duplicatekeep 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.
Agent Playbook is released under the MIT licence. Source: github.com/RandyNorthrup/agent-playbook