Two AI agents / One Flagsmith flag / One experiment

AI agents propose.
Flagsmith decides.

Two AI agents each write a trading playbook. One Flagsmith flag holds both, with a coin flip as the control. A Flagsmith experiment deals every market to one of the three on paper, a rule fixed in advance reads the result, and a person approves the start and the rollout. Run twice, on US stocks and on crypto: both times the coin stayed.

Paper money only · A replay of recorded sessions, dealt by FlagsmithFills from real Polymarket order books · No order is ever placed

  • 8 large US stocks
  • 8 crypto assets
  • A replay of recorded sessions
  • Live on Polymarket
  • 5 minute markets
  • $10,000 of paper money a market
  • 240 markets per version
  • 95% chance needed to beat the coin
  • The result is read once
  • No order is ever placed

Agents can argue for any trade. A Flagsmith experiment keeps the score. A person decides what ships.

01 / How it works

An argument about trading, settled like any other experiment

An agent can write a trading playbook in a minute and argue well for it. A good backtest does not settle whether it works, so the arena hands the question to markets no agent has seenlive markets and to a rule written down before the first one.

  1. 01

    The agents write playbooks

    Two agents get the same fact sheet and opposite convictions: Flagbearer trades with the recent move, Turncoat against it. Each writes its rules, a hypothesis and a prediction, attacks the other's playbook and may revise its own once.

  2. 02

    Flagsmith deals the markets

    Every five minutes of a recorded session each of eight large US stocks gets a market.Every five minutes each of eight crypto assets gets a new market. One flag with three versions decides who trades it: the coin, Flagbearer or Turncoat. It goes long or short on paper, and the recorded price five minutes later settles the trade.The trade is filled on paper and settled by the market's real resolution.

  3. 03

    A rule decides, a person approves

    The verdict is read once, when every version has its 240 markets, by a rule fixed before the start. Nothing starts and nothing rolls out without a person's yes, typed on their own terminal.

02 / The experiment

Momentum against reversal, with a coin in between

The venue is eight large US stocks, AAPL, MSFT, NVDA, AMZN, GOOGL, META, TSLA and JPM, in five minute markets of the regular session, replayed from recorded sessions.The venue is Polymarket's five minute Up or Down markets on eight crypto assets. A market resolves Up when the price at the end of its five minutes is at or above the price at the start. A version goes long for Up or short for Down with $10,000 of paper money, and a round trip costs $2.Counting the spread and the fee, a trader breaks even at about 53 percent right calls.

Flagbearer

Momentum
Conviction, given to it
Short moves continue. Large orders are worked over minutes, and other traders chase what just moved, so the next five minutes tend to look like the last five.
Right calls on past markets
48.8% on the sessionshours it saw48% on the sessionshours held back
Its own prediction for the experimentlive run
50% the coin49% Flagbearer51% Turncoat
Its playbook, "Flagbearer: follow the last five minutes", in plain words. The first rule that fits makes the call.
  1. When the 5 minute change is at most −0.27%, and volume against the hour's average is at least 1.5×Down
  2. When the 5 minute change is at least 0%Up
  3. OtherwiseDown

Turncoat

Reversal
Conviction, given to it
Short moves overshoot. Most of a sharp five minute move is noise and thin liquidity, and it comes back once the pressure is gone.
Right calls on past markets
53.5% on the sessionshours it saw50.9% on the sessionshours held back
Its own prediction for the experimentlive run
50% the coin49.5% Flagbearer51% Turncoat
Its playbook, "Turncoat: fade the stretch, back the dip", in plain words. The first rule that fits makes the call.
  1. When the 5 minute change is at most −0.27%, and volume against the hour's average is under 1.5×Up
  2. When the 5 minute change is at least 0.27%, and volume against the hour's average is at least 1.5×Down
  3. When SPY's 5 minute change is under −0.06%Up
  4. When the hour (UTC) is at most 15Up
  5. When the 5 minute change is under −0.11%Up
  6. When the 15 minute change is under −0.2%Up
  7. OtherwiseDown

The whole debate took 7 model calls, 53 seconds and 49,105 tokens. On the sessionshours held back the two playbooks make the same call in 20.7% of markets, and the coin was right in 51.7%.

The terms, fixed before the start

Flag
trader_large_capstrader, with the coin as control and one variation per agent
Split
The coin 34%, Flagbearer 33%, Turncoat 33%
Unit
One market: one asset in one five minute window. Its name is the identity Flagsmith randomises.
Goal metric
Trade won, event trade_won
Guardrail
Trade placed, event trade_placed
Watched, not judged
Paper profit per market, event paper_profit
Sample
240 markets per version before any outcome is read
Rule
A playbook qualifies above a 95% chance to beat the coin, with its guardrail chance not below 5%

The verdict

Experiment 2973 · Read once on 29 November 2026

The coin stays

Chance to beat the coin, by Flagsmith's readingThe line: 95%

Flagbearer0.2%
Turncoat48.7%

The coin 52.8%. Flagbearer 42.0% (0.2% chance to beat the coin): did not clear 95.0%. Turncoat 52.7% (48.7% chance to beat the coin): did not clear 95.0%. Neither beats the coin, so it stays. No guardrail fell.

Open the arena
Markets move together
The eight stocks follow the wider market, so the markets of one five minute window are not independent bets, and the sample carries less evidence than its size suggests.
Markets move together
The eight assets follow Bitcoin, so the markets of one window are not independent bets, and the sample carries less evidence than its size suggests.
Fills are simulated
Each position opens and closes at a recorded price, with one basis point of cost a side. No order is placed, so nothing here moved a price.
Fills are simulated
Each trade is priced from the asks in the real order book, with the market's fee. No order is placed, so nothing here moved a price.
A replay is not a live run
The sessions already happened. Flagsmith deals and judges them as it would a live run, but a replay cannot show slippage or an order that does not fill.
The backtest is a stand in
Past outcomes come from exchange prices. Polymarket resolves on a Chainlink price, which can differ in a close market.
What the held back sessions said
On them the coin made more right calls than either playbook. That made "the coin stays" the result to expect before the replay.
What the held back hours said
On them neither playbook beat the coin. That made "the coin stays" the result to expect before the first live market.

03 / Agent Skill

The same job for any coding agent and any flag

flagsmith-duel is the Flagsmith half of the arena's experiment as an Agent Skill: one job from plan to rollout, on the Flagsmith CLI. A version's value is any text or JSON, so it settles a disagreement about a message, a price, a screen or a trading playbook the same way.

/plugin install flagsmith-duel --marketplace kartikangiras/oakenshield

Works in Claude Code 2.1.275 or later. Needs the Flagsmith CLI 2.0 or later, Node 20 or later and git.

Built to be cheap for the agent

Requests to the model
9
Output tokens
1,653
Tokens the whole job added to the conversation
3,981

Measured on a recorded run of the skill in Claude Code with Sonnet, on a small demo flag with scripted visitors: four things said by a person, from the plan to the rollout. Each command prints one line of JSON with a next field that says what to do, so the agent never reads the script. A plan can also name events that carry a number, such as the arena's paper profit. Flagsmith reports them next to the goal, and no rule reads them.

  • initWrites the plan, checks it and prints the approval codereads
  • planPrints what the start would create, after any editreads
  • startCreates what is missing, starts the experiment, writes the sealwrites
  • auditCompares Flagsmith with the sealreads
  • verdictCounts the sample until it is in, then decides oncereads
  • finishCompletes the experiment with the winnerwrites
  • stopEnds a run early, and everyone gets the controlwrites
  • approveA person's confirmation on their own terminalreads

04 / Trading desk

Put the agents to work on a market you pick

An arena answers one question. The trading desk is for trying the agents yourself: real prices, paper money, and the whole desk run from Flagsmith flags.

  1. 01

    Pick a mode and a market

    A demo replay of the latest session at speed, or real markets as they trade. Eight large US stocks, or Bitcoin, Ether, Solana, XRP and Dogecoin.

  2. 02

    Switch the agents on

    Flagbearer, Turncoat and the coin call every five minute market with the playbooks their arena sealed. Let them all trade, or let the flag deal each market to one of them.

  3. 03

    Trade beside them

    Size the position, call the next market up or down, and watch every order fill and settle, with each one's paper P&L on the chart.

The trading desk: Flagsmith's five switches for the desk, a replay of NVDA's latest session with each market dealt to one agent, their banked paper profit, the order ticket and the blotter
desk_open closes the desk, desk_flagbearer, desk_turncoat and desk_coin seat each agent, and desk_dealer deals the markets, the market's name its identity. A change in Flagsmith reaches the desk within half a minute, with no deploy.

Open the trading desk

05 / FAQ

Questions worth asking first

Does it trade real money?

No. Every trade is on paper: $10,000 a market, opened and closed at the recorded prices of real sessions, with one basis point of cost a sidepriced from the asks in Polymarket's real order book with the market's fee, and settled by the market's real resolution. No order is ever placed, and there is no broker, account or keyaccount, wallet or key.

Is this only for trading?

No. Trading is the proof because a market answers in five minutes. The flag, the experiment and the approvals do not depend on what the versions decide, so the same skill can settle a pricing rule, a fraud threshold, a prompt or a ranking. None of those has been run with it yet.

What stops a playbook that goes badly wrong?

A loss limit. Once the last 100 settled markets have lost 1,800600 paper dollars between them, the runner opens nothing for any version, and it stays stopped until a person restarts it from their own terminal. The limit counts every version together, so it cannot tilt the experiment. A brief can also name one flag in Flagsmith, from which the operator pauses every version or lowers the limit.The operator can also pause every version, or lower the limit, from one flag in Flagsmith.

Why is a coin the control?

Because it is the honest baseline. Over five minutes a stock rises about as often as it falls, so a trader with no edge is right about half the time.Both sides of a market cost about 50 cents a share when the trade is made, so a trader with no edge is right about half the time. The coin's call is one bit of a hash of a published seed and the market's name, so anyone can check it.

Which run is live and which is a replay?

The crypto arena traded Polymarket's markets live, as they opened. The stock arena is a replay of recorded sessions, those of 23 and 24 November 2026, because an exchange is closed at the weekend. The replay stopped in the second session, when every version had its 240 markets. In a replay Flagsmith still deals every market and judges the result exactly as in a live run. Only the prices are from the past, and no agent and no rehearsal saw those sessions.

What if neither playbook beats the coin?

Then the coin stays. That is a valid answer, and the rule says so before the start. A playbook qualifies only above a 95% chance to beat the coin on the goal, with its guardrail holding.

Do the agents have access to Flagsmith or to the markets?

No. The two agents run with no tools and hold no credentials. Each one's whole output is one JSON object, a playbook, that the referee parses. The runner applies it, and every read and write of the experiment goes through one script on the Flagsmith CLI.

What stops an agent from starting or rolling out on its own?

The start and the rollout each need an approval code, which is a digest of what the person was shown. The arena's environment is protected, so the person also confirms on their own terminal by typing the environment's name. These approvals are a convention for an agent that follows its instructions. Against one that does not, keep the Flagsmith key out of its reach.

What does this site record about me?

This page sends no events and keeps nothing in your browser. It reads the arena's score from this site's own server. The experiment is run on markets, not on people: the dashboard runs no test on its visitors and sends nothing to Flagsmith. The dashboard keeps one thing in your browser, your choice of a light or dark theme. Both pages load their fonts from Google Fonts.

Is it free and open source?

Yes. Oakenshield is open source under the MIT license. The code, the brief, the whole debate and the files of the run are in the repository on GitHub.

Watch every market settle, one dot at a time

The dashboard shows the score per version, the paper profit, the latest trades and both playbooks in plain words.

Watch the arena Try the trading desk: pick a market, switch the agents on and watch them trade on paper