Back to Blog
    AI & AutomationNov 25, 2026

    Ternary Bonsai 2.5: A 27B Coding Agent That Runs on Your Laptop

    Amir

    Amir Farid

    7 min read

    Ternary Bonsai 2.5: A 27B Coding Agent That Runs on Your Laptop

    Ternary Bonsai 2.5: A 27B Coding Agent That Runs on Your Laptop

    PrismML's Ternary Bonsai 2.5, announced on 24 November 2026, is a 27-billion-parameter coding model that fits in 5.9 GB and runs entirely on your own hardware — a laptop, a Mac, even an iPhone. Built on Qwen3.8 27B, its weights are ternary: every weight is -1, 0 or +1, which shrinks the model to a fraction of its usual size. It is free to download under the Apache 2.0 licence. For businesses that cannot send source code or client documents to the cloud, that combination matters: an AI coding agent that never phones home.

    What Ternary Bonsai 2.5 actually is

    Ternary Bonsai 2.5 succeeds PrismML's Ternary Bonsai 2 27B, aimed at agentic coding and private knowledge work. It runs on NVIDIA and Intel GPUs through llama.cpp, and on Mac, iPhone and iPad through Apple's MLX. Read the full announcement in PrismML's own press release. If you are weighing AI agents for small business automation, the on-device option changes the privacy and cost maths completely.

    What ternary weights mean

    In a normal model, each weight is a precise decimal number, typically stored in 16 bits. In a ternary model, each weight is rounded to -1, 0 or +1. A normal 27B model needs roughly 50 GB of memory — a server or a high-end workstation — while 5.9 GB runs on hardware many businesses already own. That is the whole bet: capable coding without renting cloud GPUs or sending your code away.

    The benchmark numbers — and how to read them

    A laptop running a local coding agent

    PrismML reports Bonsai 2.5 averages 54.2 across agentic coding benchmarks — SWE-bench Verified, DeepSWE v1.1 and Terminal-Bench 2.1 — against 37.9 for its predecessor. On tool calling it claims 82.2 across AppWorld and τ³-Bench, against 60.2 before. Independent coverage, including 9to5Mac's report, repeats the same vendor figures.

    Every figure here is PrismML's own claim, not independently verified, and no outside lab has yet reproduced these numbers. The most useful figure is the one PrismML did not hide: 75.6 versus 80.6 on SWE-bench Verified against full-precision Qwen3.8 27B. That is the cost of compression: a five-point drop in exchange for a model that runs locally on a laptop.

    What an on-device coding agent can actually do

    An agentic coding model does not just autocomplete a line. It inspects a repository, edits code, runs the tests and refines the fix — looping until the task is done. That is what the benchmarks above measure: multi-step work, not single-shot generation. Bonsai 2.5 does this loop entirely on your machine, with your private repository never leaving the building.

    For a small software team, the practical uses are fixing routine bugs, writing tests, updating dependencies, drafting documentation, and reviewing pull requests. None needs the most powerful model — just one that is good enough, always available, and allowed to see the code. If you are thinking about how to build a custom AI chatbot, a local coding agent speeds up the grunt work without exposing your codebase. Cloud coding agents charge per token or per seat; a local model costs nothing per token. See our guide to AI agent development costs in the UK for the cloud side of that maths.

    Private knowledge work: the second use case

    PrismML's second pitch is a knowledge assistant that turns a folder of documents into structured analysis, without uploading the folder anywhere. Think of a law firm, an accountancy practice, or a clinic. These businesses cannot use cloud AI on their core data, because the data is not theirs to share.

    This is where on-device models become a compliance tool. A local model can read a folder of contracts, extract the key dates and obligations, and produce a summary, and the documents never cross the network. The same pattern applies to RAG chatbots for business: a local model removes the cloud from that chain entirely. Best fits: regulated work such as legal, finance and healthcare, and agencies whose contracts forbid sharing client material with third-party AI services.

    On-device vs cloud coding agents: an honest comparison

    Bonsai 2.5 does not beat the best cloud coding agents. Cognition's SWE-2 Flash, the cloud agent behind Devin, and models like Kimi K3.1 Pro score higher on the hardest benchmarks. If your priority is maximum capability and your code may leave your network, the cloud still wins.

    What Bonsai 2.5 wins on is everything else: privacy, cost, offline availability, and control. The right comparison is not "which model is smartest" but "which model is allowed to see the work". For many businesses, that second question rules out the cloud entirely.

    • Capability: cloud agents lead on hard benchmarks; Bonsai 2.5 is close enough for routine work, per PrismML.
    • Privacy: on-device wins outright — code and documents never leave your hardware.
    • Cost: cloud charges per token or per seat; local costs nothing per token.
    • Control: local models can be frozen and versioned; cloud models change under you.

    What it costs and how to run it

    The model itself is free: PrismML released Bonsai 2.5 under the Apache 2.0 licence on 24 November 2026, with no licence fee and no per-token charge. The real cost is hardware. A Mac runs it through MLX; a Windows or Linux machine with an NVIDIA or Intel GPU runs it through llama.cpp. PrismML also offers paid domain post-training, tuning the model on your own codebase or documents.

    Setup is a download, not a project — the 5.9 GB footprint is small enough to try in an afternoon. Pick one real, bounded task — a bug fix in a repository you know well — and compare the result against what your team would produce. Decide in advance what "good enough" looks like, and review every change before it is committed. Businesses planning a larger build should read our guide to custom software development costs in the UK first — our custom software development service covers this kind of evaluation.

    The limits — and what this means for your business

    Bonsai 2.5 is a 27B model, and that sets a ceiling. It will struggle with the hardest architectural work and large refactors across many files. The benchmark figures are PrismML's own claims; treat them as a signal, not a guarantee, until independent testing confirms them.

    There is also a governance question: a local model is only private if the machine it runs on is secure, and only governed if someone watches what it changes. Give it limited access, review its work, and keep an audit trail. The same discipline applies to governed AI agents and sandboxed agent safety. Do not expect it to replace your developers: its job is the routine work, so humans can do the work that needs judgement — the same lesson as the difference between a chatbot and an AI agent.

    If your code or documents cannot go to the cloud, Bonsai 2.5 is the most interesting release of the month. Download it and test it on real work. If it clears your bar, you have a coding assistant that costs nothing per token and leaks nothing. If you want help evaluating it, Coheser builds AI agents for small businesses, voice agents and AI calling agents. Start with the trial; decide with evidence.

    Frequently asked questions

    What is Ternary Bonsai 2.5?

    A 27-billion-parameter coding model from PrismML, announced on 24 November 2026. Based on Qwen3.8 27B, it uses ternary weights (-1, 0, +1) and fits in 5.9 GB, so it runs on a laptop rather than a server.

    Is Ternary Bonsai 2.5 free?

    Yes. PrismML released it under the Apache 2.0 licence, free to download from 24 November 2026. You pay only for the hardware; PrismML charges separately for domain post-training.

    How good is it at coding?

    PrismML claims 54.2 across agentic coding benchmarks and 75.6 on SWE-bench Verified, against 80.6 for the full-precision Qwen3.8 27B. Those are PrismML's own claims, not independently verified.

    Can it really run on a laptop?

    Yes, according to PrismML. The 5.9 GB footprint runs on NVIDIA and Intel GPUs via llama.cpp and on Mac, iPhone and iPad via MLX.

    Should my business use it instead of a cloud coding agent?

    Use it if your code or documents cannot leave your network, or if per-token cloud costs are a problem. Use a cloud agent for maximum capability where your data may leave. Many teams use both.

    #Ternary Bonsai 2.5#PrismML#on-device AI#coding agents