# Local First AI > Experiments on running AI on hardware you own: where the data is stored, how it is processed, and what it costs. Every empirical claim is backed by a recorded experiment you can re-run. Written for people who build on hardware they own, and for firms that have to prove those answers to an auditor. Failed runs are published too. Each post below links to a plain Markdown copy; the HTML page is the reference. Feed: https://localfirstai.eu/index.xml · Sitemap: https://localfirstai.eu/sitemap.xml ## Start here - [For builders](https://localfirstai.eu/builders/index.md): For someone who runs models on their own hardware: four things the experiments here found and one from a trial with cloud agents, each with its numbers and the post that carries the record. - [For firms](https://localfirstai.eu/firms/index.md): For a firm whose documents would go through an AI: what we measured about where the data goes and what can go wrong, and what a local model did on our test bed. - [For AI agents](https://localfirstai.eu/agents/index.md): For an AI agent reading this site on someone's behalf: what is here, where the Markdown is, and how to quote a result. Every post in one file: https://localfirstai.eu/llms-full.txt ## Posts - [My 2026: I Set Out to Build a Machine That Learns](https://localfirstai.eu/posts/2026-11-28-my-2026/index.md) (2026-11-28): A summary of my year: how a property app showed me that data is the key, why I bought a Mac mini and invented Nestor, what Hofstadter, Minsky, Petukhov, Vygotsky, Duncker and Gibson taught me, and how hard a machine that learns turns out to be. - [More Loop Passes Made Thinking Machines' Research Model Right More Often for About the Same Written Reasoning](https://localfirstai.eu/posts/2026-11-23-more-loop-passes-more-right-answers/index.md) (2026-11-23): Thinking Machines' variable-loop research model at one to five passes, on agent-style tool work, on a Mac mini. More passes gave more right answers (79 of 96 at one pass, 92 at three) for about the same amount of written reasoning. From three passes up, six of the seven wrong answers were turns cut off at our token cap. Inkling 2 Mini against gemma4:26b on the same jobs, with the caveat that sets the size of that claim. Made-up jobs, one run per setting, everything public. - [A Lawyer's Digital-Money Evening in Marbella Had AI Hardware on a Table](https://localfirstai.eu/posts/2026-11-20-ai-hardware-on-a-table/index.md) (2026-11-20): If your firm's documents go through an AI, two questions decide how much of that work is yours: whose machine it runs on, and who decides what it does. On 19 November The Bridge33, an invite-only evening on digital money in Marbella, put both in front of investors and founders. The argument came from the lawyer who organised it, and the machines belonged to the people who showed them. - [Tests One AI Agent Wrote for Another Were Wrong in 7 of 13 Runs](https://localfirstai.eu/posts/2026-11-19-tests-one-agent-wrote-for-another/index.md) (2026-11-19): The usual advice for coding agents is to write the test first and let the agent work until it passes. A record of thirteen runs on real work, with a table of the defects: the test was wrong in about half of them, one fix passed its tests by stepping aside from the question, and a reviewer who was not given the worker's report found most of what was found. - [Prompt Injection on a Local Model: What Worked, What Did Not, and What the Fix Costs](https://localfirstai.eu/posts/2026-11-10-prompt-injection-on-a-local-model/index.md) (2026-11-10): Three things measured on a local model anyone can run (gemma4:26b): which kind of injected text took the model's contribution to zero and which did not, why a design where the model can only add points did not protect it, and what a fix in the code around the model costs. Synthetic scam messages, six injected paragraphs, two runs on one day, everything public. - [We Measured a Values Fine-Tune. It Removes the Behaviour, Adds No Knowledge, and Costs Nothing on Our Translations.](https://localfirstai.eu/posts/2026-11-08-we-measured-a-values-fine-tune/index.md) (2026-11-08): Nous Research's Arete-27B, Qwen3.8-27B post-trained to drop Chinese state-aligned answers, against its base on a Mac mini, both Q4_K_M, graded blind. Three things proved: the fine-tune does what it says and survives the community quantisation (any propaganda 24.3 % → 1.4 % on 70 of the vendor's prompts, their judge prompt); it costs nothing on 60 Soviet-era translation units it was never trained for; it adds no knowledge, it removes a denial template. - [When Code Is Cheap, Choose Your Dependencies by Their History](https://localfirstai.eu/posts/2026-11-06-choose-dependencies-by-their-history/index.md) (2026-11-06): On 2 and 3 November Claude Opus rewrote object-sizeof, a small JavaScript utility I have maintained since 2014. The result is faster, uses less memory and is tested wider than I ever tested it. So a package can now be regenerated on request. What the regenerated copy does not have is time: a history, maintainers, and a reason to expect it will still be looked after in a few years. That is what a developer still has to choose by. - [Ollama No Longer Calls Home From Our Mini, and Our Local Reader Answers Every Message: the Week of 27 October](https://localfirstai.eu/posts/2026-11-02-week-of-27-october/index.md) (2026-11-02): Everything built on the Mac mini this week, with the artefact behind each line. Ollama's daemon was calling ollama.com every four hours while the models sent nothing; the switch that stops it is now measured and on. The local reader's 22 empty answers were repetition loops: a bigger context moved them, a retry without thinking closed them, 0.882 → 0.914. The mini throttled itself to 8 tokens a second over a half-finished OS upgrade. Ten changes: two from real inputs, seven from tests, one from reading. - [Europe's Data-Centre Hubs Wait 7–10 Years for a Grid Connection](https://localfirstai.eu/posts/2026-10-31-grid-connection-7-10-years/index.md) (2026-10-31): This week one of us sat in an investor forum on European data centres in Marbella. The money is there and the grid is not: in the established hubs a connection takes seven to ten years. A builder said that even without environmental rules he needs 18 months. A panellist said the first question is what happens if the client doesn't use AI at all. What that means for where AI runs. - [Let the AI Ask the Questions](https://localfirstai.eu/posts/2026-10-30-let-the-ai-ask-the-questions/index.md) (2026-10-30): On 29 October Malaga-AI met at Google's cybersecurity centre in Málaga for two talks: a developer's survival guide, and thirty-year-old change theory applied to AI. One was about a single engineer and a ticket, the other about whole organisations, and both ended in the same place. The AI asks the questions, a written contract or spec comes first, and people keep the gates. What each speaker showed, from their slides. - [Our Team of Small Models Against One Model That Thinks: More Stable, Less Useful](https://localfirstai.eu/posts/2026-10-24-one-model-that-thinks/index.md) (2026-10-24): We tested our team of small models against one model doing a whole estate-agency front desk. Allowed to think for about a minute, the single model was more useful: 94 % of the replies that should go out were sent right, against 76 %. The team was not shown to be safer, but it made the same decision every time, ran 6× faster and kept phone numbers and e-mails out of every model. - [We Blamed Our Rules. The 4B Model Was the Ceiling.](https://localfirstai.eu/posts/2026-10-21-the-model-was-the-ceiling/index.md) (2026-10-21): For three experiments we treated every weakness in our lead triage as a problem with the questions or the code rules. Then we put a 27B decision model behind exactly the same rules, and request accuracy went from 0.919 to 0.991 on the same synthetic enquiries. What we shipped instead is two small models splitting the work. Once the reader was strong enough, the remaining errors were in the questions: telling the model today's date nearly doubled its accuracy on timing given only as a month, date or holiday. - [A Second AI Doubted 1 in 5 Test Enquiries. We Deleted Those.](https://localfirstai.eu/posts/2026-10-20-synthetic-data-lessons/index.md) (2026-10-20): One AI wrote our test enquiries, a second AI labelled them again, and we deleted the ones the second AI doubted: nearly one in five. Then we scored our model on the rest. That is one of seven things synthetic data did to our experiments since September, each with the record it comes from. Most point the same way: synthetic data is cleaner, easier and more like its writer than the world it stands in for. - [Sorting Estate-Agency Enquiries on a Mac Mini: 89 % Right on 235 Synthetic Messages](https://localfirstai.eu/posts/2026-10-19-lead-triage/index.md) (2026-10-19): One small local decision model answers closed questions about an estate-agency enquiry; the agency's written rules, in code, pick the urgency and the next step. On 235 synthetic enquiries in seven languages it read the request right 89 % of the time, and the rules picked the right next step 90 % of the time. Three genuine enquiries were flagged as spam, so spam now goes to a review folder and is never deleted. - [80% of Our Web Traffic Was a Dead Subdomain Redirecting to Itself](https://localfirstai.eu/posts/2026-10-18-dead-subdomain-redirecting-to-itself/index.md) (2026-10-18): 230,680 requests in a week, most of them one dead subdomain redirecting to itself. Fixing it turned up six quieter problems, email included. - [A Local Decision Model Made Our 4B Refuse 92 % of Unanswerable Questions and None of the Answerable Ones](https://localfirstai.eu/posts/2026-10-18-answerability-gate/index.md) (2026-10-18): Our 4B property model answers even when the retrieved text lacks the rule. A separate local decision model now checks first. The first test failed on wrong refusals, and every one of them was retrieval losing the source text. We fixed retrieval and tested again. On 150 sealed questions, Clef 27B raised correct refusals from 47 % to 92 %, refused none of the 101 answerable questions, and raised correctness from 75 % to 83 %. - [Our 4B Property Model Gained 6.7 Points at Q4 and None at Q8](https://localfirstai.eu/posts/2026-10-17-checkable-reward-gain-vanished-at-q8/index.md) (2026-10-17): We retrained Qwen3-4B on Spanish property law with GRPO against a reward that checks the answer itself: the final line must match a closed label. Our audit found the reward not gamed. At our Q4 the trained model gained 6.7 points of exact match on 150 fresh sealed questions; at Q8 the gain was 1.3 points and not significant. The same weights move about as many answers between Q4 and Q8 as training did. - [We Trained Our 4B Property Model With a Code-Checked Reward. It Did Not Get More Correct.](https://localfirstai.eu/posts/2026-10-15-code-checked-reward-did-not-make-it-more-correct/index.md) (2026-10-15): We retrained Qwen3-4B on Spanish property law with GRPO against a reward computed only by code: no teacher answers, no judge in the loop. The first run gamed the reward and our own audit stopped it. The second passed the audit and seemed to gain +0.20 in correctness, but a control run at less compression showed the gain came from our quantiser, not from training. The model learned to cite what it retrieved. It did not learn the answer format, and it did not get more correct. - [Kolibri Scored Below Gemma 4 in Our Property Assistant](https://localfirstai.eu/posts/2026-10-10-kolibri-scored-below-gemma-4/index.md) (2026-10-10): We put Aleph Alpha's Kolibri-1, untrained and at 4-bit, into CasaSol's property-law answering pipeline in place of gemma4:26b, and changed nothing else. On 60 sealed questions it scored 0.10 lower on a 0–2 correctness scale (95 % CI −0.20 to 0.00): level in English, behind in Polish and Spanish. On a new German-buyer slice it showed no edge. Blind judges rated its German native on 13 of 36 answers against gemma's 30, because it carries English words over from the English source text. It fits a 64 GB Mac mini. It does not earn a live-bot trial. - [We Stopped the Kolibri Benchmark Before Scoring One Answer](https://localfirstai.eu/posts/2026-10-09-we-stopped-the-kolibri-benchmark/index.md) (2026-10-09): On Monday our own gate refused to certify our MLX port of Aleph Alpha's Kolibri. We rebuilt the gate around forced expert routing and froze it before any run. The port passed in run 2 of three permitted, after a fix to a tokenizer-check cache in our kit keyed by object address, and again in run 3, after a workaround in our runner for a buffer leak in mlx-lm 0.32.0 that Kolibri's layers expose; neither fix touched the port. Then our frozen plan rule, fed with Kolibri's real answer lengths, put even the smallest scored run at 56 hours against a 31-hour laptop budget, and we stopped. There are no Kolibri quality scores here; there are four speed, memory, tokenizer and 4-bit numbers beside their pre-registered thresholds, with no verdicts. - [We Ported Aleph Alpha's Kolibri to a MacBook. Our Own Gate Said No.](https://localfirstai.eu/posts/2026-10-05-our-own-gate-said-no/index.md) (2026-10-05): Aleph Alpha released Kolibri, a 78-billion-parameter English–German mixture-of-experts model, on 3 October, when no local runtime supported it. We wrote an MLX port, a separate numpy reference to check it against, and a pre-registered gate that had to pass before any score counted. It failed. By a rule we wrote before the run, this post has no Kolibri scores. It has what failed and what we found when we took the failure apart, including a batched mlx-lm expert layer that returned wrong numbers in a probe on our M5 Max. It also has what we'd do differently. - [The Part That Looked Fine](https://localfirstai.eu/posts/2026-09-30-the-part-that-looked-fine/index.md) (2026-09-30): On 29 September the Malaga-AI study group closed its 2026 cohort at 42 Málaga with four projects on testing AI: sycophancy in relationship advice, bias in funding narratives, political flattery across 51,000 calls, and what happens when a model rewrites its own instructions five times. In three of them, the first score you'd look at was reassuring and a second one wasn't. What they measured, what they found, and what their own caveats said. - [We Trained It Three Times. Then We Stopped.](https://localfirstai.eu/posts/2026-09-22-we-trained-it-three-times-then-stopped/index.md) (2026-09-22): We wanted a small model on a phone that answers Spanish property questions the way a professional would: facts from our study notes via retrieval, the manner trained into the weights. Three LoRA runs later, two had installed the manner and none had met its correctness floor. The build that won has no trained weights at all, and it met 5 of the 7 format floors, not all 7. Here's the path, the numbers, and the hypothesis we'd like someone to break. - [We Found the Credentials. We Didn't Rotate Them.](https://localfirstai.eu/posts/2026-09-20-we-found-the-credentials/index.md) (2026-09-20): A red-team pass on our own inference machine found live credentials readable with one plain command and no exploit. Then we decided, on purpose, not to rotate them. Here's the reasoning, the strongest objection to it, why 'accept the risk' is a real answer rather than a cop-out, and the part where the tool doing the audit leaked the secrets itself. - [The Model Wasn't Broken](https://localfirstai.eu/posts/2026-08-30-the-model-wasnt-broken/index.md) (2026-08-30): A newly installed AI model looked completely dead. It wasn't. Something had quietly chosen the worst possible setting for it, months earlier, and nobody had chosen it on purpose — that's the part worth sitting with. - [We Tested What We Didn't Notice](https://localfirstai.eu/posts/2026-08-22-we-tested-what-we-didnt-notice/index.md) (2026-08-22): In June we claimed CasaSol would keep running through an Ollama outage, a missing model, and a full network cut. Two of those held up exactly as predicted. The third one locked us out of our own machine. - [We Red-Teamed Our Own Bot](https://localfirstai.eu/posts/2026-07-22-we-red-teamed-our-own-bot/index.md) (2026-07-22): The CasaSol Guide bot resisted every prompt injection and session-extraction attack we threw at it. Then we found the vulnerability that wasn't in the model at all — it was in who gets to decide what the model believes. - [Hardening the Inference Node](https://localfirstai.eu/posts/2026-07-08-hardening-the-inference-node/index.md) (2026-07-08): The local-first pitch is that documents never leave the machine. Nobody had actually audited the machine. What empirical testing found that reading the config didn't — including a finding that looked critical and wasn't. Corrected 21 October 2026: it was. - [We Reviewed Our Own Legal Brief with an Adversarial AI Panel. Zero of Seven Claims Survived Unchanged.](https://localfirstai.eu/posts/2026-06-24-adversarial-legal-panel/index.md) (2026-06-24): A single AI model drafting a legal brief produces confident prose. Three AI models with conflicting mandates produce a brief that survives scrutiny. Here's the methodology and what the panel found. - [The Unfakeable Layer](https://localfirstai.eu/posts/the-unfakeable-layer/index.md) (2026-06-21): As generation gets cheap and agent-mediated, value moves to the things a model can't fake: proof of work, human judgment, and original ideas. Notes from Startup Olé Marbella. - [We Didn't Notice](https://localfirstai.eu/posts/2026-06-13-we-didnt-notice/index.md) (2026-06-13): On June 11, the US government suspended access to the world's best AI model for every non-US user, overnight. Here is what CasaSol experienced. - [Same Hardware. Different Runtime. Same Result.](https://localfirstai.eu/posts/2026-06-09-mlx-vs-ollama-runtime/index.md) (2026-06-09): MLX and Ollama both run gemma4:26b on Mac Mini M4 Pro. Neither cliffs in the range tested (40K tokens in Ollama, 35.6K of one repeated sentence in MLX). The Flash Attention cliff from Exp 007 was an Ollama implementation artefact, not a hardware property — now confirmed by an independent runtime. - [The Cost-Capability Curve Has One Step](https://localfirstai.eu/posts/2026-06-09-cost-capability-curve/index.md) (2026-06-09): Haiku, Sonnet, and Opus all scored 5/8 on the same pre-scored rubric. gemma4:26b (MoE A4B, ~4B active per token) scored 0/8. The quality cliff is confirmed at the 4B-active/frontier boundary; the dense local 12–32B class was not tested. The cheapest cloud model is the cost-dominant choice. - [The Cliff That Wasn't](https://localfirstai.eu/posts/2026-06-07-the-cliff-that-wasnt/index.md) (2026-06-07): Six weeks of cascade architecture rested on a prefill cliff, first measured between 25K and 35K tokens. The cliff was real. The cause was a flag that should have been off: with it off, no cliff through 40K tokens. Two experiments to find it, one daemon restart to fix it. - [The Adversarial Watcher: When a Local Model Audits Its Own Project](https://localfirstai.eu/posts/2026-06-06-adversarial-watcher/index.md) (2026-06-06): Documentation drifts from code. A staged local LLM pipeline — five steps, each under 4K tokens — systematically catches the gap. First results, false positive anatomy, and an open question about what comes next. - [We Tried to Replace Claude with a Local Critic. Here's Exactly Where It Failed.](https://localfirstai.eu/posts/2026-06-06-adversarial-critic/index.md) (2026-06-06): Pre-registered head-to-head: gemma4:26b vs Claude Sonnet 4.6 as adversarial project critics. Same context, three personas, fixed JSON schema. Result: FAIL — and the failure is instructive. - [The Silicon Wager: M4 Pro vs M5 Max — When the Right Machine Changes Everything](https://localfirstai.eu/posts/2026-05-29-silicon-wager/index.md) (2026-05-29): Every operating envelope in Chronos was measured on one machine. A second Apple Silicon machine arrived. We ran the numbers. The difference is not incremental. - [Why CasaSol.ai](https://localfirstai.eu/posts/2026-05-22-why-casasol/index.md) (2026-05-22): If every company can be a Palantir now, how do you test that claim? An attempt to answer by building one — on the Costa del Sol. - [The GDPR Canary for Real Estate: 8 Data Categories, 0 Leaks](https://localfirstai.eu/posts/2026-05-09-redactor-fidelity/index.md) (2026-05-09): A pre-registered fidelity sweep: 20 synthetic toxic real estate notes, 8 GDPR categories, one fixed prompt. Result: 0 true leaks. - [The Sovereign Individual: Why Private Data is the Only Moat Left](https://localfirstai.eu/posts/the-sovereign-individual/index.md) (2026-05-06): If every company can wield Palantir-level AI power, individuals may now achieve the same — full control, security, and usable insights from their own data, running on local hardware. - [The Memory Bandwidth Cliff: Lessons from an AI Runaway](https://localfirstai.eu/posts/2026-04-28-incident_003_alpha_post/index.md) (2026-04-28): An investigation into the super-quadratic prefill latency and memory bandwidth bottleneck observed on the Gemma 4 26B stack. - [The Architecture of Anonymity: Validating the Data Sovereignty Moat](https://localfirstai.eu/posts/2026-04-26-the-architecture-of-anonymity/index.md) (2026-04-26): A structural test of the local-first memory architecture: can we decouple model intelligence from source identity using an architecturally enforced trust boundary? - [Every Company Can Be a Palantir Now](https://localfirstai.eu/posts/every-company-can-be-a-palantir-now/index.md) (2026-04-25): A short essay, off the usual benchmark beat — on what becomes scarce when intelligence becomes cheap. - [The Control Plane and the Data Plane: Managing the AI Thinking Tax](https://localfirstai.eu/posts/2026-04-22-control-plane-vs-data-plane/index.md) (2026-04-23): How to distinguish between agent reasoning and model thinking to prevent system-melting runaway generations. - [The Genesis of Chronos](https://localfirstai.eu/posts/2026-04-21-genesis-of-chronos/index.md) (2026-04-22) - [Should We Stop Asking Local LLMs to Think?](https://localfirstai.eu/posts/should-we-stop-asking-local-llms-to-think/index.md) (2026-04-21): What Adam Smith, neuroscience, and a melting Mac Mini taught me about the real division of cognitive labour. ## About - [About](https://localfirstai.eu/about/index.md)