K Koda Intelligence
DEEP DIVE · TOOLS

43% Better Coding Agent, Same 5.93 GB File

PrismML's Ternary Bonsai 2.5 27B averages 54.2 across SWE-bench Verified, DeepSWE v1.1 and Terminal-Bench 2.1, up from 37.9 for Bonsai 2 in September. Both download as the same 5.93 GB file built from Qwen3.8 27B. The whole gain came from training. For teams paying per token on routine agent work, that changes the routing math.

By the Koda editorial team · · 6 min read

PrismML's coding agent got 43% better in about ten weeks. The file it ships in stayed exactly the same size.

On November 24, 2026,1 PrismML released Ternary Bonsai 2.5 27B. The company reports it averages 54.2 across SWE-bench Verified, DeepSWE v1.1 and Terminal-Bench 2.1. Its September predecessor, Ternary Bonsai 2 27B, averaged 37.9 on the same tests2.

Both models hold 27 billion1 parameters. Both download as a 5.93 GB3 file, according to PrismML's model card. The full-precision Qwen3.8 27B4 they come from weighs 53.8 GB. Same size, same base, a far better agent.

PrismML's table also shows the larger parent still ahead on every coding test it lists. For anyone paying per token for routine agent work, the gain still matters, because it came from training.

Fixed bytes, retrained behavior

Ternary weights take only three values, written {-1, 0, +1}. Three equiprobable values carry about 1.585 bits of information5, since 2 to the 1.585th power is roughly 3. PrismML adds a 16-bit1 scale for each group of 128 weights, which puts the model at 1.76 bits per weight, its documentation says. Standard FP16 weights use 16 bits each6.

What a ninefold-smaller coding agent asks of your hardware and your reviewers.PRISMML MODEL CARD · PRISMML DOCS · KODA ILLUSTRATION
Download sizePrismML model card · Ternary Bonsai 2.5 27B5.93 GB3
Compression vs FP1653.8 GB parent over 5.93 GB file9.07×
Max contextPrismML docs · KV cache grows per token262K
Review cost per failed runKoda illustration · 15 min at $60/hr$15

Divide 16 by 1.76 and you get about 9.1.61 The file sizes agree: 53.8 GB4 over 5.93 GB3 is 9.07. That ninefold cut is why PrismML can pitch a 27-billion-parameter agent for personal devices.

The release splits into two buckets. One holds what PrismML froze: the ternary format and the 5.93 GB3 file. The other holds what moved, which is behavior over long tasks. PrismML's docs say Bonsai 2.5 recovers when a step fails and keeps the objective in view across many tool calls.

It also loops and over-thinks less than its predecessor did, and it finishes in fewer turns, according to PrismML. The September release shows why that second bucket matters. PrismML said on September 17 that Bonsai 2 kept 98.2% of its parent's aggregate benchmark score1. On agentic coding it kept 63%, the November model card shows. On DeepSWE it scored 0.0.

So the broad average hid a broken agent. Size doesn't predict the agent score either. PrismML compares Bonsai 2.5 with GSQ-RCO IQ3_XXS, another low-bit build of the same base that is 1.7 times larger. Bonsai 2.5 leads it on tool calling, 77.2 to 75.3,3 and trails on coding, 54.2 to 55.5.1

In the compressed tier, the file sets a ceiling. Training decides how close an agent gets to it.

Where the last 6.3 points cost money

Think of the local model as a sharp new hire on the night shift. It clears the routine tickets and leaves the hard ones in a tray for the senior engineer at 9 a.m. For your system, the question is how many tickets hit the tray and what each one costs to clear.

Start with where the gaps are. On five tool-calling benchmarks, PrismML reports 77.2 for Bonsai 2.5 against 77.7 for FP16,1 a 0.5-point gap. On SWE-bench Verified, which grades patches for real GitHub issues, it is 75.6 against 80.6.3 Terminal-Bench 2.1 grades shell work, and there the scores are 60.1 against 70.8,7 a gap of 10.7 points.

Inside an agent loop, those gaps compound. Take a 20-step task where each step works 95% of the time: the whole run succeeds about 36% of the time, since 0.95 to the 20th power is 0.358. Lift each step to 97% and the run succeeds about 54% of the time. PrismML does not publish per-step rates, so read those numbers as an illustration of the shape, not a measurement.

Now put a dollar figure on the tray. Say a failed run eats 15 minutes of review from an engineer who costs $60 an hour. That's $15 per failure. If the local tier fails 10 more runs per hundred than your frontier API, the extra review costs $150 per hundred runs.

The local tier pays off when the API spend it removes on those hundred runs is more than that $150. For high-volume work like test scaffolding or code search, that bar can be low. For a rare migration touching 40 files, one extra failure can wipe out the savings.

The system that wins this math has three steps. Step one: send every routine task to the local model first. Step two: run your tests and linter on its output before anyone looks at it. Step three: escalate to a frontier API after two failed local attempts, and log why.

We think step two carries most of the value. A test suite turns a vague benchmark gap into a pass-or-fail count on your own code. PrismML has published no dollar cost per successful task, so that count is what settles the trade for your repo.

Local coding agents may near parity in 2027

PrismML has shipped this line on a steady clock. 9to5Mac reported the first Bonsai 27B on July 14, 2026. Bonsai 2 followed on September 17 and Bonsai 2.5 on November 24, roughly nine to ten weeks apart.

Between the last two releases, agentic coding retention went from 63% to 90% of the FP16 parent. The remaining gap is 6.3 points, since 60.5 minus 54.2 is 6.3. If the next release closes half of that, the average lands near 57.4, about 95% of the parent. On the same clock, that release would arrive around late January 2027.

Two caveats limit that projection: PrismML has not released third-party replication, and it has not released confidence intervals. An independent run of the public weights on SWE-bench Verified would settle the headline number.

For builders, the bet is lopsided. Trying a local tier costs a 5.93 GB1 download under an Apache 2.0 license and a day of an engineer's time. Skipping it risks paying per-token prices for the routine share of agent work while competitors run that share on hardware they already own.

Over five years, that changes how teams plan coding-agent spend. Today a team picks one model and pays its meter. If compressed models keep closing a few points every two months, the plan becomes a routing table, and the frontier API becomes the specialist you call for hard cases. That counterpositions the per-token vendors, because their meter is exactly what a free local tier removes.

Benchmark Bonsai 2.5 on your own repo

First, pick 20 closed issues from your own repository. Each needs a test that failed before the fix and passed after it. That set is your private benchmark, and it beats any public score for your decision.

Then download the weights from Hugging Face at prism-ml/Ternary-Bonsai-2.5-27B-GGUF. GGUF is the single-file format that llama.cpp, the open-source local runtime, loads. PrismML's docs say to pass --min-p 0 explicitly in llama.cpp and note that low reasoning effort is not supported. Mac users have an MLX build at prism-ml/Ternary-Bonsai-2.5-27B-mlx-2bit.

Next, plan memory above the 5.93 GB3 file. The KV cache, the memory a model uses to hold its context, grows with every token. The model accepts up to 262K tokens, so start at a much shorter context and raise it when a task needs more.

Then reset each issue to the commit before its fix and hand the agent the issue text. Let it edit, then run the tests. Record two numbers per run: tests passed or failed, and minutes taken. Add a note on whether you would merge the patch.

After that, run the same 20 issues through your current frontier API with the same harness. Divide each tier's total cost, review time included, by its merged patches. That cost per accepted change is the one number that decides routing.

Expect breakage on the first pass. Local agents will throw malformed tool calls or loop on some issues, and each one you log becomes a routing rule. Set the escalation line at two failed local attempts, then send the issue up.

Keep the 20 issues and the script. PrismML has shipped a new Bonsai 27B roughly every two months since July, so rerun the set on each release and move the escalation line when the numbers move.

Practise it step by step: Design an AI-Assisted Workflow

The bottom line

The file stayed fixed. Training moved the agent.

Bonsai 2.5 shows that compressed models can gain real agent skill between releases while their footprint stays put. The parent still leads on every coding test, so the frontier API keeps a seat for hard cases. Our advice is to measure cost per accepted change on your own issues and let that number set the escalation line. Keep the harness, rerun it on each release, and move the line when the scores move.

LISTEN · AUDIO BRIEFINGThe conversation · ~11 min
WATCH · VISUAL NARRATIVEAnimated breakdown · ~7 min
PLAY · YOUTUBE

Sources

Numbers in the text point here. Verified means we confirmed it against the source; Reported means the source states it and we could not confirm it independently.

  1. 1prismml.com · PrismML released Ternary Bonsai 2.5 27B on November 24, 2026.6 verified, 3 reported, 1 failed
  2. 2abc27.com · Ternary Bonsai 2 27B, released in September 2026 as the predecessor to Ternary Bonsai 2.5 27B, averaged 37.9 across...1 verified, 1 reported
  3. 3docs.prismml.com · According to PrismML's model card, Ternary Bonsai 2 27B and Ternary Bonsai 2.5 27B both download as a 5.93 GB file.3 verified, 1 reported
  4. 4huggingface.co · The full-precision Qwen3.8 27B model weighs 53.8 GB.2 verified, 1 reported
  5. 5blog.nota.ai · Three equiprobable values carry about 1.585 bits of information, since 2 to the 1.585th power is roughly 3.Reported
  6. 6arxiv.org · Standard FP16 weights use 16 bits each.Verified
  7. 7morningstar.com · Terminal-Bench 2.1, which grades shell work, shows a gap at 60.1 against 70.8, or 10.7 points.Reported

How this piece was checked

Before publishing we pulled 33 claims out of the draft and checked each one against live sources: 13 verified, 8 reported by a named source, 1 did not hold and 9 our own calculations. 2 claims were cut from the copy.

See all 33 claims
  1. 01PrismML reports that Ternary Bonsai 2.5 27B averages 54.2 across SWE-bench Verified, DeepSWE v1.1 and Terminal-Bench 2.1.prismml.comVerified
  2. 02Ternary Bonsai 2 27B, released in September 2026 as the predecessor to Ternary Bonsai 2.5 27B, averaged 37.9 across SWE-bench Verified, DeepSWE v1.1 and Terminal-Bench 2.1.abc27.comVerified
  3. 03PrismML's benchmark table shows the full-precision Qwen3.8 27B parent model ahead of Ternary Bonsai 2.5 27B on every coding test it lists.prismml.comFailed
  4. 04Ternary Bonsai 2.5 27B leads GSQ-RCO IQ3_XXS on tool calling, 77.2 to 75.3, according to PrismML.docs.prismml.comVerified
  5. 05Ternary Bonsai 2.5 27B trails GSQ-RCO IQ3_XXS on coding, 54.2 to 55.5, according to PrismML.prismml.comReported
  6. 06On five tool-calling benchmarks, PrismML reports 77.2 for Ternary Bonsai 2.5 27B against 77.7 for FP16 Qwen3.8 27B, a 0.5-point gap.prismml.comReported
  7. 07On SWE-bench Verified, Ternary Bonsai 2.5 27B scores 75.6 against 80.6 for FP16 Qwen3.8 27B, according to PrismML.docs.prismml.comVerified
  8. 08Terminal-Bench 2.1, which grades shell work, shows a gap at 60.1 against 70.8, or 10.7 points.morningstar.comReported
  9. 09The FP16 Qwen3.8 27B parent averages 60.5 on PrismML's agentic coding benchmarks.abc27.comReported
  10. 10PrismML released Ternary Bonsai 2.5 27B on November 24, 2026.prismml.comVerified
  11. 11Ternary Bonsai 2 27B and Ternary Bonsai 2.5 27B are derived from the Qwen3.8 27B base model.docs.prismml.comVerified
  12. 12PrismML's Ternary Bonsai format adds a 16-bit scale for each group of 128 weights.prismml.comVerified
  13. 13Ternary Bonsai 2.5 27B is released under an Apache 2.0 license as a 5.93 GB download.prismml.comVerified
  14. 14Ternary Bonsai 2.5 27B weights are available on Hugging Face at prism-ml/Ternary-Bonsai-2.5-27B-GGUF.huggingface.coVerified
  15. 15An MLX build of Ternary Bonsai 2.5 27B for Mac is available at prism-ml/Ternary-Bonsai-2.5-27B-mlx-2bit.huggingface.coVerified
  16. 16Removed during the check; its text is not republished.prismml.comCut
  17. 17Removed during the check; its text is not republished.prismml.comCut
  18. 18Ternary Bonsai 2 27B and Ternary Bonsai 2.5 27B both have 27 billion parameters.prismml.comReported
  19. 19According to PrismML's model card, Ternary Bonsai 2 27B and Ternary Bonsai 2.5 27B both download as a 5.93 GB file.docs.prismml.comReported
  20. 20The full-precision Qwen3.8 27B model weighs 53.8 GB.huggingface.coReported
  21. 21Three equiprobable values carry about 1.585 bits of information, since 2 to the 1.585th power is roughly 3.blog.nota.aiReported
  22. 22According to PrismML's documentation, Ternary Bonsai 2.5 27B uses 1.76 bits per weight.prismml.comVerified
  23. 23Standard FP16 weights use 16 bits each.arxiv.orgVerified
  24. 24PrismML said on September 17, 2026 that Ternary Bonsai 2 27B kept 98.2% of its Qwen3.8 27B parent's aggregate benchmark score.prismml.comVerified
  25. 2516 bits divided by 1.76 bits per weight is about 9.1.Koda calculationOur math
  26. 26The 53.8 GB Qwen3.8 27B file divided by the 5.93 GB Ternary Bonsai file is 9.07.Koda calculationOur math
  27. 27In a hypothetical 20-step task where each step succeeds 95% of the time, the whole run succeeds about 36% of the time, since 0.95 to the 20th power is 0.358.Koda calculationOur math
  28. 28In a hypothetical 20-step task where each step succeeds 97% of the time, the whole run succeeds about 54% of the time.Koda calculationOur math
  29. 29In a hypothetical where a failed run takes 15 minutes of review from an engineer costing $60 an hour, each failure costs $15.Koda calculationOur math
  30. 30In a hypothetical where a local tier fails 10 more runs per hundred than a frontier API at $15 per failure, the extra review costs $150 per hundred runs.Koda calculationOur math
  31. 31The remaining agentic coding gap between Ternary Bonsai 2.5 27B and FP16 Qwen3.8 27B is 6.3 points, since 60.5 minus 54.2 is 6.3.Koda calculationOur math
  32. 32If the next Bonsai release closes half of the 6.3-point gap, its agentic coding average would land near 57.4, about 95% of the FP16 Qwen3.8 27B parent.Koda calculationOur math
  33. 33On PrismML's roughly nine-to-ten-week release clock, the next Bonsai release would arrive around late January 2027.Koda calculationOur math

How we check · Audit KODA-20261125-C270329AFA0D

Browse the Deep Dive archive

Get the morning Signal

242 editions so far, one a day. Unsubscribe anytime.