Hacker

YASHJAIN

@yashjain

Joined Aug 2026Devops EngineerIndia

Projects

  • FlagJanitor: finish every Flagsmith experiment (with PatchPath demo)

    Flagsmith Experimentation HackathonNov 2026

    When an A/B test ends, someone still has to roll out the winner, delete the code for the losing versions and remove the flag. That step often never happens, so dead code and stale flags pile up (Knight Capital lost $440M in 45 minutes when an old flag woke up dead code). Teams also decide too early, or on a broken traffic split, and ship false winners. FlagJanitor is a CLI agent that finishes the job: - audit: lists every experiment and what it left behind (flag still in code, experiment split still live) - check: decides WAIT / STOP / SHIP using Flagsmith's results plus safety checks: sample size, conversions, a sample-ratio-mismatch test against the experiment's real split, minimum run time, chance to win, and guardrail metrics - ship: shows a diff of every file and the Flagsmith plan, asks "Apply this plan? [y/N]", then rolls the winner out, completes the experiment with a rollout decision, removes the losing code and commits it on a new git branch ready for a pull request - finish: archives the flag, and refuses while any code still reads it Code is cleaned with simple markers (deterministic) or with Claude for code without markers. Who uses it: any team running Flagsmith experiments that wants winners shipped and flag debt gone, with a human reviewing every change. PatchPath is the demo app: it helps developers make their first open-source contribution, and tests three onboardings with Flagsmith. In the demo, FlagJanitor said WAIT at 245 developers, SHIP at 695, rolled out the winner and removed 360 lines of experiment code across 8 files.