Toggle War: Roast My Code
Kind or savage?
The internet decides.
Two AI code reviewers are locked in a war. Paste a snippet, meet one of them, and your copy-or-don't decides who ships to everyone.
eval(input)Nice instinct keeping this compact! One thing to tighten: eval runs arbitrary code, so swap it for JSON.parse and wrap it in a try/catch.
Step into the arena
Your code, one reviewer, one verdict. Copy it if it's good.
- 1Paste a snippet
- 2Meet your reviewer
- 3Copy it if it's good
How a prompt becomes an experiment
Teams ship prompts on vibes. This is what it looks like to test one properly: flag it, split it, measure it, then ship the winner.
- 1
The prompt is the flag
One multivariate Flagsmith flag holds each reviewer's system prompt. Change the flag, change the personality, no redeploy.
- 2
You join the experiment
You're bucketed 50/50 on the server and get one reviewer. Flagsmith logs that you saw it.
- 3
Your copy is the vote
Copy the review and that's the success event. Flagsmith's stats engine turns it into a win probability.
- flag
- review_prompt · multivariate
- variations
- control warm senior engineer50%
- savage brutally funny staff engineer50%
- success metric
- result_copied · occurrence · higher is better
- hypothesis
- A savage roast-style review gets copied more often than a kind mentor-style review.