Agent Arena is a blinded A/B testing environment for coding agents, built as an AGPL-licensed fork of Paseo. It runs two OpenCode agents in separate Git worktrees, hides their model identities until a vote, and promotes the selected worktree into the continuing conversation.
This README is the tester quickstart for the Electron desktop app.
-
macOS or Linux. The commands below use a POSIX shell (
zshorbash). -
Git.
-
Node.js 22.20.0 (the version pinned in
.tool-versions) and npm. -
An OpenRouter API key with available credit.
-
The stable
opencodeCLI on yourPATH. Install it with:npm install -g opencode-ai opencode --version
Arena uses OpenCode as the harness, but model inference goes through the local Arena proxy and your OpenRouter key. You do not need to configure a separate model inside OpenCode.
git clone https://github.com/bottomless/agent-arena1.git
cd agent-arena1
npm install --workspaces --include-workspace-rootBuild the local packages needed by Electron and its managed daemon:
npm run build:server
npm run build --workspace=@getpaseo/expo-two-way-audioThese builds are only required after a fresh clone or after changing dependencies/shared packages.
Create the local environment file:
cp packages/arena-proxy/.env.example packages/arena-proxy/.env
openssl rand -hex 32Open packages/arena-proxy/.env and replace:
replace-with-a-long-random-tokenwith the output fromopenssl rand -hex 32.replace-with-an-openrouter-keywith your OpenRouter API key.
Leave the remaining defaults unchanged. In particular, both processes should use
http://127.0.0.1:6770 for ARENA_PROXY_URL.
The .env file is ignored by Git. Never commit or share it.
From the repository root, open terminal 1 and run:
set -a
source packages/arena-proxy/.env
set +a
npm run dev:arenaWait for:
Paseo Arena proxy listening on http://127.0.0.1:6770
Keep this terminal running.
From the repository root, open terminal 2 and run:
set -a
source packages/arena-proxy/.env
set +a
npm run dev:desktopLaunch Electron from this terminal, not Finder or an application launcher. Electron must inherit
the Arena environment variables. The desktop launcher starts Metro and its own managed Paseo daemon;
do not start npm run dev:server separately.
The first launch can take a minute while Electron and Metro initialize. Keep terminal 2 open while
testing. Arena Electron uses daemon port 6869, separate from Paseo's usual development port
6768, so both checkouts can run at the same time.
- In Electron, add or open a local Git repository. The repository must have at least one commit so Arena can create worktrees.
- Create a new workspace/chat.
- Confirm the Battle toggle is on. It defaults to on for a new chat.
- Enter a coding task and submit it.
- Watch candidates A and B work side by side. A side becomes selectable when that side finishes.
- Select Choose A, Choose B, or Tie. A tie is recorded as a tie and advances A.
- After the vote, the model names are revealed and the battle collapses into the normal timeline. Expand the battle summary to inspect both transcripts, the bounded A-vs-B diff, and its summary.
- Send another message. It should continue from the selected worktree and normal winning transcript.
To test single-agent mode, turn Battle off before submitting. The thinking selector appears in single-agent mode. You can switch between battle and single-agent turns within the same chat.
Arena currently accepts text prompts only.
- Quit Electron normally or press
Ctrl+Cin terminal 2. The desktop-managed daemon shuts down with the app. - Press
Ctrl+Cin terminal 1 to stop the Arena proxy.
Runtime state remains local:
- Electron/Paseo development state:
.dev/ - Proxy battle records:
packages/arena-proxy/.data/ - Local credentials:
packages/arena-proxy/.env
All three paths are ignored by Git.
Confirm the same shell that starts Electron can find it:
command -v opencode
opencode --versionIf needed, install it with npm install -g opencode-ai, then restart terminal 2.
Quit Electron completely and restart it from terminal 2 after sourcing
packages/arena-proxy/.env. Do not use an already-installed Paseo app; testers must run this
checkout with npm run dev:desktop.
Electron did not inherit the Arena environment. Quit it and repeat all four lines in the terminal 2 launch block.
Stop both processes. Confirm terminal 1 and terminal 2 source the same .env file, then restart the
proxy first and Electron second.
Stop the older Arena proxy. If you intentionally choose another port, update both
ARENA_PROXY_PORT and ARENA_PROXY_URL in .env before restarting both processes.
Another Agent Arena development daemon is running. Quit the older Arena Electron development
instance before starting this one. Standard Paseo development uses a different port (6768), and
the packaged Paseo app normally uses 6767.
Wait for Metro to finish in terminal 2. If Metro exited, stop Electron and rerun
npm run dev:desktop. On a fresh checkout, also confirm the two build commands in step 1 completed.
Agent Arena is derived from Paseo and remains licensed under AGPL-3.0-or-later. Preserve upstream copyright and license notices when redistributing or modifying this fork.