Hacker
Deekshitha P
@deekshithap_07
Elsewhere
Projects
PatchLab — AI Bug Fixer UX Experiment
Flagsmith Experimentation HackathonNov 2026
I built PatchLab, an AI-powered bug-fixing assistant and UX experimentation app powered by Flagsmith, designed for software developers and AI coding tool builders. The Problem: When AI coding assistants suggest a bug fix, developers often hesitate to adopt the patch because it's unclear whether they prefer reading a plain-English root-cause explanation first or scanning the code diff immediately. Guessing the wrong default layout lowers developer trust and slows down debugging workflows. How It Works: PatchLab uses Flagsmith's multivariate feature flag (`bug_fix_layout`) and `useExperiment` React SDK hook to split users 50/50 between two layouts: 1. Explanation-First Layout (Control): Presents a plain-English root-cause breakdown above the suggested patch. 2. Diff-First Layout (`diff_first`): Displays the side-by-side code diff and primary "Copy Fixed Code" CTA immediately at the top. Using `flagsmith.identify()` for deterministic user bucketing and `flagsmith.trackEvent('copy_fix_clicked')` to measure real fix adoption, our live Flagsmith experiment (Experiment #1437 across 134 exposures) proved that the Diff-First Layout achieved a 68.8% conversion rate versus 29.8% for Control—a +130.8% lift with >99% Bayesian win probability. This lets teams safely roll out the winning UX to 100% of users directly from Flagsmith without redeploying code.