Hacker
Shree F
@05shree
Projects
Flag Buddy: an AI assistant for the full Flagsmith A/B test lifecycle
Flagsmith Experimentation HackathonNov 2026
Flag Buddy is a command-line assistant that takes a Python developer through the whole Flagsmith A/B test lifecycle, and catches the silent mistakes along the way. The problem: running my first Flagsmith experiment by hand took two evenings, and I hit five silent traps. A flag-name typo crashed the app. max_buffer_items=1 dropped exposures, so the click rate showed 0%. Events were lost because they were never flushed. And after I ended an experiment, a hidden "experiment-N-rollout" segment override kept serving the old value to users. That override doesn't appear in the dashboard. Four commands: - doctor: finds these problems in your code and your Flagsmith setup (plain Python, no AI) - experiment: the AI adds the SDK code (visitor id, get_experiment_flag, track_event) to your file, then Flag Buddy creates the flag, variation, metric and experiment through the Admin API and starts it - results: turns win probability, lift and credible intervals into one plain-English verdict - cleanup: the AI removes the losing version and the test code, then Flag Buddy deletes the flag. It refuses to delete the flag if the code still uses it. Every code change is shown as a red/green diff and only happens after the developer types "y". Flagsmith is only changed after a second "y". Who would use it: developers and small teams who want A/B tests without the setup work, the confusing statistics or the leftover flag debt.