Skip to main content
ToolPotion
AI Advisor
Submit a Tool (Free)

Petri

AI AppsAI Code Review & Testing#96Free · VS Code, VSCodium, Windsurf, CLI, GitHub Actions, Codespaces

Petri is a VS Code extension, copilot, and CLI for Flagsmith experiments, designed to catch wiring bugs that prevent data collection. It provides diagnostics as you type, displays experiment results, and automates the decision-making process with pre-registered rules. Petri also handles shipping winning variants and cleaning up losing code, ensuring every change is approved by the user.

Visit Website
Share
Petri screenshot
Petri screenshot

Petri is a comprehensive toolset for running Flagsmith experiments directly within your development environment, including a VS Code extension, a copilot, and a command-line interface (CLI). Its primary purpose is to streamline the entire experiment lifecycle, from setup and monitoring to decision-making and cleanup, while preventing common data collection issues.

Read More

The tool proactively identifies and flags 20 different wiring bugs that can cause experiments to silently fail or skew data, such as incorrect event routing or misnamed events. These diagnostics appear in real-time as you type, helping developers fix issues before they impact live experiments. Petri also enhances visibility by displaying key metrics like lift and chance to win directly above the flag read in your code, alongside a detailed results panel with 95% confidence intervals.

Petri automates the decision-making process using a single, deterministic rule that ensures consistency between the UI and the copilot. This rule dictates when to ship a variant (e.g., at ≥ 95% confidence, with no guardrail issues or sample-ratio mismatches). Once a winner is decided, Petri can automatically ship the variant, manage flag states, and even delete the losing code path, all with explicit user approval for every change.

Designed for experiments that run for days, Petri includes features like "Treatment lock" to fingerprint code serving each arm, preventing mid-run changes, and "Petri Watch" which monitors hourly timelines for anomalies like drifting splits or conversion drops, linking them to specific commits. It also offers a "Health scorecard" for experiment quality and "Recount before launch" to verify data collection accuracy. Petri supports both self-hosted and Flagsmith Cloud instances and integrates seamlessly with various development workflows, including GitHub Actions and Codespaces.

  • CategoryAI Code Review & Testing
  • Pricing ModelFree
  • DeploymentSelf-hosted, Cloud
  • PlatformsVS Code, VSCodium, Windsurf, CLI, GitHub Actions, Codespaces

  • 20 real-time experiment diagnostics

  • CodeLens for lift and chance to win

  • Deterministic decision rule for shipping variants

  • Automated shipping of winning variants

  • Automated deletion of losing code paths

  • User approval for all changes

  • Treatment lock for experiment integrity

  • Petri Watch for hourly timeline monitoring

  • Health scorecard for experiment quality

  • Recount before launch for data verification

  • Experiment management via pull requests

  • Integration with VS Code, VSCodium, Windsurf

  • CLI for headless diagnostics

  • Support for self-hosted and Flagsmith Cloud

  • Audit trail of all Flagsmith writes and code changes

  1. Install: Search for Petri in VS Code Extensions or use npx petri-check for CLI.

  2. Connect: Link Petri to your Flagsmith instance, self-hosted or Cloud, via CLI or bootstrap.

  3. Develop: Write experiment code; Petri will flag wiring bugs and suggest fixes as you type.

  4. Monitor: View CodeLens for live experiment metrics and use the results panel for detailed insights.

  5. Decide: Petri's rule engine will determine when to ship a winner based on pre-registered criteria.

  6. Approve: Review and approve all proposed changes to flags, experiments, or code before they are applied.

  7. Ship: Petri automates shipping the winning variant and cleaning up losing code paths after approval.

  • A/B/n Experimentation
  • Experiment Bug Prevention
  • Real-time Experiment Monitoring
  • Automated Experiment Decisions
  • Code Cleanup and Management
  • Ensuring Data Accuracy
  • Experiment Integrity
  • Developer Workflow Integration

Petri Reviews

Loading...

Popular AI Tools Like Petri

Kane CLI

AI Apps

Kane CLI is a command-line tool for AI browser automation. Describe a test in natural language and it drives real Chrome from your terminal, returning pass or fail with…

AI Code Review & Testing

Ranked #55 in AI Code Review & Testing

View Tool

AI Apps

Command-line tool for AI browser automation. Describe a test in natural language and it drives real Chrome from your terminal, returning pass or fail with…Kane CLI is a command-line tool for AI browser automation. Describe a test in natural language and it drives real Chrome from your terminal, returning pass or fail with…

AI Code Review & Testing
Ranked #55 in AI Code Review & Testing

SlopCop

AI Apps

SlopCop provides static analysis for coding agents, integrating deep checks directly into the development loop. It identifies problems on every edit, tracing findings to their…

AI Code Review & Testing
View Tool

AI Apps

Provides static analysis for coding agents, integrating deep checks directly into the development loop. It identifies problems on every edit, tracing findings to their…SlopCop provides static analysis for coding agents, integrating deep checks directly into the development loop. It identifies problems on every edit, tracing findings to their…

AI Code Review & Testing
See the Top 250 AI Apps

LineageLens is an open-source tool for tracking AI-generated code. It identifies which AI tools wrote specific lines, assesses risk levels, and provides a governance dashboard.…

AI Code Review & Testing

Ranked #138 in Compliance & Risk Management

View Tool

Open-source tool for tracking AI-generated code. It identifies which AI tools wrote specific lines, assesses risk levels, and provides a governance dashboard.…LineageLens is an open-source tool for tracking AI-generated code. It identifies which AI tools wrote specific lines, assesses risk levels, and provides a governance dashboard.…

AI Code Review & Testing
Ranked #138 in Compliance & Risk Management

Sentry Seer is an AI debugger that uses Sentry context to identify breaking changes, root cause issues in production, and fix overlooked problems. It integrates seamlessly into…

AI Code Review & Testing
View Tool

AI debugger that uses Sentry context to identify breaking changes, root cause issues in production, and fix overlooked problems. It integrates seamlessly into…Sentry Seer is an AI debugger that uses Sentry context to identify breaking changes, root cause issues in production, and fix overlooked problems. It integrates seamlessly into…

AI Code Review & Testing
See the Top 250 AI Apps

Perch

AI Apps

Perch is an open-source semantic linter that uses SystemOne decision models to review pull requests for bugs, security issues, and custom rules. It offers a cost-effective…

AI Code Review & Testing

Ranked #201 in AI Code Review & Testing

View Tool

AI Apps

Open-source semantic linter that uses SystemOne decision models to review pull requests for bugs, security issues, and custom rules. It offers a cost-effective…Perch is an open-source semantic linter that uses SystemOne decision models to review pull requests for bugs, security issues, and custom rules. It offers a cost-effective…

AI Code Review & Testing
Ranked #201 in AI Code Review & Testing

Ito

AI Apps

Ito provides runtime code review for pull requests, automating QA testing by building and running your application in an isolated sandbox. It tests impacted user flows, detects…

AI Code Review & Testing

Ranked #71 in AI Code Review & Testing

View Tool

AI Apps

Provides runtime code review for pull requests, automating QA testing by building and running your application in an isolated sandbox. It tests impacted user flows, detects…Ito provides runtime code review for pull requests, automating QA testing by building and running your application in an isolated sandbox. It tests impacted user flows, detects…

AI Code Review & Testing
Ranked #71 in AI Code Review & Testing

Crev is a command-line interface tool that leverages AI to provide code reviews directly within your terminal. It helps improve code quality, identify bugs early, and enhance…

AI Code Review & Testing

Ranked #223 in AI Code Review & Testing

View Tool

Command-line interface tool that leverages AI to provide code reviews directly within your terminal. It helps improve code quality, identify bugs early, and enhance…Crev is a command-line interface tool that leverages AI to provide code reviews directly within your terminal. It helps improve code quality, identify bugs early, and enhance…

AI Code Review & Testing
Ranked #223 in AI Code Review & Testing

Checksum automates the generation, execution, and maintenance of end-to-end tests, enabling teams to ship code confidently. With 70% of failures resolving autonomously, it reduces…

AI Code Review & Testing

Ranked #48 in AI Code Review & Testing

View Tool

Automates the generation, execution, and maintenance of end-to-end tests, enabling teams to ship code confidently. With 70% of failures resolving autonomously, it reduces…Checksum automates the generation, execution, and maintenance of end-to-end tests, enabling teams to ship code confidently. With 70% of failures resolving autonomously, it reduces…

AI Code Review & Testing
Ranked #48 in AI Code Review & Testing
1 of 8