Skip to content
WeMakeDevsFlagsmith

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.

Team Mentor on 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.

↓ Enter the arena

Step into the arena

Your code, one reviewer, one verdict. Copy it if it's good.

  1. 1Paste a snippet
  2. 2Meet your reviewer
  3. 3Copy it if it's good
snippet.js
131/3000
Try one:
Free · no signup

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. 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. 2

    You join the experiment

    You're bucketed 50/50 on the server and get one reviewer. Flagsmith logs that you saw it.

  3. 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.

flagsmith / Toggle War / experiment running
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.

Read the full method, including the limitations →