Hacker
Om Kandari
@user67
Projects
FlagPilot Lab {A real Flagsmith A/B experiment, plus an AI copilot for planning and auditing flags.}
Flagsmith Experimentation HackathonNov 2026
I built FlagPilot Lab, a small app that runs a real A/B test with Flagsmith Experimentation and adds an AI copilot around it. Product teams and developers who already use feature flags would use it, especially small teams without a data analyst. How it works: A Flagsmith multivariate flag holds the two button versions, and an experiment splits visitors 50/50. For each visitor, the app calls getExperimentFlag, which serves their version and records the exposure. The same visitor always gets the same version. When a visitor clicks, the app calls trackEvent("cta_click"), which feeds the experiment’s metric. Flagsmith’s Bayesian results show the chance each version wins. The app shows the same kind of figure locally and has an “Explain with AI” button that describes the result and suggests a next step. If a version wins, you set its value on the same flag to roll it out to everyone. The rollout planner turns a feature description into a staged rollout with segments, kill-switch triggers and Flagsmith SDK code. The flag doctor scores a pasted flag list and marks each flag keep, review or remove. The traffic in my demo is simulated, as the track allows, so the results show that the pipeline works and say nothing about real visitor behaviour. Teams often change button text, headlines or flows based on opinion, because setting up a fair test is a lot of work. My app tests one thing, whether the button text “Get started in 60 seconds” gets more clicks than “Start free trial”, and shows the result in plain language so the team can decide what to ship. It also tackles two related problems. Planning a safe rollout takes time, and old flags pile up because nobody knows which are safe to remove. A rollout planner and a flag doctor use AI to help with both.