Hacker

Adarsh Polsey

@adarshpolsey7

Joined Oct 2026Software Engineer at Inloops InnovationsIndia

Projects

  • Preflight: an experiment lifecycle agent for Flagsmith

    Flagsmith Experimentation HackathonNov 2026

    Flagsmith experiments fail quietly. A fresh ID on every request, an event named "Signup" when the metric counts "signup", or a variation without a key, and the dashboard still looks healthy. A field scan of the 20 public GitHub repos that already call Flagsmith's experiment SDK found 8 that pass every Preflight check, 12 that leave a wiring question static checks can't settle, and 1 that pins an SDK too old to send experiment events (counts only, no names). Preflight is an AI agent that takes a Flagsmith experiment from idea to production, with a human approval at every step that changes something. It's for developers and product teams running A/B tests with Flagsmith who want a coding agent to set experiments up without the silent wiring bugs. It runs an experiment through seven stages: design, preflight, approve, run, evaluate, ship and clean up. A Python CLI holds the gates. "preflight check" runs 13 setup and code checks (Python via ast, plus JS/TS), each with file:line and a one-line reason. "start" refuses while anything is red. "readout" names a winner only when the 95% credible interval excludes zero. "ship" ends the experiment and serves the winner through Flagsmith, with no redeploy. A Claude Code skill is the agent: it writes the plan, the fixes and the cleanup diff, and stops for a yes before every change. Every yes and no lands in an approvals log. In the recorded run on Flagsmith Cloud (simulated traffic), Preflight said "not callable yet" at 205 users while the dashboard already suggested rolling out at 77%. At 6,005 users it named the winner: +33.4%, interval +13.9% to +52.9%. Everything goes through the Flagsmith CLI and admin API, so no keys live in the repo.