Hacker
Atiful Mulla
@_monster_
Projects
Agent Docs Lab
Flagsmith Experimentation HackathonNov 2026
I built Agent Docs Lab, an experiment harness that A/B tests documentation on AI coding agents, using Flagsmith to run the experiment. The problem: coding agents now read SDK docs and write integrations for developers. When the docs show a pitfall, or miss one, the agent copies it. The code compiles and runs, but the A/B test it wires up is silently broken (wrong identity, no flush, branching on the wrong field). Nobody notices until the data is wrong. How it works: each agent run is a Flagsmith identity that fetches its docs from my Vercel API. Flagsmith's getExperimentFlag decides which version it reads and records the exposure: Flagsmith's live "Run an Experiment" page, or the same page plus a 10-item common-mistakes checklist. Six models from four families write the integration. A deterministic grader runs 10 checks on the code, and the score goes back to Flagsmith as a Mean metric. When my pre-registered rule was met, I rolled out the winning doc through the same flag. Result: +13.9% more checks passed (over 99% chance to beat); fully correct integrations went from 0 of 214 to 39 of 170. Who would use it: docs and developer-experience teams (including Flagsmith's own) who want evidence of which docs produce correct code, now that AI agents are a big share of their readers.