S-SCOTTEK← HomepageNewsGuidesBuyingTeamForumSupportlog in · sign up
local-ai 2026-11-27

Bonsai 2.5: 6GB Local AI Coding Agent That Fixed Real Bugs

This companion guide follows the video Bonsai 2.5: 6GB Local AI Coding Agent That Fixed Real Bugs, a 432-second walkthrough uploaded 2026-11-27 that skips the easy installer and runs the 27B coding agent the manual way with the llama.cpp CLI, the 5.99GB PTQ1_0 file, and the Prism fork runner, then makes it fix real bugs.

This video is a genuine sequel to the easy 3-command install companion, which covers the official Bonsai-demo setup.sh path that pulls the PQ2_0-mtp build at about 7GB. If you want the simple path, start there. Everything below is the harder manual CLI path from this video, kept in video order, with video claims attributed to the video and added research labeled where it appears. YouTube auto-subtitles failed for this video with a 429 error, so the official video description is used here as the transcript-equivalent source for the video's claims. I did not re-run any of these steps while writing this guide, so treat every step below as untested on your machine until you verify it yourself.

Before you start

Fetch a runner that accepts the file

These steps follow the video order and are untested here, with all results attributed to the video. First map the box, then fetch the stock runner, then replace it with the fork that actually loads this file.

The stock b12720 runner rejected the model file in the video with an invalid ggml type 143 error at exit 1, and the video reports the same rejection from b12721 and from llama.app b12652, so none of the stock runners in the video loaded this file. The working runner is the Prism fork runner tarball, which passed its version check where stock failed. Extract it into ~/llamacpp the same way and re-run the version check before touching the model.

Download the 5.99GB model and gate it

Untested here, video order, video-attributed. The video downloads the PTQ1_0 quant file from the Ternary Bonsai 2.5 27B GGUF repo with retries and treats the byte count as a hard stop gate.

The model repo is ungated, so no account or token is needed for the fetch itself. The 5.99GB figure is the file on disk, not the loaded footprint, and the loaded number comes later in this guide.

Step 3 download card showing the curl fetch of the 5.99GB quant file with the exact byte-count stop gate plus the size and sha256 verification
Step 3 download card showing the curl fetch of the 5.99GB quant file with the exact byte-count stop gate plus the size and sha256 verification (Still from the walkthrough video.)

Make it work and fix real bugs

Untested here, and all runs and numbers in this section are the video's own, attributed to the video. The smoke test is a fizzbuzz prompt with pinned sampling, and the video reports exit 0 at about 1.9 prompt and 1.5 generation tokens per second on its CPU floor, which is a single local run and not a benchmark.

Then the real workflow starts. The video feeds the model a buggy_sum.py carrying a range(n) bug, and the fixed program passes all 3 asserts at exit 0, which is the video's proof the agent did actual debugging rather than reciting. The pytest story is told as a before-and-after pair: 3 passed and 1 failed at exit 1 naming test_mul before the fix, and 4 passed at exit 0 after the model names the buggy line and its patch is applied. The long-context check is a 3374-word summary of heapq.py naming all 15 functions at exit 0.

Step 7 regression card showing pytest red with the mul off-by-one, the model naming the buggy line and patch, and green with 4 passed
Step 7 regression card showing pytest red with the mul off-by-one, the model naming the buggy line and patch, and green with 4 passed (Still from the walkthrough video.)

The same bench is then rerun on a Tesla T10 GPU in the video, reporting 550.5 prompt and 44.6 generation tokens per second against the 1.9 and 1.5 CPU floor, and those numbers are the video's on its hardware, not mine and not a benchmark you should expect to match.

Count the footprint and check the sources

Untested here, and this section mixes one video measurement with added research labeled as such. The video's footprint honesty is explicit: the file is 5.99GB on disk but the loaded process peaks near 7.3GB of RSS from the KV cache and runtime, so budget RAM above the file size. Any density math in the video, such as bits per weight from the file size, is the video's arithmetic and not a benchmark of quality.

Step 11 docs-walkthrough card labeling the MLX repo page and the vendor blog speed section as docs only, never run on the bench
Step 11 docs-walkthrough card labeling the MLX repo page and the vendor blog speed section as docs only, never run on the bench (Still from the walkthrough video.)

Added research, not video footage: the weights live in the Ternary Bonsai 2.5 27B GGUF repo and the easy installer lives in the Bonsai-demo repo, with the release story told in the Introducing Ternary Bonsai 2.5 27B post and day-one discussion in the Hacker News thread. The vendor-reported figures of 75.6 on SWE-bench Verified and 90.5 on AppWorld are vendor claims from those pages, aired with that label and never as tested fact. The video also walks through the MLX repo page and the vendor blog speed and demo sections as a docs tour only, which was not run and stays untested. The verdict in the video is data-driven on the video's own numbers: the CPU-first runs prove the agent works locally, and the GPU rerun shows how much headroom a card adds, and none of that verdict data is mine.

Watch the walkthrough

Watch on YouTube

Webster the press owl — click to chat