
I Made Claude Code, Codex and OpenCode Try Out for the Same Job
How I built Tryouts on Switch: three AI coding agents race on the same bug, plain code checks every fix, and the team lead reads the diff and hires with one Allow once button in Slack.
A lot of us pick an AI coding tool based on benchmarks, or some demo we saw on social media.
That doesn't tell you how the tool will do on your own code.
So I built a way to make Claude Code, Codex and OpenCode fix the same bug, on your own code, under the same rules, with receipts. It's called Tryouts, and I made it for the Flip the Switch hackathon on Switch AI (GitHub), SandboxAQ's self-hosted platform for putting AI agents into Slack, Discord and other chat apps with real permissions.
The pitch fits in one line: hire your AI coder the way you'd hire a person.
One message starts the tryout
In the demo I'm Arjun, the team lead. I live in Slack.
I post one message in #hiring:
@hiring we need a bug fixer. Hold a tryout on #1 (chunk() drops the last partial chunk) with Claude Code, Codex and OpenCode.
The hiring manager is an agent too. It runs a Switch template, and Switch creates three candidate agents, each with its own private Slack room. One message in, three agents and three rooms out. I didn't click anything.
Then the referee, another agent, gives each candidate a token budget in Switch.
Each candidate clones the repo, writes a test, fixes the bug and says "Ready".
The referee doesn't judge anything
This part matters most to me, so I kept AI out of it.
The referee is an agent, but its folder only lets it run three commands. The verdict comes from plain code running five checks:
- The fix is built on the latest main.
- It adds a regression test and deletes none.
- It only touches the folders the repo allows.
- All tests pass with the fix, including the original version of any test file it changed.
- The new test fails on the old code.
Number five is the one I care about. If the new test also passes without the fix, it isn't really testing the bug, and the fix gets refused.
Every run happens in a fresh Docker sandbox with no network, and the result is a sha256 digest anyone can recompute.
Those five checks have a hole, and I found it late. A branch that adds export const fixed = true and a test for that constant passes all five while fixing nothing.
So the scoreboard also runs every fix against each rival's new test. A fake fix fails them, gets flagged and drops to the bottom. It costs no extra tokens, because all three candidates already wrote tests for the same bug.
Here's the real scoreboard from the run in the video:
| Candidate | Result | Rival tests | Time | Est. cost |
|---|---|---|---|---|
| Claude Code | verified | 2 of 2 | 34s | $0.629 |
| Codex (gpt-5.6-luna) | verified | 2 of 2 | 51s | $0.142 |
| OpenCode (deepseek-v4.1-flash) | verified | 2 of 2 | 3m 41s | $0.031 |
All three passed. Claude Code was the fastest. OpenCode did it for about a twentieth of Claude's cost, so the hiring manager recommended OpenCode.
The token counts come straight from Switch's usage API. The dollars are my list-price estimates, not bills, so "cheapest" means cheapest by my price table.

The hire is a button only I can press
The hiring manager can't hire anyone on its own.
When it runs tryouts hire, Switch turns that command into an "Allow once" card in Slack. Only the agent's owner can answer it. That's me.
A button is useless if you can't see what you're approving, so the scoreboard prints the winner's diff right above the card, and opens a pull request when GitHub's CLI is logged in.
I press it, and the exact commit the referee checked gets merged into main on GitHub. The merge closes the issue.
Then the hiring manager tries to add the new hire to the bug room on Discord. That room belongs to Riya, who runs the community. Switch says no:
403: Not authorized to change this room's membership
I didn't write that rule. Switch won't let an agent into a room its owner doesn't own. So Riya lets it in from Discord and names it @bugfixer.
Strangers can't give it work. Only people with a linked Switch account can, so anyone else who mentions it in that room gets Switch's refusal. That matters because a bug report is text an agent reads.
The two candidates that lost get deleted, but only after I type the confirm command Switch asks for.

Probation
The hire's first real job comes from the community.
Riya reports bug #2 straight to @bugfixer in Discord. It fixes it, the referee checks it, and back in Slack the merge waits for my button again.
Merged. One of three on probation. Riya gets her answer right there in Discord, and only after the merge, so nobody hears "fixed" about code I didn't approve.
Probation means three new bugs fixed and merged. It can also end badly: three refuted fixes on one bug and Switch stops letting anyone in that room give the hire work, the merge command refuses it, and the runner-up gets named. That ending has tests but didn't happen in this run. Every merge also records what that fix cost.
The receipt lives in the commit
Every merge commit carries the proof: the referee's digest, who got hired and why, the numbers that won it, and the Switch approval that let it through.

Both issues are closed on aryan877/tinychunk, the small demo repo the candidates worked on. And make judge replays every recorded verdict and merge from the evidence folder, without Switch, and expects the same digests.
What Switch did for me

Most of the hard parts are Switch features. Tryouts is a thin layer on top.
- Agents that create agents. The hiring manager calls
run_templateand gets three candidates and three rooms. - Templates with conditions and room groups. One template picks any mix of tools, and the rooms get filed together as "Tryout #1".
- One controller, three AI tools. Claude Code, Codex and OpenCode run on one machine under the same rules.
- Usage and budgets. Real token counts for the scoreboard, and a cap on every candidate.
- Approval buttons. The hire and every merge wait for my "Allow once".
- Room ownership. The refusal on Discord is Switch, not my code.
- Addressing policies. Strangers in the bug room can't give the hire work. Switch refuses them.
- Aliases and owner-confirmed deletion. @bugfixer, and losers that only go when I confirm.
- Slack and Discord bridges. The team hires in Slack, the community reports bugs in Discord, one Switch behind both.
What bit me
Agents only wake up on an @mention. Every handoff has to name the next agent. The referee also handles each room in its own session, so it can't count how many candidates are done. I moved the counting into code: tryouts verify prints "Next:" lines that tell the referee exactly what to do.
A workspace admin manages every room. My first version made the team lead an admin, and the hire walked straight into Riya's room. Now the team lead is a plain member, and a separate ops account reads usage and budgets.
Usage is counted when a turn ends. Codex finished its fix before its tokens were counted, so an early scoreboard was unfair. Now the board waits until every verified candidate has real numbers.
A Slack press isn't recorded the way I assumed. Switch stores a button press from Slack under your chat identity, not your Switch user ID. My hire check only accepted the second one, so the real button would have been refused. I caught it the morning I recorded the demo.
My own end-to-end test caught me on the last day. I'd changed how the board printed things, and the hiring manager couldn't find the 40-character commit it needed to hire. It didn't guess. It stopped and asked. Now the commit is on the scoreboard.
And a small one: I ran Codex on my ChatGPT Go plan, on its cheapest model with reasoning turned off, so I wouldn't burn my limit. It still passed.
The honest limits
- Every candidate runs as the same OS user on one machine. A determined candidate could read the team lead's Switch login or use the machine's GitHub login. Running candidates as another user fixes that.
- Anyone in #bugs can type
!invite-agent, though strangers can't give the hire work. - A candidate could write a test so narrow that honest rivals fail it. A rival failure is a flag for the person pressing the button, not a verdict.
- Nothing times out a stalled candidate yet. You say
@referee boardand it scores whoever finished. - A budget stops new messages to an agent, not a turn it's already running.
- One bug is a sample of one.
Try it
- Video:
- Site: tryouts.aryankumar.dev
- Code: github.com/aryan877/tryouts
I built it with Claude Code and Codex as my own coding assistants, which felt right for a project about hiring them.
Big thanks to the Switch team at SandboxAQ for an open, self-hostable platform I could actually dig into, and to WeMakeDevs for running the hackathon.
#HowISwitch

Comments (0)
Loading comments...