~/docs
Documentation
Everything here is the repository's own Markdown, published as it is on GitHub: setup, the 20 diagnostics, the decision rule, Watch and health, the copilot, the CLI, GitOps, the MCP server and the Agent Skill.
I want to try it
- 1Install the extension or run npx petri-check
- 2Start Flagsmith with experimentation
- 3Run the demo shop and an experiment
I run Flagsmith myself
- 1Docker Compose with experimentation on
- 2Zero-click bootstrap
- 3Events to your own server
I want it in CI or an agent
- 1petri-check in a pull request
- 2The read-only MCP server
- 3The Agent Skill
Get started
Quick start
From nothing to a running experiment with results next to the code, on the demo shop.
Configuration
Keys, flagsmith.json and flagsmith.env, settings and commands.
Self-hosting Flagsmith for experiments
Run Flagsmith with experimentation, store events, and point the SDK's events at your server.
Use Petri
Diagnostics
The 20 ways an experiment silently loses or skews its data, and the fix for each.
The decision rule
One deterministic rule: when to ship, keep running, keep control or investigate.
Experiment Copilot
The Experiment Copilot: idea to running experiment to cleanup, with every change approved.
Health scorecard
The health scorecard: the diagnostics mature platforms run, on Flagsmith data, plus novelty.
Petri Watch: catch a running experiment's measurement breaking
Petri Watch: alerts when a running experiment's measurement breaks, and blames the commit.
Automate
CLI and CI
petri-check in the terminal and in CI: check, lock, watch, rehearse, report and apply, output formats and the GitHub Action.
MCP server
An MCP server that changes nothing: any coding agent can run Petri's checks, read verdicts and Watch alerts, and draft plan changes.
Agent Skill
An Agent Skill that does the whole job through the Flagsmith CLI, behind approval gates.
Experiments as pull requests
Experiments as pull requests: petri.plan.json, a dry run on the PR, apply on merge.
Reference
The Petri Coffee experiment
The experiment we ran with Petri: pre-registration, traffic, results and the ground-truth check.
Measured: does Petri help?
Measured: an agent with Petri fixes the same 6 bugs with half the tokens and turns, and peeking vs Petri's rule in 2,000 A/A tests.
FAQ and troubleshooting
Troubleshooting and common questions.
Changelog
Every release and what changed.
No docs match. Try the FAQ.