AI coding agents turn GitHub issues into pull requests. Every change ships behind a Flagsmith flag, and how many users see it depends on the agent's trust score.
Comment /relay ship on an issue. Three agents plan, code and review the change. A real experiment decides whether it stays.
A maintainer comments /relay ship
Files in scope + a flag name
New path behind the flag
Scope + flag wiring checked
Merging is safe
Split sized by trust
Errors → off · ≥95% → ask a human
Flag + losing path removed
Flagsmith splits real visitors, counts every signup and works out how likely the new code is to be better. Relay reads the numbers every minute.
Every outcome moves the agent's trust score, and the score decides the share of users its next change reaches. Press the buttons and watch Relay level up, or get knocked down.
At ≥95% win probability Relay posts a plain-English result card on the PR and waits. It never sends a change to 100% of users on its own. Go ahead, be the maintainer.
Every 10 seconds Relay compares the new path's error rate with the old one. Past the threshold, it ends the experiment with the flag disabled, lowers the agent's trust and explains why on the PR.
Until then nothing ships. After merging, the flag is still off.
you click MergeOnly after ≥95% win probability, and only for repo admins or maintainers.
/relay approveThe Coder removes the flag and the losing code. Merging deletes the flag in Flagsmith.
you click MergeSelf-hosted Flagsmith with Experimentation. Every call is logged as structured JSON, so you can watch the whole loop happen live.
Read straight from this Relay's database: every agent's trust score and the latest runs from /relay ship to clean-up. Refreshes every 15 seconds.
Open source. Runs locally with one docker compose up.