Hacker
Anugrah Sengar
@anugrah55
Elsewhere
Projects
Darwin
Flagsmith Experimentation HackathonNov 2026
What did you build, and what problem does it solve? Darwin is an evolution loop for AI agents, built on Flagsmith Experimentation. Teams change the prompts behind their AI features on gut feel: tweak, read a few answers, deploy, hope. Nobody measures how real users react, and nobody checks after shipping. Darwin keeps an agent's whole configuration (system prompt, model and effort) in one Flagsmith multivariate flag. A Coach agent (Claude Opus 5.5) reads the conversations the agent got wrong, groups them into failure patterns, and writes a challenger with a testable hypothesis. Flagsmith runs champion against challenger on live traffic, and its Bayesian engine says which is better. Darwin's rules add guardrails, and a human approves every change before it touches traffic. In our run, a support bot went through six generations. Resolution rose from 73% to 100% and handoffs to humans fell from 25% to 4%. In the sixth generation, a teammate's cost-cutting prompt looked like a 94% winner on cost, but resolution dropped from 99% to 45%, so Darwin's guardrail killed it before it reached everyone. Who would use it, and how does it work? It's for teams running AI agents in production (support bots, assistants, copilots) who want prompt and model changes measured and safe instead of guessed. The runtime is three lines: the app asks Flagsmith which genome a user gets, which also records the exposure, then sends outcome events such as resolved, escalated and cost. The loop: 1. The Coach reads failed chats and proposes a challenger. Humans can submit their own prompts too, and they face the same gate. 2. A launch card shows the evidence, the prompt diff and the exact Flagsmith CLI commands. Approving adds the challenger as a variant and starts a 50/50 experiment. 3. Darwin reads Flagsmith's results and recommends ship, discard or kill. It ships only when the goal metric wins and every guardrail is proven within its margin. 4. Approving completes the experiment with Flagsmith's rollout decision, so everyone gets the winner with no redeploy. Flagsmith's experiment page records who approved. There's an emergency stop, a one-command rollback, a kill switch (turning the flag off) and a hard Claude spend cap. Every Flagsmith write goes through the official Flagsmith CLI.