Hacker
Jeffrey Onuigbo
@jeffreyon
Elsewhere
Projects
AGENT GUARD đź’‚
Flagsmith Experimentation HackathonNov 2026
What did you build, and what problem does it solve? Built Agent Guard, a safety net for AI agents behind Flagsmith feature flags. The problem: you flip a prompt flag thinking it’s an improvement, but it quietly breaks the flow (e.g., agent stops asking for burger size so carts never get sent). No one notices until revenue drops. There’s no kill switch, no approval gate, and no audit trail. Agent Guard watches the cart_sent metric per variant, flags when the treatment tanks (win prob < 40% with 30+ exposures), drafts a rollback, makes a human approve it, applies via Flagsmith PATCH + read-back, and writes an incident note. No auto-rollback. No n8n. Who would use it, and how does it work? Teams shipping LLM agents or chatbots in production who need guardrails around prompt changes, product eng, platform teams on Flagsmith, QA/release managers who want an audit trail before reverting. How it works: 1. agent.prompt.version flag (v1_good / v2_regression) is the only thing controlling agent behavior. v1 asks “Which size?”; v2 skips it and guesses. 2. Every chat logs cart_sent per variant in Flagsmith. 3. Supervisor runs every 60s. If win prob < 40% with ≥30 exposures, it writes draft.json, but doesn’t touch anything yet. 4. approval.py shows the draft, metrics, and hypothesis. You type y to approve. 5. apply.py PATCHes Flagsmith back to v1_good, reads it back to confirm, and the agent starts asking for size again. 6. incident.md gets written with timestamp, tenant, flag, from/to, metric counts, sample replies per version, approver, and what was deliberately left alone (agent.live, agent.model).