Our Harness Makes a Local 27B Usable on Real Repo Work
Bonsai 2 27B on one RTX 5090 resolved 5 of 10 judged tasks from our own repository inside our agent loop. Driven raw, with no harness, the same weights resolved 0 of 8. The harness is what makes a local 27B usable on real repo work, on local weights, with no API bill.
Claude Code resolved 12 of 12. Gemini CLI resolved 11 of 11 judged. Those are the ceiling. The number we care about is the 5, because it runs on a card on our desk.
The benchmark
We mined 12 tasks from our own git history. Each task is a real commit that shipped a fix with a test.
- The checkout is the repository at that commit's parent. The fix is not there.
- The oracle is the commit's own test. It passes, the task is resolved. It fails, the task failed.
- Editing the test is an automatic fail. After the run we compare the test file to the commit's version. Any change and the row is scored failed, whatever the test says.
- The wall budget is 25 minutes per task.
No model judges another model. The test passes or it does not.
Results
| Arm | Model | Resolved | Judged | Unjudged | Not run |
|---|---|---|---|---|---|
| Claude Code | claude-opus-5-5 | 12 | 12 | 0 | 0 |
| Gemini CLI | auto (API key) | 11 | 11 | 1 (wall budget) | 0 |
| Our agent loop | Bonsai 2 27B, one RTX 5090, crystal memory on | 5 | 10 | 1 (wall budget) | 1 (host memory pressure) |
| OpenCode, no harness | Bonsai 2 27B | 0 | 8 |
Judged means resolved plus failed. A run that hits the wall budget, or a run we cannot attribute to a model, is unjudged. It leaves the denominator. It is never scored 0, because a timeout says nothing about whether the model could do the task, and a 0 would quietly punish the slow arm.
Gemini CLI took about 17 minutes per task. One task ran past 25 and left the denominator.
The Bonsai loop lost one task to the wall budget and never started one: the run was stopped when the host ran short of memory. Every call in its 10 judged rows is attributed to the pinned 27B.
The raw OpenCode rows come with a strike. Those 8 runs could not be attributed to a model, so we cannot prove the 27B answered them. We struck them as evidence. The 0 is what we saw, not a number we defend.
What the sample can say
Ten judged tasks is small. 5 of 10 has a 95% Wilson interval of roughly 24% to 76%. At this size only differences of about 40 points or more show up reliably. "The 27B resolves half" is a reading, not a measurement. "The harness moves the 27B from nothing to something" holds, and it is the claim we are making.
Claude Code and Gemini CLI at 12/12 and 11/11 are a tie at this size. We do not rank them.
Why the 27B fails
We read the failures. Four of the five Bonsai failures used about 40 tool calls. That is the loop's ceiling. The model was not wrong so much as out of turns.
One transcript makes the point. The fix was in place. The model had edited the right function the right way. It hit the ceiling before the final test run, so the row is a fail.
That gives us the next two ablations, one variable each:
- Crystal memory off. Same tasks, same ceiling. Tells us what the memory layer is worth.
- A higher tool ceiling. Same tasks, memory on. Tells us how many of the fails were budget, not skill.
The rule that keeps the leaderboard honest
All our model calls route through our scheduler. Arms name a model alias, the scheduler picks a backend. Under load, the alias for the 27B was sometimes answered by a 4B stand-in. The run looked fine. It was a different model.
The scheduler tells us when it does this. Every routing response carries two fields:
{
"served_by": "bonsai2-27b-5090",
"cross_model": false
}
served_by is the model that actually answered. cross_model is true when that is not the model the alias asked for. So the eval now enforces two rules:
- Probe every arm before any task. One call per arm. If a different model answers, the arm is refused and no task runs on it.
- Refuse any row whose serving model is unattributed. No
served_by, no row. That is why the raw OpenCode rows are struck.
A 50% from a 4B stand-in would be a great headline and a lie. With these two rules a stand-in cannot score for the 27B, by construction.
Gemini CLI and Antigravity
Google retired the Gemini CLI on personal Google login. The CLI says it is "no longer supported for Gemini Code Assist for individuals". API-key auth still works.
So awsh, our terminal harness, now runs Gemini on its own API-key profile. The user's own Google login is untouched. Nothing we do signs them out or rewrites their config.
Antigravity, Google's IDE, has no headless agent mode. A terminal harness can launch it. It cannot drive it. It is not an arm.
One harness, many agents
Claude Code, Gemini CLI and OpenCode all run inside awsh now, as interchangeable harnesses. Same session, same workspace, same task feed. Our own agent loop sits next to them. The eval spawns each arm through awsh and reads the same oracle, so the table above compares agents, not plumbing.
How we measured
- Task mining. Commits from our own history that shipped a fix with its test. Each becomes a fresh checkout at the parent plus that test.
- One run per task per arm. Fresh checkout every run. 25-minute wall budget.
- Arm probe first. One call per arm before any task. Wrong
served_by, the arm is refused. - Oracle. The task's own test, run after the agent stops. Test file compared to the commit's version. Any edit, the row fails.
- Attribution. Every model call logs
served_by. A row with any unattributed call is unjudged. - Verdicts. Resolved, failed, unjudged (wall budget or unattributed), not run. Judged is resolved plus failed. Only judged rows count.
- Verification. We read transcripts for every Bonsai failure, not just the counts.
What is next: the transcripts become training data
Every eval row now saves its full transcript with the oracle verdict next to it. That turns the benchmark into a data source.
- Rejection-sampled positives. The 27B's own resolved runs. The model already did these, the test agrees, so we train on them.
- Distillation targets. Frontier runs that resolved tasks the 27B failed. Same checkout, same oracle, a passing trajectory to learn from.
- Trained locally, with anchoring. The fine-tune is held against the base so it does not unlearn what it already does.
- Benched on held-out tasks only. A task that fed training never scores the model it trained. Otherwise the next table is a memory test.
The plan is a loop. Mine tasks, run every arm, keep the verdicts, train the 27B on what passed, bench it on tasks it has never seen. If the 5 does not move on held-out tasks, the fine-tune did not work, and we will say so.
Keep the journal free
Sponsorship pays for the compute, the hardware and the hours behind these entries.
by email
New journal entries, in your inbox.
What the agents built, broke and fixed. One message per entry.