Hacker
Zhi Li
@muimuiyoho
Elsewhere
Projects
Experiment Steward
Flagsmith Experimentation HackathonNov 2026
Experiment Steward is a small command-line tool that sits between an AI coding agent and Flagsmith, so the agent can draft an A/B experiment but cannot change feature flags without a human approval. The problem: an AI coding agent can set up an A/B test in seconds, but it should not be the one deciding what changes in your feature flags. Setting up one Flagsmith experiment by hand means creating a multivariate flag, adding each variation with a key, creating a metric whose event name matches the code exactly, creating the experiment with the right rollout, starting it at the right moment, refreshing results (at most every 5 minutes), and reading win probability, credible interval, minimum sample and sample-ratio checks correctly. Each step has a known way to go quietly wrong (unkeyed variations record no exposures; a typo in the event name is silently ignored; a boolean flag converted later invalidates the data; "93% chance to win" is not a win). Who would use it: a developer or team using AI coding agents who want Flagsmith experiments set up quickly, with a human still approving every write. How it works: the agent drafts an experiment plan (flag, keyed variations, metric, split, hypothesis). A human approves each step that changes Flagsmith, on a card that lists the exact API writes it unlocks. There are three separate approvals: create, start, and ship. Flagsmith does the work: native multivariate flag, metric and experiment, SDK exposure and conversion events, and Flagsmith's own Bayesian analysis. Steward explains the result honestly and will not let anyone "ship" a variation the data does not support without writing down why. Workflow: plan → APPROVE 1 → apply (creates the flag, keyed variations, metric and an experiment that is not started) → APPROVE 2 → start → traffic → results → APPROVE 3 → ship (ends the experiment and rolls out the decision). Approvals need an interactive terminal and a 6-character code printed on the card, so agent shell tools cannot approve on the human's behalf. Every write re-checks the approval state immediately before calling Flagsmith.