tl;dr
I vibed an app with ~ 7 year old hardware at 0.92% (not a typo) the cost of running the same work through a frontier API. Read on if you would like to know more, or skip to here if you don’t care for my (human written!) preamble. I also do consulting: I welcome you to contact me if you’d like to discuss setting this up in your own organization.
Preamble
I take great pride in my software. I’ve always enjoyed building software and strived to ensure it worked: that is to say, delivered on what it promises it will do. It’s something I’ve enjoyed doing ever since learning C back in my undergraduate days, and I sure as heck wrote a lot of software during my EngD for conducing human centered experiments in the lab. I even continued to do1 so well into my academic career.
However, I admit that I am not in the crowd currently mourning in the wake of agentic AI tooling and software developers becoming less and less responsible for production at the line-of-code level — there is legitimate and very real pain there. I’m an academic with a tight schedule, and any tool which promises a productivity gain in my view is acceptable.
I first encountered agentic AI about 2 years ago, and first heard about it showing promise by Dr Liam Betsworth during his excellent talk at BritCHI 2025. I was curious, but not sold as at the time this was really only an activity privileged to those who ‘drank the kool aid’: that is to say, paid for access to a frontier model. Not my jam; in addition to taking pride, I also have a principle of never paying for software to do work. I really mean that; the only software I’ve paid for since I was about 18 years old are video games2. I felt sick when I had to register a domain for the first time ever a couple of years ago. I accept that w.r.t generative AI this has put me at a disadvantage as I’ve not benefitted from real progress in recent years due to this self imposed restriction.
That being said, I’m not ignorant, so I’ve kept my eye on something that did pique my interest: treating sophisticated deep learning models like, you know, normal software and running them on my machine instead of subscribing to a service.
I first became interested in local AI — provisioning and running AI software on a self hosted stack — around early 2025, and took the plunge when big G released Gemma 33 as I’d taken a look and had a play; this was the first model that, in my view, was useful as it could reliably output sensible material from a few prompts. This made it effective in a classroom setting; — nobody wants ‘computer do dumb dumb’ live in a lecture hall to > 170 students — so I spent the following months taking it for a test drive to prepare for the 2025 / 26 academic year. That year I launched DanChat, a self-hosted instance of Librechat4 and used it in class for live demonstrations of dialogue driven problem solving, showing my opinionated approach to learning-by-doing-with-GPT not just having GPT do the work for you. I did some experiments using it behind the scenes too e.g., getting it to help with automating conversion utilities5, which proved somewhat useful. However, in my tinkering I found that Gemma 3 was never up to the task of doing anything with a long horizon — a non-trivial task where the machine must first interpret the issue, identify dependent issues / problems, prepare a solution, and then implement said solution. Essentially the machine couldn’t go the distance towards the horizon.
Then Gemma 4 arrived in 2026.
This proved very capable indeed for what I wanted to do. For my circumstances, particularly the 12B quantized aware training 6 checkpoint, it proved decent enough at OCR; an essential task for any office worker IMO. Gemma 4 really is cool beyond that: I found it was pretty good at generating Mermaid7 syntax and some python scripts just from fairly simple prompts. This, I thought, was impressive but still a toy. So I started looking into harnesses and across the board, the growing capabilities of AI had led to increased interest in and proliferation of models for software development, following a methodology called spec driven development (SDD)8. This methodology has a history with Agile9 and recommends teams focus on defining what the outcomes should be up front, in addition to any parameters surrounding the problem e.g., resources, requirements, acceptance criteria, and only then embarking on an implementation.
But now one can bring the ‘big guns’10 in the form of agents.
Definitions
Before we get into it, I figured it might help to have some layman’s definitions.
A Large Language Model (LLM) is the foundational building block that underpins AI assisted coding in the modern era. It facilitates computer software to ‘reason’ about a problem and formulate solutions.11
Agentic AI / coding (AC) is a nice, marketable term meaning automatic code generation embedded into a developer workflow. It’s quite advanced beyond autocomplete in that it facilitates production of working — that bit’s important — software without one having to manually write lines of code. In my experience, one still must understand software best practices to get anything of value out of this endeavour, and certainly developers with some experience are at an acute advantage over beginners, but this is probably a rant for another day.
AC is operationalized through the marriage of an LLM and a coding harness: a software program which provides structured, automated context injection into an LLM, complete with the ability for the LLM to talk back to the harness facilitating tool invocation. Arguably the most popular one is Claude12 but there are many. Writing software with a coding harness is sometimes referred to as vibe coding but in my opinion that is a misnomer; with SDD and a competent harness in place, I consider this more like taking a backseat: one is still steering the agent towards where one wants to go, its just the agent’s foot on the pedal.
Backseat driver
With that out of the way, I’ll discuss my experience getting local LLMs to effectively produce working code for an application which solves a real — albeit personal — problem I had. Of course, our case study is games so here we go!
If you’ve not played The Resistance: Avalon 13 I recommend it: its a social deduction game I first played circa 2014 and I’ve been loving it ever since. In the pre-agents era I hand wrote a small companion app14 to automate the call-out at the beginning of the game. It worked fine, and I updated it to run on the web (by hand!) in 2024. However, adding features to it is just not something I have time or capacity to do: its a personal project and I don’t have time for them anymore (another potential rant for the future) so its been stagnant ever since. I recently started playing the game again with some friends who are a) new to the game and b) have Español as their primary tongue. I wanted them to enjoy the game as much as possible, and to be in a position to play the game themselves using my comapanion app when I’m not around, or pass it on to other friends who may be native / sole Spanish speakers. So there were some revisions to make. At the same time, I considered local LLMs powerful enough to reason over non-trivial coding tasks15. Thus I had a need and an opportunity.
Feature development with agents
The rest of this post gives a data based summary of my experience developing a set of features for the app using a local coding assistant. Put simply: agentic coding runs today on one consumer GPU, on a heavily quantized open model, with no API key and no token bill, and it shipped real features to a live app.
Dan in real life speaking: The following sections of this post were written by me in conjunction with my coding harness. This makes sense: the post is about local AI shipping features for a product, so why would I write python scripts (features) to generate the post (product) when the machine should be doing the work? That being said, I appreciate that AI assisted writing at worst upsets and at best leaves a sour taste in some people’s mouths. That’s fair, but I see this as a 21st century form of symbiosis and honestly don’t see it going away as the genie is very much out of the bottle. I’ve therefore personally decided to embrace it at least in the context of this blog for now: going forward, many of my posts are likely to contain some AI assisted writing. If that’s not for you then know that I understand, and you’re free to log off now: no hard feelings! If you’re still reading but feel icky, then why not just jump straight to the conclusion which I wrote myself without any assistance!
As the application was already in place, the AC agent wasn’t starting from scratch.
So the following analysis is based on session logs; everything following my introducing the agent to my git repository, named avalon-pwa.
There are 137 recorded sessions on this machine.
All 137 of them ran one model, local/swift-1.5; none ran a frontier model.
The snapshot is 22 November 2026 with agentic work carried out over a 6 day period: 19,880,365 input tokens, 9,938,639 output tokens, 838,194,339 cache-read tokens, 29.74 measured session hours.
Of course, cost is $0.00 on every one of the 137 sessions, because the local provider has no price entry given that, you know, its running on my machine.
It’s worth noting that reasoning and cache.write report 0 on every session, so my output totals undercount the model’s thinking; if these tokens were counted and billed, the cost would be higher for a frontier model: it’d still be $0.00 for a local one.
Cache-read tokens are not generated text: they are the prompt cache read on each request — the same context re-read every turn the harness sends, counted once per request. Avalon’s 838,194,339 cache-read tokens are 84.3 times its 9,938,639 output tokens, and at $0.50/MTok they are $419.10 of the $766.96, so 54.6% of the frontier-equivalent price is the cache.

Tokens in avalon-pwa: input 19.88M, output 9.94M, cache read 838.19M. Cache read is the same context re-read on every request in a session, counted per request, so it is 84 times the output: the cache is where the frontier price would sit.
The number you’ve been waiting for
Price the same tokens at Claude Opus 4.8 list rates (input $5/MTok, output $25/MTok, cache read $0.50/MTok, from the Anthropic pricing page) and the arithmetic is:
cost = 19.880365*5 + 9.938639*25 + 838.194339*0.5 # = $766.96, priced per MTok
kwh = 9938639 / 35 / 3600 * 250 / 1000 # = 19.72 kWh, at 35 tok/sec and 250 W
gbp = kwh * 0.28 # = £5.52, at my tariff
So the money line: $766.96 of API-equivalent price against £5.52 of electricity, which is 0.72% of the bill as those two numbers are written, and 0.92% once you convert the electricity into dollars 16.

Same work, priced two ways: $766.96 of API-equivalent price against $7.06 of electricity (estimate, 19.72 kWh at 250 W).
Of course, the dollar figure is what it would have cost, not what I paid, and the pound figure is GPU-equivalent time at the card’s rated 250 W, not what my meter reads. Cache read counts the same context once per request, so the cache part is over-attributed and the dollar total runs high: 54.6% of this price is cache read. FWIW I get around 35 tok/sec on my setup so not exactly speedy, but that’s not the point — the cost is.
To be clear: this is about a workflow, not a model benchmark. Nothing about code quality is measured against a frontier model, so I make no capability claim: the model writes code inside a harness, under a discipline, with plans, tests and reviews, and I merge. The comparison is price, not ability.
How this happened
Swift 1.5 is an awesome derivation by UkisAI of Qwen3.8-Flash-Next17 from Alibaba. Specifically I use the quantized model 18 — about 2 bits per weight. The model is almost at parity with its larger parent yet has been trained for agentic coding and long horizon tasks. As I configured it: 128,000 context, 20,000 max output, tool calling, image input.
The hardware is an Nvidia RTX 2080 Ti with 11 GB VRAM, and one can expect about 35 tokens/sec 19 on a single stream.
A seven-year-old games card doing software work.
The engine is Strata (MIT) 20, an inference engine exposing an OpenAI-compatible and Anthropic-compatible API on localhost, with strata launch and strata connect as the route in.
The harness is OpenCode21, which connects to Strata and drives the agentic workflow.
Kimaki22 is the Discord — that’s right; I chat to this thing — bot that sits in front and drives OpenCode sessions from a thread, and the superpowers23 skills — brainstorming, writing-plans, test-driven development, systematic-debugging, subagent-driven development — are the discipline that stops the agent freeballing.
All of this is open source software / open weights so costs £0.00.
And that’s it. The whole thing. Off the shelf hardware, a local endpoint, a harness, and a discipline. No subscription, no cloud, no bill.
Let’s look closer at the implementation of a feature.
AC implementation of swipe navigation
Let’s look closer at a feature: swipe navigation in the app. My handwritten version had a simple nav bar at the bottom of the screen which would toggle the current view. This nav bar was only interactable by clicking on buttons; fine if one is using a desktop / laptop, awkward if one is using a phone / tablet. This feature introduces swipe left/right navigation across the views.
So I typed:
Let's introduce swipe navigation to the app!
When on the Knights page, swiping left should navigate to the Knaves page, while swiping right should be a no-op.
Likewise, when on the Go page, swiping left should be a no-op while swiping right should take us back to the Knaves page.
While on the Knaves page, swiping left and right should take us to the Go and knights pages respectively.
Use your skills to plan how to do this.
The agent then wrote a design spec, a plan (see the Appendix) with TDD steps naming the files, task briefs and reports, a device checklist for me to verify the swipe feature works on my devices (Android phone, iPhone, and Linux tablet), and a run ledger for task accounting.
Following test driven development principles, the agent wrote failing tests (gates) before it wrote implementation code, checked implementation against these gates, and a separate review session read the whole branch using the same local/swift-1.5 model.
All of this is local, human-directed work, with the branch, its pre-commit gate and CI as the record. Quantified:
| commits through the merge | 25 |
| output tokens | 879,530 |
| measured session hours | 2.65 |
| GPU-equivalent energy (estimate) | 1.75 kWh |
| electricity at 28p/kWh (estimate) | £0.49 |
| frontier-equivalent price (estimate) | $66.23 |
So the same feature at 0.72% of its API-equivalent price.

Eighteen features, priced the same way: $699.70 total, swipe-navigation in gold at $66.23 against £0.49 (estimate). The rows are the table in the numbers file. The hours are the sessions the session-to-plan assignment gave each feature, so 3 plans have no row. These 18 rows are 81 of the 137 avalon sessions: the 56 that name no plan file carry the $67.25 between this total and the $766.96 above.
What the harness buys
Here’s the work sketched across a timeline of git commits over the 6 day snapshot period. Following SDD, the agent wrote plans before code: 21 plans, each plan a series of TDD steps with the files named, so the test exists before the code does.

Commits in each plan’s feature window over the six days: 21 plan files, 210 commits, one dot per commit, 97 commit messages carrying the Kimaki thread link and 113 with no marker. A band runs from the first commit that touched the plan file to the last, so the swipe-navigation band’s 25 commits include the merge that carried the plan. 25 commits sit in no window: these were clean up tasks implemented in dialogue with the agent outside of plans.
The dots are one commit each, and a band owns every commit in its plan’s feature window: the first commit that touched the plan file to the last, read with git log --full-history -- docs/superpowers/plans/<plan>.md for the touches and git rev-list --ancestry-path <first>..<last> for the commits between them, so the merge that carried the plan into main sits in the band. A commit touching a plan file goes to that plan’s band; a commit touching two plan files goes to the band whose window opened first, and the alphabetically first plan file takes the commit when two windows open on the same day; a commit touching no plan file goes to the band with the earliest window start that contains it. A commit in no window is the 22nd row: 25 commits in the era, drawn as dots with no bar. The 21 bands own 210 commits: 97 commit messages carry the Kimaki thread link, and 113 carry no link.
Kimaki marked bands begin on the 18th November as that’s when I introduced it; I’d seen a social video of some guy from Anthropic banging on about ‘chatting to his AI’ and figured sure I’ll give that a go as before I was using OpenCode’s vanilla GUI.
A few points to note
- 11 GB VRAM and a 20k output cap make 128k context a ceiling, not a workspace: long files, wide refactors, and the whole app at once are out of reach, so plans get scoped small.
- This is not about code quality per se; there is no measured benchmark, so no benchmark table: nothing was measured against a frontier model on this box, and the $766.96 figure is a price comparison, not a capability comparison. Frontier models get better all the time. There is no token volume output comparison, and it may be the case that a frontier model could compete these tasks using fewer tokens which would in turn impact the price. My point is this can done at all, not necessarily done well / efficiently.
- The energy figure is TDP-based: 250 W is the card’s rated power, not a measured draw (
nvidia-smiis not installed on this box), and the aggregate rate across avalon’s sessions is 92.8 tok/sec, which shows parallel sessions, so kWh is GPU-equivalent time, not metered usage.
Take away
So the honest answer to “should you do this at home”: yes, if you want a gated workflow rather than a frontier model’s judgement. You get a model that writes working code when the task is named, small, and gated, at under one percent of the API price, with you as the reviewer of every merge. I suggest one starts with the engine. Strata is at the time of writing the best I’m aware of, but I would encourage regularly scheduled ‘check-ups’ to see what’s out there. Pick a quantized model that fits your card and accept throughput as the price of a single GPU: ~35 tok/sec on a 2080 Ti. Wire a harness to the endpoint, keep skills, plans, tests, and review loops as the discipline, and let the human be the gate. I’m not yet confident to grant this the keys to my remote repo; therefore all pushes are handled by me and I would recommend caution here rather than Yolo24.
So Where Do We Go From Here?
In case its not obvious I’ll state my position clearly: I think this is very cool and I’m excited to see what comes next. However, a few things to keep us sober.
First, what I am not saying. I’m not saying I believe this is now the end of hand written software development. This product is a very straightforward mobile web app. By straightforward I mean it’s functionality is easily defineable, testable, relies on standard libraries, and is built using a very popular and mature framework called ReactJS.
I’m not breaking ground; this ain’t the Riemann hypothesis25. Large scale software systems are not trivial, and I doubt these small models are very reliable as a project scales. Others have warned about the dangers of letting AI loose on software production at scale26, and I too remain cautious here. But that’s not the point; let’s face it, a lot of every day tasks are fairly trivial, they’re just boring, and what this shows is that local AC is up to the task for this category. What this does demonstrate is that if one can break a problem down into small chunks, specify, plan, and press Go I believe local models can now walk confidently along the line of several hundred thousand tokens just fine. There are real gains to be made here, and this is what piques my curiosity.
Another way to think about it is this: now that intelligence is a commodity, how much do you really need? I once heard from a colleague27 an interesting story about a group of researchers working on the problem of cucumber harvesting. Apparently this is a curious task because a) it is something humans are very good at but robots are not so good at (yet), b) it is a very well defined task and happens in a controlled environment (greenhouse), and c) it has an accepted tolerance rate of ~ 15% (even humans make mistakes but don’t quote me on that number; I haven’t got the measuered rate at hand and I’m typing from memory). Some have concluded its still some years and scientifc breakthroughs away from being completely automated. That may be true.
But.
Look at that tolerance rate again. A robot doesn’t need to perform at 100% success rate; it only needs to operate at ~ 86% to reach parity with a human. Then the dynamics change as now one can automate knowing that one’s robot is doing a ‘good job’ as its at parity with a human.
This is where I think a lot of small scale software projects are at. Once intelligence passes a checkpoint it opens up the gateway to a lot of tasks, and in my experience the \(|n|\) of the set of tasks requiring sub or par intelligence is far greater than the \(|n|\) of the set of tasks requiring surpar intelligence. And let’s face it; how many of us can truly say all of our time is spent on tasks requiring the latter? This is an interesting observation with far reaching consequences. For now I’m still finding my feet and identifying where I stand on this; I might blog about it in more detail another time.
Second, I also recognize the emerging issues that come with this. In my opinion, real discussions are needed among educators as to what this means for our students in Computer Science, particularly w.r.t academic integrity around coding projects. Much has already been said by folk more equipped than I to comment on the impact of job prosperity for young people too. There are also phenomena we still don’t fully understand 28 and warrant more attention as this technolgy matures further.
Appendix: the plan the agent worked from
Here’s the implementation plan that the agent wrote after brainstorming over my prompt and generating the spec: Swipe navigation implementation plan.
Footnotes and References
-
Which are getting more and more expensive… ↩
-
https://blog.google/innovation-and-ai/technology/developers-tools/gemma-3/ ↩
-
Don’t underestimate the utility of being able to paste a garbled mess of data into a dialogue window and typing ‘hey, jsonify this please’ ↩
-
https://developer.microsoft.com/blog/spec-driven-development-ai-native-engineering/ ↩
-
LLMs are essential to Agentic Software. If you don’t know what they are, start here: https://en.wikipedia.org/wiki/Large_language_model ↩
-
https://boardgamegeek.com/boardgame/128882/the-resistance-avalon ↩
-
I mean, hard to argue with this: https://huggingface.co/Qwen/Qwen3.8-Flash-Next#benchmark-results ↩
-
Those of you paying attention will recognize this does not factor in my time. You’ll have to take my word for it of course, but my honest estimate is about 1 hour writing prompts and reviewing some SDD plan documents the agent wrote. I looked at perhaps 3 dozen lines-of-code total. Wild. ↩
-
https://huggingface.co/ukisai/Swift-1.5-Qwen3.8-Flash-Next-GSQ-RCO-GGUF ↩
-
If speed is of the essence then one could always refresh the hardware: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata#performance-with-strata ↩
-
No kidding, while getting the agent to write Github workflow files for this very website, it leaked an ssh key. ↩
-
At the time I was investigating local AC and app development, more fun was happening in the frontier space with people solving really old math problems: https://en.wikipedia.org/wiki/Alpöge%27s_proof_of_the_Riemann_hypothesis ↩
-
I had a quote here from a LinkedIn post. I was between tasks, switched tabs, then went back and LinkedIn refreshed. I scrolled for a bit but couldn’t find it. Oh well; this is the time we live in I suppose. In any case, just go on the internet and search for “AI, software engineering, challenges” and you’ll find something. ↩
-
It was either Juan Hernandez Vega or Sandy Gould. Sorry both; I can’t remember so I’m crediting you both here. ↩
https://orcid.org/0000-0003-1169-2842