Hacker
Antony Jenish Fernando
@antony_jenish
Projects
Relay Flags: AI agents earn their rollout
Flagsmith Experimentation HackathonNov 2026
Relay Flags is a GitHub App that lets AI coding agents ship code without risking every user. The problem: an agent can open a pull request in two minutes, but code review never tests it on real users, rollouts are all-or-nothing, and flags get left behind forever. How it works: a maintainer comments /relay ship on an issue. Three agents (Planner → Coder → Reviewer) open a PR with the change wrapped in a Flagsmith flag (created OFF). On merge, Relay redeploys the app and starts a Flagsmith experiment. The agent's trust score sets how many users get the new code: 5% for a new agent, up to 50% for a proven one. A kill switch turns the flag off automatically if errors spike. When the experiment wins, Relay posts a result card but never goes to 100% without a maintainer's /relay approve. Then the agents open a clean-up PR that removes the flag and the losing code, and Relay deletes the flag from Flagsmith. Wins raise the agent's trust; losses, rejections and kills lower it. Who uses it: any team that wants AI agents to do real product work (copy and UI tests, onboarding, bug fixes) with exposure earned step by step. Proof: two real end-to-end runs on GitHub in jenish1345/relay-flags-demo (issue #1 → +189% signups at 5% exposure; issue #4 → +118% at 10% because trust had risen to 0.32), both approved, cleaned up and the flag deleted. 82 unit tests. A seeded backtest of Relay's real decision code on 5,000 simulated runs: 94.4% of better changes shipped, 91.1% of worse ones auto-reverted, 100% of buggy deploys killed (median 20 s), 49–88% fewer users exposed to bad changes than a fixed 50% rollout (docs/BACKTEST.md). Demo repo: https://github.com/jenish1345/relay-flags-demo