Hacker
Iftikar Alam
@iftikar
Projects
FlagMatrix: cross-flag testing for Flagsmith, with an AI agent that asks first
Flagsmith Experimentation HackathonNov 2026
FlagMatrix is a cross-flag testing tool for Flagsmith, with an AI agent that proposes fixes and waits for a human to approve them. The problem: every feature flag gets tested on its own, but users get combinations. Six flags with two or three values each already make 144 combinations per screen size, and nobody tests those. That's where real bugs hide. One team ships a sticky "Pay" bar to mobile, another A/B tests a tall promo banner, and on a phone the banner now covers the Pay button for half of mobile users. Each flag passes alone; together they break checkout. Who would use it: teams that ship behind Flagsmith flags (developers, QA, release managers), before a rollout or in CI on every pull request. How it works: 1. Point it at your app's URL. FlagMatrix reads the app's flags from the Flagsmith SDK request, including multivariate variants via the Management API. 2. It runs the user journey (for example: add to cart, checkout, pay) in a real browser on desktop and mobile. First with today's flags, then each flag value alone, then a pairwise set that covers every pair of flag values in 9 runs instead of 144. Flag values are forced per run; analytics events are blocked, so 0 test events reach Flagsmith. 3. When a run fails, it puts flags back one at a time until only the guilty pair is left, and confirms it twice. The Studio shows an interaction matrix of every flag-value pair, screenshots proving "A alone passes + B alone passes = together it breaks", and a before/after view. 4. It asks live Flagsmith who is affected right now: in the demo, 12 of 20 sample mobile users get the broken pair. 5. An AI agent (Claude Sonnet 5.5) investigates. It reads the flag setup through the Flagsmith MCP server (read-only), re-runs the app with a candidate fix, and proposes one change, like "Override promo_banner for segment mobile_users: serve short". It cannot write to Flagsmith. 6. A person approves the exact diff. FlagMatrix applies it via the Management API, re-checks against live Flagsmith as the same users (12 → 0), and can undo it in one click. It also caught a checkout crash (new_checkout_form + express_pay one_tap), flagged an experiment metric that listens for an event the app never sends, and runs as a CLI in CI that fails the build when a pair breaks.