Local AI · 19 min read

Inkling 2 Mini: How well does a local coding model run on an ordinary computer?

Coding with AI for free, offline, and without sending your code to the cloud? I had the local Inkling 2 Mini build the same app on a MacBook with an M5 and 32 GB of memory, and compared it with Haiku, Sonnet, and Opus. Given a spec from a strong model, it did as well as Opus, but on its own it makes more mistakes, and it won't give you savings or privacy for free.

Key takeaways 6
  • Inkling 2 Mini (MoE, 26 billion parameters, 15.6 GB) builds a working app on a MacBook with an M5 and 32 GB of memory, just far slower than cloud models
  • With a detailed spec from Opus 5.5, it passed all 170 tests, just like Sonnet and Opus, taking 58 minutes instead of two to three
  • Without a spec, it finished the app in 17 minutes, but with edge-case bugs and a security hole (javascript: links)
  • When it wrote the spec itself, quality did not improve significantly: the big jump comes from a spec written by a strong model, and that means sending your task description to the cloud
  • You won't save money: the cloud-based Haiku built a comparable app for four cents in three minutes
  • A local agent needs free memory with no swapping, plus higher limits on context, response length, and number of steps than OpenCode and Locals set by default

Coding with AI for free, offline, and without sending your code to the cloud. It sounds great, but most guides to local models assume a Mac Studio costing hundreds of thousands of crowns or a graphics card with 48 GB of memory. What about a much more common MacBook with a base M5 chip and 32 GB of memory, and the brand-new Inkling 2 model?

My thesis was simple: someone smart, say Opus 5.5, does the analysis, and then an ordinary workhorse, a weaker model that just follows an implementation spec, can do the coding. A local model in the form of a weaker “Haiku” might be enough for that. And so might my laptop, with its still perfectly adequate 32 GB of memory. Because, honestly, if local AI is going to work for ordinary people, it will have to work on ordinary machines.

The short answer: a local model on such a laptop can build a real application today. When a strong model writes it a detailed spec, the result is as good as one from Claude Opus. But that strong model is in the cloud, so you partly lose the privacy that usually motivates trying a local model in the first place. And when Inkling writes the spec itself (in its default mode, with thinking off), the result doesn’t improve fundamentally: one serious bug goes away and tests appear, but the key blind spots remain. Nor do you save money on an application of this size: the cheap cloud Haiku built a comparable application for four cents and three minutes.

So I ran a simple, automated test. I came up with an application and had it built by models from the Anthropic family (for reference) and by Inkling 2 Mini, the largest Inkling model that fits on my laptop.

Let’s start with the test parameters:

The setup

  • Computer: MacBook, Apple M5 (base variant), 32 GB unified memory.
  • Model: Inkling 2 Mini, a MoE model with 26 billion parameters. In the 4-bit MLX version, including a small helper model for speculative decoding, it takes up 15.6 GB. The full Inkling 2 is 393 GB, so it is out of the question on a laptop.
  • Runtime: Locals, which serves the model through an OpenAI-compatible interface.
  • Agent: OpenCode 1.18.32, launched via locals code. Locals tests this path the most, and unlike Claude Code, OpenCode has a small system prompt, which matters for a local model.

For comparison, three cloud models did the same work in Claude Code: Haiku 5.5, Sonnet 5.5, and Opus 5.5. There is an important difference in environment, which I’ll return to in the limitations: Claude Code uses its own system prompt and thinking by default (for example, Opus used almost 30 thousand tokens of reasoning when writing the spec, and Haiku without a spec used 25 thousand), whereas Inkling ran in OpenCode with its default setting, without thinking, even though Locals offers a thinking variant.

The test application

“AI News” is an RSS and Atom feed aggregator in Python (Flask, SQLite). It has six parts: a feed parser, URL normalization and deduplication, storage with filters and pagination, rule-based tagging, a web interface, and a JSON API with a command-line interface. The test feeds contain deliberate traps: time zones, items without a date, HTML in teasers, tracking parameters in URLs, and the same article in three sources under different URLs.

I tried three paths.

Path A, with a spec. Opus first wrote the product brief, an architecture with exact interfaces, a breakdown into six tasks with examples of edge cases, and 99 visible tests. It took 10 minutes and cost USD 2.23 at API prices. Each model then received exactly the same text and implemented it task by task, each in a fresh session. Small models lose the thread in long conversations, so the agent starts with a clean head every time and orients itself only by the documentation and the code.

Path B, without a spec. The model got only the basic brief: the repository context and six bullet points of what the application should do. It designed the interfaces, the breakdown of work, and the tests itself, all in one session.

Path C, everything local. Like path A, except that instead of Opus, Inkling itself wrote the spec, from the same brief.

Before that there was a short warm-up task (converting Czech text into a URL slug). In three runs Inkling finished it every time with the same off-by-one error at the length boundary. I carried that lesson into the brief for Opus: the spec must contain concrete examples of edge cases. A small model tests exactly what it sees.

How I measured quality

Three independent views, because none is enough on its own.

  1. Hidden tests. 71 acceptance tests that the agent never saw, verified against an independent reference implementation. They only work for path A, though: they call the interfaces designed in Opus’s spec. The solutions from paths B and C have their own.
  2. Black-box comparison. For all the solutions I ran the fetch over the same test feeds and put the same ten queries to the API (filters, search, date, invalid input, pagination), plus an error page and an XSS attempt. I compared the responses with the reference implementation. Because the reference was created from Opus’s spec, some of the deviations in paths B and C are not hard errors against the brief, but choices in places the short brief left open.
  3. Blind review by other models. So that the results wouldn’t be judged only by Claude, which had itself written three of the variants, I gave the main batch of eight solutions anonymously and in random order to Codex (GPT-6.2) and Gemini 4 Neon to evaluate (two more variants were added later with the same brief, so ten solutions in total). Both got the same brief and the same criteria, and were allowed to run the code. Neither knew which solution came from whom, but any docs/ and specs/ folders remained in the directories, so the reviewer could tell the difference between a solution built from a detailed spec and one built without it.

Results, path A: with a spec prepared by Opus 5.5

ImplementerHidden + visible testsTimeImplementation costTotal including spec
Inkling 2 Mini (local)170/17058 min0USD 2.23
Haiku 5.5169/1703.4 minUSD 0.06USD 2.29
Sonnet 5.5170/1701.9 minUSD 0.66USD 2.89
Opus 5.5170/1702.9 minUSD 1.40USD 3.63

Inkling passed everything, as did Sonnet and Opus. Haiku stumbled on a single hidden test: it didn’t strip the uppercase tracking parameter FBCLID from the URL, even though the spec explicitly says names are compared in lowercase. In an earlier pilot run, Haiku passed the same test (170/170), so this is a random fluctuation of a single run.

With a good spec, then, the differences between models almost vanish. The local model on a laptop delivered the same result as Opus, just twenty times slower.

Results, path B: without a spec

ModelTimeCostOwn testsDeviations from reference
Opus 5.55.3 minUSD 1.38711
Haiku 5.53.4 minUSD 0.04190
Sonnet 5.51.1 minUSD 0.21114 + exception on invalid port
Inkling 2 Mini (local)17 min0195 + exception on invalid port

Here the tables turned. Opus built the whole application for USD 1.38, which is cheaper than the spec alone cost. And Haiku built it for four cents without a single deviation from the reference behavior: the same articles, tags, ordering, and filters, including accent-insensitive search. It’s only fair to add that this is a single run, and that Haiku used almost 25 thousand tokens of thinking in it (whereas Inkling ran without thinking).

Inkling also built the application, in 17 minutes and with all six parts. It wrote tests, ran them, and they passed. In the black-box comparison, though, it ran into edge cases. Some of them are clear errors: the date filter dropped the entire last day, an invalid date in the API didn’t return a 400 error, and a synthetic input with an invalid port (:abc) caused an unhandled exception during normalization. Other deviations from the reference are partly down to the short brief, which didn’t explicitly mandate them: the brief asked for diacritics handling in tagging but not explicitly in full-text search (so “zakon” didn’t find “zákon”), it didn’t specify whether to keep the older or newer record for duplicates, and of the tracking parameters it named only utm_*, not fbclid and gclid. Sonnet was the fastest, but it rushed the job in just three turns: only 11 tests, no manual run of the application, and similar deviations, including the exception on an invalid port.

Results, path C: everything local

Path A has a catch. The spec is written by a cloud model, and if it writes it on top of an existing project, it has to read that project’s code. That code then leaves your computer anyway. So I tried a third path: Inkling got exactly the same spec-writing brief as Opus, and then built the application from its own spec, again in six tasks in clean sessions. Nothing left the computer.

It took Inkling 80 minutes: 50 minutes for the spec (Opus needed 10) and 30 minutes for the implementation, though with 1.5 to 2 GB of swap the whole time, so the time isn’t directly comparable to a clean run. It wrote the PRD, the architecture, six task briefs, and 64 tests, and then finished the application from them without trouble.

Compared with path B, quality didn’t shift fundamentally. For both independent reviewers the number of serious bugs dropped from 2/2 to 1/1, and test coverage and code structure improved, but the overall grade (5 / 6) stayed the same, and both reviewers again found the same security hole involving the javascript: link. In the black-box comparison, similar deviations recurred as in path B: the newer record kept for duplicates, search without diacritics not working, gclid and fbclid remaining in URLs, and the API having no date filter. On that last point it’s only fair to admit a mistake in my brief: in item 5 it listed the web filters only as (zdroj, tag, hledání), and in item 6 it asked the API for “the same filters”, while the date range was mentioned only for storage. Opus figured it out for the API on its own; Inkling stuck to the text literally.

Inkling 2 MiniTimeCodex / GeminiSerious bugsWhat left the computer
A: from Opus’s spec58 min (+10 min Opus)6 / 80 / 0the brief (and, for an existing project, the code)
B: without a spec17 min5 / 62 / 2nothing
C: from its own spec80 min (with swap)5 / 61 / 1nothing

So the main jump in quality doesn’t come from the spec-driven approach itself, but from having a strong model write the spec. The fully local path C did add tests and removed one serious bug, but in several times the time it didn’t remove the model’s blind spots. It remains an open question how it would turn out if Inkling wrote the spec with thinking turned on; here, unlike Opus, it ran without it.

What the independent reviewers said (Codex GPT-6.2 and Gemini 4 Neon)

Overall grade 1–10 (Codex / Gemini), and the number of serious (high) and medium (medium) bugs they found:

SolutionCodexGeminiSerious bugsMedium bugs
Opus with spec780 / 04 / 4
Sonnet with spec780 / 05 / 5
Haiku without spec780 / 07 / 2
Inkling with spec680 / 06 / 5
Haiku with spec680 / 06 / 4
Opus without spec681 / 010 / 5
Sonnet without spec671 / 18 / 5
Inkling without spec562 / 28 / 5
Inkling with its own spec*561 / 18 / 5
Bonsai 2.5 27B without spec*,**432 / 710 / 5

* Evaluated separately, after the main batch, with the same brief and criteria.
** The Bonsai run was ended by OpenCode’s 40-step limit in the middle of fixing tests – see the next section.

Both reviewers agreed on what the earlier measurements also showed: the solutions built from a spec are close together, at the bottom are Sonnet without a spec and both fully local Inkling solutions, and Haiku without a spec is among the best. Gemini is more lenient and gives most of them an eight, while Codex is stricter, but they rank them the same way. If it puzzles you that Haiku without a spec scores a point higher than Haiku with Opus’s spec, that is within the noise of a single run – and the view of medium bugs softens the picture: for Codex, Haiku without a spec had seven of them (including the whole import crashing on one bad URL, or a 500 error on 1001 words in a query), more than Opus or Sonnet with a spec. The solutions with a spec also have more code, and so more places for bugs, and all four path A solutions inherited several medium bugs directly from Opus’s spec (overwriting merged sources when one feed is down, HTTP 500 on extreme values of page/id, and http_fetcher, which doesn’t restrict urllib to http/https, so it lets file:// through).

The reviewers also found things I had missed. Both pointed out a security bug in both fully local Inkling solutions: the article detail inserts the javascript: address into the link, so a forged feed can run a script. Codex found overly eager merging of similar titles in Opus without a spec: stories about GPT-4o and GPT-5o would be merged into one. Gemini independently uncovered Inkling’s bug in the date filter.

For comparison: another local model, Bonsai 2.5 27B

Inkling isn’t the only model that fits into 32 GB. I also tried Ternary Bonsai 2.5 27B from PrismML. It’s a dense model with 27 billion parameters (based on Qwen3.8-27B) whose weights are compressed down to just three values. It takes up 7.5 GB, half of Inkling. It runs in the vendor’s modified version of llama.cpp, not in Locals, but the OpenCode agent and the brief were the same as for Inkling in path B.

Inkling 2 MiniBonsai 2.5 27B
Memory15.6 GB7.5 GB
Generation (short benchmark)10.7 tokens/s10.7 tokens/s
Prompt processing (~2–3k tokens)287 tokens/s (first cold run 151)155 tokens/s
Prompt processing (~9–10k tokens)253–271 tokens/s121–125 tokens/s

In the short benchmark it generates equally fast, but it reads the prompt at roughly half the speed (the ~2× ratio is also confirmed by llama-bench, even though in the API test Bonsai got a somewhat longer input because of different tokenization). Inkling is a MoE and activates only 3.4 billion parameters per token, whereas Bonsai activates all 27 billion. And because the agent sends the model the entire conversation so far at every step, slow prompt reading adds up as the work progresses.

The first attempt ended after 73 minutes without a single line of code. Bonsai is a thinking model, and even at a medium thinking level it produced 8 to 16 thousand tokens of reasoning for every agent step. The final response hit the 16-thousand-token ceiling and OpenCode ended the session. After I turned thinking off (Inkling ran the same way), the agent worked normally: in 53 minutes it wrote the whole application and 66 tests, and started fixing failing tests. At step 40, though, it was stopped by the default limit in the OpenCode configuration (steps: 40 for the agent coder), which took away its tools in the middle of fixing the parser and ended the session. At that point 21 tests remained unfixed.

Some problems in the code it had already written clearly lay with the model, though: in URL normalization it deletes the parameter id (so two different articles with ?id=42 and ?id=43 merge into one), in the article detail it lets through a javascript: link, and in pagination it inserts parameters from the URL directly into JavaScript in onclick (a second path for XSS). The web form also sends an empty parameter when no source is selected and returns an empty overview. Searching for “zakon” doesn’t find “zákon”, and the date filter is missing in the API (which, as mentioned above, is partly related to the brief).

So what got into the blind review was an unfinished run cut off by the step limit, which significantly pulled down its grades (4 and 3; Gemini gave it 2/10 for tests precisely because of the 21 failing tests). On top of that it swapped 1.4 to 2.2 GB during the run, ran with temperature 1.0, and without speculative decoding (MTP), which the model supports. So no fair verdict on Bonsai’s quality can be drawn from this single run – but it does show two practical things: a smaller model in memory doesn’t mean a faster agent, and with thinking models you have to watch the thinking budget (or turn it off), otherwise the agent drowns in its own reasoning.

Where the local model’s time goes

I broke down the 58 minutes from path A by individual model calls. The tools (tests, reading files) took six seconds in total. Everything else is the model, but for two completely different reasons.

Tasks 1 to 5 (30 minutes): slow writing. When writing Python itself, the model generates roughly 16 to 19 tokens per second (faster than the 10.7 tok/s in the short benchmark locals bench, because speculative decoding hits more tokens at once on predictable code). But the agent always writes the whole file at once, typically 2 to 3 thousand tokens, so writing a single file takes two to three minutes. Generation accounts for 63% of the time, prompt processing for 23%, and the rest is overhead. The prompt cache works well: 85 to 95% of the context doesn’t have to be recomputed.

Task 6 (28 minutes): a loop caused by the environment. The code was finished and the tests passed after six minutes. The agent then wanted to try out the application by hand and delete a temporary database outside the project directory. OpenCode forbade it and returned an error message 65 KB long, roughly 23 thousand tokens. In it, it had listed all the permission rules, including hundreds of lines it had created itself for my Claude Code skills in the home directory. The context thereby overflowed the 32-thousand-token limit, OpenCode started compaction (the model summarizes the conversation so far, 4 to 6 minutes on this machine), and afterwards the agent forgot that deletion is not allowed. It tried again. Three times in total.

Task 6Time
three compactions13.6 min
three calls with the giant error message7.6 min
actual work7.3 min

Without this loop the run would have taken roughly 37 minutes. For path B I fixed the environment (see below), and Inkling handled the whole application in one session without a single compaction, with a context of at most 26 thousand tokens. When writing the spec in path C, the context grew up to 40 thousand, i.e. above the original ceiling. Without a raised limit, compaction would have come again there.

Snags along the way (briefly)

Swap kills the agent, and the benchmark won’t show it. I launched the first attempt on a Mac where Spotify, Safari, and a few other apps were running. Swap was full and Inkling didn’t finish even the first task in 16 minutes. After a restart and with the apps closed, it handled the same task in 4.7 minutes. A 15.6 GB model leaves little headroom on a 32 GB machine. Practically, forget about being able to use such a laptop normally, keep a model running sensibly, and surf the web at the same time.

The default limits of the agent and server aren’t built for long work. For paths B and C I had to work around several ceilings that OpenCode and Locals hard-code:

  • raise the context limit in OpenCode from 32,768 to 131,072 tokens,
  • disable loading global skills from ~/.claude and ~/.agents (OPENCODE_DISABLE_CLAUDE_CODE=1, OPENCODE_DISABLE_EXTERNAL_SKILLS=1), otherwise error messages inflate the context by tens of thousands of tokens,
  • when writing longer documents in path C, raise the Locals server’s response ceiling from the default 4,096 to 16,384 tokens (--max-tokens 16384), otherwise the first longer document got cut off and the session ended without a single file,
  • and, as the Bonsai run showed, watch the steps: 40 limit for the agent coder, which simply cuts off longer debugging within one session.

What follows from this

  1. A local model on an ordinary laptop builds a working application. Without guidance, in a quarter of an hour, but with more edge-case bugs than the best cloud runs, including a security one.
  2. A spec from a strong model brings it up to Opus’s level. From it, it passed all 170 tests, and the independent reviewers ranked it among the cloud models.
  3. For an application of this size you won’t save money. The spec cost more than if Opus had built the roughly thousand-line application directly, and Haiku built a comparable application for four cents. For a smaller greenfield project the cheapest path is cloud Haiku without a spec (though for long-term daily work on a larger project the economics may come out differently – you just always pay with waiting time).
  4. Privacy and quality are so far at odds. The main jump in quality comes from a spec from a strong cloud model, and that model has to see the brief and, for an existing project, the code. The fully local path sends nothing out, but without thinking turned on it brought only partial improvement (1/1 instead of 2/2 serious bugs, and more tests) and didn’t remove the security bug. You can’t deploy the result without thorough human review.
  5. A combination makes sense when the data is sensitive, not the code. A spec based on requirements (a new project, a description without code) can be produced in the cloud, while the implementation, debugging against real data, configuration with passwords, and databases stay on your computer. The same goes for closed environments where the spec is created outside and the implementation inside.

If you try a local model: close other applications, watch the swap, raise the limits on context, response length, and the agent’s step count, and shield it from your global settings and skills. With thinking models, watch the thinking budget, or turn it off for routine agent steps.

Limits of the test

  • One run on one small application (n = 1). A difference of one point in a grade or one test may be chance (as 170/170 vs. 169/170 for Haiku or Sonnet’s three-turn run show); what is reliable are larger differences and rankings on which different methods agree.

  • Two different agents and different thinking. The cloud models ran in Claude Code with thinking turned on (up to 30 thousand tokens of reasoning), the local models in OpenCode without thinking. The results therefore compare a combination of model + agent + thinking mode, not an isolated model.

  • Unequal memory and configuration conditions. Inkling in path A ran without the environment fix (the compaction loop), in path B with the fix and little swap, and in path C with the fix but with 1.5 to 2 GB of swap the whole time. Bonsai ran with 1.4 to 2.2 GB of swap, with temperature 1.0, without MTP, and its session was ended at step 40 by the OpenCode limit.

  • Black-box comparison and blind review. The black-box comparison is coarser than the 71 hidden tests and measures paths B and C against a reference built from Opus’s spec, while the short brief left some details open (the date filter in the API, fbclid/gclid, the duplicates rule). The blind review didn’t know the authors, but it left docs/ and specs/ in the repositories, so it wasn’t blind to whether a solution was created from a detailed spec.

What’s next

  • repeated runs of all variants on a clean machine (swap = 0), path A for Inkling with the fixed environment,
  • a fair re-measurement of Bonsai (higher step limit, swap = 0, lower temperature, MTP, and possibly a low thinking level),
  • test the thinking variant of Inkling, especially in path C (spec written locally),
  • run at least Haiku in OpenCode too, to separate the effect of the model from the effect of Claude Code,
  • sharpen the ambiguities in the short brief and, before the next blind review, remove docs/ and specs/,
  • locals tune, tuning for a specific chip (Locals measured it mainly on the M5 Pro),
  • a larger application or modification of an existing project, where a spec might pay for itself,
  • a phase where the output of a cheaper model is reviewed and fixed by a stronger one – and a local check of whether Inkling finds bugs in its own code when given it to review as someone else’s.

Patrick Zandl trains teams in Claude Code and agentic software development in Prague and writes about what actually works in real-world AI-assisted projects. Follow on LinkedIn

Read next

Get the next one by email

Every Tuesday: what changed in Claude Code, Codex and other coding agents, plus new articles. No spam.