How a contest runs
Code decides the facts, two readers decide the checklist, a maintainer decides the winner.
Select a step to see the room at that point.
--json flag to export
| Check | #13 | #14 | #15 |
|---|---|---|---|
| 1From GitHub | |||
| CI | –pass | –FAIL* | –pass |
| Tests touched | –yes | –yes | –yes |
| Files outside scope | –0 | –0 | –2 |
| 2From two readers, Claude Code and OpenCode | |||
1. Prints JSON with --json |
–1/2yes | –1/2yes | –1/2yes |
| 2. Default output unchanged | –1/2yes | –1/2NO | –1/2yes |
3. --help lists the flag |
–1/2SPLITyes | –1/2yes | –1/2NO |
| 4. Tests the JSON shape | –1/2yes | –1/2yes | –1/2yes |
| Ready to pick | –noYES | –no | –no |
* #14 says its tests pass; GitHub’s CI failed.1/2: one reader has read it. SPLIT: the readers disagree.
The room talks
danamaintainer#13, item 3: where does --help list the flag?
mirawrote #13cli.py:41, in the help text of the --json option.
bakeoff-secondreader, OpenCodeRe-read #13, item 3: met.
The pick
danamaintainer@bakeoff-merge pick #13
bakeoff-merge wants to run merge_pick for #13.
On GitHub
- #13Mergedwith a comment: picked by dana in bakeoff-12.
- #14Closedwith a thank-you note: CI failed; item 2 not met.
- #15Closedwith a thank-you note: item 3 not met; 2 files outside scope.
Why it exists
“Only one PR will be selected per issue.”
During this hackathon, Switch’s own repository had 349 open pull requests, and many issues had five to ten people claiming them. Coding agents make a pull request cheap. Reading five of them against one issue is not.
Today a maintainer re-reads every PR against the issue, over days, and the people whose PRs lose usually get silence or a one-line close. Bakeoff turns that into one sitting in one room, and every PR that loses gets a note naming the checklist item it missed.
When it goes wrong
The rules that matter live in code and in Switch’s settings, so an agent can’t talk its way past them.
- A PR says its tests pass, and CI failed
- The cell stays red with “claims pass, CI failed”, and
merge_pickrefuses a PR whose CI hasn’t passed. Nobody in the room can overrule GitHub. - The readers disagree
- The matrix marks the item SPLIT, and the readers point the maintainer at it.
- Someone picks a decided contest
- Refused, naming who decided and when. Nothing is posted.
- Someone who isn’t a maintainer tells the merge agent to merge
- Switch’s addressing policy doesn’t deliver the message.
- GitHub refuses the merge
- The pick is undone and the contest stays open.
- A decline note fails to post
- The tool says which one, and the pick stays recorded.
What Switch does here
Each part of a contest leans on one Switch feature. Only the merge agent’s tools can merge, and each agent’s name comes from its own environment, never from a tool argument.
- Room templates
- The watcher opens one room per contest from a YAML template, with its instructions, roles, members and a contest document.
- Kickoff and addressing policy
- The kickoff wakes both readers. The merge agent takes instructions only from maintainers.
- Roles with exclusive leases
- Checker, second opinion and merger each have one holder at a time, so no agent both judges and merges.
- Agents from different vendors
- Claude Code reads beside OpenCode, and the matrix shows where they split, so no model marks its own homework.
- Approval cards
merge_pickis the one tool the merge agent can’t run without a person. Switch posts Allow once or Decline in the room and records who answered.- Slack bridge
- The room is a Slack channel, and each agent posts under its own name.
See it, or run it
The demo contest
Issue #1 asks for a bakeoff summary command. Claude Code, Kimi Code, Pi and OpenCode got the same prompt, and their work became four real pull requests. All four pass CI. They differ on the checklist and the scope, which is what the room reads for.
Run it yourself
You need a Switch server with the agent controller, Slack or the bundled Mattermost, uv, and a GitHub token that can read and write the repository you watch. After setup, one pass of the watcher:
uv run bakeoff watch OWNER/REPO --once
To print the matrix in a terminal, without Switch:
uv run bakeoff matrix OWNER/REPO ISSUE
Setup steps in the README