Run an A/B test with an AI pair

Data · BuildChecked 2026-11-22

Run more experiments with less setup.

View 5 steps
On this page

Independent review. Unpaid; no partnership with the tools on this page. Based on public documentation and research. Trademarks identify their owners’ products. Disclosure.

Steps

Confirmed steps have vendor documentation. The full workflow still needs testing.

  1. Your AI platform

    Proposes a hypothesis and variants

    AI platformConfirmed
  2. PostHog

    Creates the feature flag or experiment

    PostHog’s MCP tools include create-feature-flag, experiment-create and experiment-end.

    MCPConfirmedSource ↗
  3. Your coding agent

    Implements the variant in code

    AI platformConfirmed
  4. You

    Review the code and approve the rollout

    Human stepConfirmed
  5. PostHog

    Reports results

    MCPConfirmedSource ↗

Human approval

You approve the test launch and final rollout separately, and assess the result against the planned decision rule.

Watch out for

Keep the human approval step: You approve the test launch and final rollout separately, and assess the result against the planned decision rule.

Compare options

For reviewing experiment results against a hypothesis.

Check exposure and stopping rules; analysis does not operate PostHog experiments. Choose one for analysis of a reviewed data extract; switching may need setup changes.

Unpaid picks. No partnership with Julius AI, ChatGPT, OpenAI Codex.

  1. Primary pick

    Julius AI

    Why it fits: A data-analysis workspace keeps the supplied table and business question together.

    Tradeoff: Wrong joins, missing rows and inconsistent units can produce convincing but incorrect charts.

    When to choose it

    Choose it for interactive exploration of a cleaned extract.

    Review and sources · 2026-10-18 · Product reference ↗

  2. Second option

    ChatGPT

    Why it fits: File analysis can join calculation review with a narrative explanation.

    Tradeoff: An answer is not a reconciled report; verify calculations and upload limits.

    When to choose it

    Prefer it when the reviewer needs both analysis and an explanation for colleagues.

    Review and sources · 2026-10-18 · Product reference ↗

  3. Third option

    OpenAI Codex

    Used by Ion — Used by Ion for its own work. This is separate from recommendation rank and is not a claim that every feature was tested.

    Why it fits: A coding workspace keeps calculations and validation checks in reviewable files.

    Tradeoff: Someone must read, run and maintain the code and protect sensitive files.

    When to choose it

    Prefer it when repeatability and code review matter more than conversational convenience.

    Review and sources · 2026-11-23 · Product reference ↗

How this shortlist was chosen

Rank reflects editorial judgment for this role. Used by Ion records personal use separately. Vendors did not pay for, request or approve these positions.

Inspectable calculations come before narrative convenience.

Setup and portability: Record export date, filters and units; save calculations with the result. The source ledger still needs reconciliation.

Documentation reviewed 2026-10-21. Check current plan terms and test the pairing for your setup.

See our review method, MCP connections and portability and switching costs.

Starter prompt

Goal: Run more experiments with less setup. Tools involved: PostHog. I will review the code and approve the rollout. Work step by step, show me each draft or proposed change, and wait for my approval before anything is sent, published, signed, filed or changed in a live system.

Review and adapt the prompt before use.

Tools in this workflow

Connections · MCP

ToolRoleOfficial site
PostHogMCP posthog.com ↗

AI platform fit

PlatformStatusWhy
Claude (incl. Claude Code) To verify PostHog: MCP pairing needs route-specific evidence; a named plugin or CLI does not establish it; PostHog: MCP pairing needs route-specific evidence; a named plugin or CLI does not establish it
OpenAI Codex To verify PostHog: MCP pairing needs route-specific evidence; a named plugin or CLI does not establish it; PostHog: MCP pairing needs route-specific evidence; a named plugin or CLI does not establish it
Google Antigravity To verify PostHog: MCP pairing needs route-specific evidence; a named plugin or CLI does not establish it; PostHog: MCP pairing needs route-specific evidence; a named plugin or CLI does not establish it
ChatGPT To verify PostHog: MCP pairing needs route-specific evidence; a named plugin or CLI does not establish it; PostHog: MCP pairing needs route-specific evidence; a named plugin or CLI does not establish it
Gemini To verify PostHog: MCP pairing needs route-specific evidence; a named plugin or CLI does not establish it; PostHog: MCP pairing needs route-specific evidence; a named plugin or CLI does not establish it
Perplexity To verify PostHog: MCP pairing needs route-specific evidence; a named plugin or CLI does not establish it; PostHog: MCP pairing needs route-specific evidence; a named plugin or CLI does not establish it
What the platform statuses mean

Confirmed means documented access meets the requirements. Inferred means the pairing is plausible and needs a test. To verify marks an unresolved step or connection. Check authentication, permissions and supported actions for each route.

What we checked

PostHog’s MCP tools reference lists feature-flag tools (create, enable, disable) and experiment tools (create, create from a prompt, calculate running time, end). So the AI can set up the flag and experiment, and read results when the test ends. Your coding agent implements the variant behind the flag. You review the code, approve the rollout, and call the result.

  • Experiments over MCP (checked 2026-10-18). PostHog’s experiments-over-MCP page adds that an agent can estimate sample size and running time before anything exists, launch, pause and end experiments, read results over time and ship a winning variant. Shipping a variant changes what users see, so a person approves it.

Set it up

  1. Connect PostHog’s MCP server in the AI client you use for planning, and in your coding agent.
  2. Define the hypothesis, primary metric, minimum meaningful effect, sample-size target and decision rule. Use the running-time estimate for planning, not as a guaranteed completion date.
  3. Create the flag and experiment, implement the variant, and verify assignment and event collection. Approve the test launch before exposing users.
  4. Examine uncertainty and guardrail metrics using the planned analysis. An early numerical lead is not a proven winner. Preserve an inconclusive outcome when warranted; approve any final rollout separately.

PostHog’s MCP server is free to connect; AI-powered tools may bill as PostHog AI spend.

Sources

No affiliate links on this page. No paid placements in workflows. How IonBin makes money.