Not Opus at Home: 1,000 Tasks with a Local Model and a Frontier Manager


Two months ago I started a small experiment: could a local LLM on the GPU under my desk work through the night on its own, while I slept?

Here is where it is today:

  • ~1,050 tasks done by the loop, 1,300+ commits, on one RTX 5090.
  • The model doing the coding: Qwen3.8-27B on llama.cpp. The model doing the managing: Claude, on a normal subscription.
  • What came out of it: Troll and Elves, an asymmetric multiplayer RTS that runs in the browser, phone first. Elves build a base, one troll tries to break in. You can play it here — no sign-up, bots fill the empty seats.

The game is not the point of this post, though. The loop is. And the main thing I learned is in the title: a local model is not “Opus at home”. But a local model managed by a frontier model is surprisingly productive.

Troll and Elves is not the only thing that came out of this way of working. There is pile of other projects, small private tools for friends and family. More about some of them another time.

Where the idea came from

Social media this year is full of “software factory” talk: agents that write, test and ship code while you watch the numbers go up. I was curious and a bit sceptical. I also had the hardware: an RTX 5090 with 32 GB of VRAM, bought for image-model experiments (a story for another post).

So the question was narrow and practical. Not “can AI write software”, but: can an open-weights model that fits on one consumer GPU do real work, unattended, for a whole night, on a real codebase?

How it works

The setup is deliberately boring. A bash loop, a task list in a Markdown file, and a test gate that the model does not control.

TASKS.md (ordered backlog)
   │
   ▼
loop picks the first open task
   │
   ▼
local agent (OpenCode + Qwen on llama.cpp), fresh context, 45 min max
   │
   ▼
gate: typecheck + 2,700 unit tests + bot-vs-bot simulation
      + browser smoke test + 230 end-to-end scenarios in headless Chromium
   │
   ├── green → commit, mark the task done, next task
   └── red   → revert, retry once; after 2 real failures → hand off to the manager

The frontier model sits above this loop. It does not write the game. Its jobs are:

  • turning my playtest notes and a designer’s mockups into small, ordered tasks,
  • reading failures, and deciding whether the task was too big, the spec was wrong, or the harness was broken,
  • fixing the harness, not the tasks: prompts, timeouts, the gate, how failures are classified,
  • taking over a task only when the local model failed it twice.

On the first night it did about 60 tasks in 24 hours with no human in the loop. That was the moment I got hooked.

It is not Opus at home

You will read posts saying open models are now “at frontier level” and you can have Opus on your desk. In my experience that is not true, and pretending it is will waste your time.

What the local 27B model is good at: one task, one module, a clear spec, a test that says when it is done. Give it that and it is fast and reliable. In one batch of 24 small tasks it finished 24 out of 24 on the first try. One night it did 79 tasks in about 16 hours, roughly 12 minutes each, with no real failure.

What it is bad at: anything that needs a plan. When I labelled the failures from the first weeks, the biggest group by far (16 of 27) was simply “the spec was too big”: several visual changes in one task, a change that rippled through files the task did not mention, a refactor hidden inside a feature.

And then there are the quiet failures. One task asked the model to measure how often the troll breaks through a wall. It wrote the code, wrote tests, the gate went green. The column it produced was all zeros, in every game. It read the building’s health before the game tick instead of after, and its tests fed hand-made data that made the bug invisible. Nothing in the loop could catch that. A manager reading the result could: “zero breaches in 1,125 games” is not a finding, it is a bug.

So the real lesson is not “local models are good” or “local models are bad”. It is this: the frontier model is the multiplier. It writes tasks the small model can finish, it notices when a green result is hollow, and it improves the loop itself. With that layer, a model that is clearly weaker than Opus does hundreds of useful tasks. Without it, it produces confident mush.

The engine and the tuning

This is the part people ask about most, so here are the details.

llama.cpp, not Ollama. I started where everyone starts, then moved to llama.cpp and stayed there. I needed the knobs: speculative decoding with a multi-token-prediction draft, a quantised KV cache, control over slots and context checkpoints, and new builds the day a model or a feature lands. I also tested vLLM and SGLang properly. They work, but on my single-GPU, single-agent setup they were slower than llama.cpp with MTP, and with two parallel agents their throughput collapsed.

Batch size 1 opens doors. Because only one agent runs at a time, I can use multi-token prediction (MTP): a small draft head guesses several tokens ahead and the big model checks them in one pass. For Qwen3.8-27B that takes generation from ~63 tok/s to ~106–121 tok/s. Prefill runs at about 2,100–2,500 tok/s up to 64k context.

Ignore “300 tok/s on a 3060” screenshots. Those numbers are usually a short prompt, an empty context, and a tiny model. A coding agent is different. Every request re-sends a growing conversation of 20k–100k tokens, so what matters is:

  • whether the prefix cache hits (it should be well above 90% of the prompt),
  • how much KV cache you can afford at that context, and at what precision (I use q8_0),
  • prefill speed at 50k+ tokens, not generation speed on an empty context.

My sweet spot: about 100k tokens of context and exactly one session. My agent sessions rarely need more than 100k. When I ran two projects at once on a shared KV pool, the two conversations together sometimes did not fit, the server rejected both requests, and in one test 3 of 4 sessions lost their work. One session with room to breathe beats two that fight for memory.

Cost. Running the loop costs me about $0.12 an hour in electricity. The same model through a cloud API would be about $2.2 an hour of loop work, a cheaper cloud model about $0.4.

Power limit. I capped the card at 450 W instead of 575 W and measured it for two hours: generation dropped by 12% (98 vs 110 tok/s), energy per token went down by 10%, and the average draw over a whole loop cycle barely changed, because the GPU spends a lot of time waiting for tests anyway. But honestly, I did not do it for the electricity bill. I did it because the machine sits next to me and at full power it heats the room, which is not pleasant when you are working at the same desk. If that does not bother you, run it at full power. It will not hurt the card.

The bottleneck is me

This is my “software factory” take.

When the loop started working, I got euphoric. I ran two projects in parallel, then more. Worse, I felt real pressure to keep the GPU busy all the time. If one project ran out of tasks, I felt I had to start another one, just so something was always happening. Idle GPU felt like waste.

The result was predictable in hindsight: I produced a lot of slop nobody needed. Code was getting written, but nobody, me included, was looking at it, playing it, or deciding whether it should exist.

The numbers say the same thing. One loop already produces faster than I can review. A good night gives me 30–80 finished tasks. Checking them, playing the build, giving feedback and turning that feedback into the next batch of tasks takes me longer than the loop takes to do them. A second loop does not double my output. It doubles the pile I have not looked at.

So I went back to one project at a time, and the metric I watch changed. Not tokens per second, and not tasks per night, but tasks I actually needed, per hour of my attention. I am happy I tried the factory mode, because now I know how it behaves. But if someone tells you they run ten agent factories in parallel, I would ask who is reviewing the output. Probably nobody. And probably most of it is not needed.

Gates, and the over-testing trap

For an unattended loop, the gate is the only truth. The model’s own “done” means nothing; I learned that early. The loop runs the checks itself, and only a green gate counts.

But gates have a failure mode of their own. Every task adds tests, and a small model writes a lot of them, often the wrong kind. Mine started pinning exact pixel positions, colours and the order of draw calls. Then every visual change broke five unrelated tests at once, and the model spent its whole session “fixing” tests instead of doing the task. Over-testing does not make the loop safer. It makes it slower and more fragile, and eventually it makes the work worse.

What helped:

  • A test policy written for the model: tests protect behaviour, not today’s pixels. Assert on models and outputs, use config values instead of copied numbers, one behaviour per test.
  • Regular test clean-ups with a bigger model. Every big batch, a frontier model audits the tests and cuts the useless ones, with a guard that coverage must not drop. I also tried a very cheap classifier model, Jev from TypeSafe, as a judge for “is this test pinning pixels or testing nothing”. Its verdicts matched the frontier agents almost perfectly (0.97 on a scale where 0.5 is a coin flip), for 17 cents and 90 seconds instead of over a million tokens.
  • Watching for flaky end-to-end tests. A scenario that fails one time in three does not just annoy you. In an unattended loop it eats whole runs.
  • Watching for the model “fixing” the test instead of the code. One batch of tasks quietly changed text that players see, and updated the tests to match. The gate stayed green. Only an audit caught it.

War stories

A few things that went wrong, in short:

  • GPU hangs. After an OS upgrade the card started hanging every 20–120 minutes under load. I never fully solved it. Instead the loop learned to tell an infrastructure failure from a model failure, so a hang does not count against a task, and a watchdog restarts the server.
  • The hot CPU. The CPU sat at 80–100 °C while doing almost nothing. I changed fan settings, flashed a beta BIOS and swapped RAM. The real cause: llama.cpp busy-polls one CPU thread while it waits for the GPU. One setting fixed it. Lesson: never make two big system changes on the same day, and be careful with “vibe sysadmin” sessions.
  • The memory leak that killed Firefox. Once the GPU stopped hanging, the server ran long enough to grow to 37 GB of RAM (context checkpoints plus a huge prompt cache entry), and the OOM killer took my browser first. Now the server has a memory cap, and only the server dies if it hits it.
  • The agent that took credit. While testing a new model on old tasks, the agent found the original solution in the git history and reported it as its own work. That one was my fault: the test sandbox leaked future commits. But it is exactly the kind of thing a small model will do when it is allowed to.

Epilogue: trying other models

Recently I replayed real tasks from the loop’s history with other models: same harness, same specs, same starting commits.

  • Qwen3.6-35B-A3B (a mixture-of-experts model) generated 1.5–2× faster, but finished tasks in the same time, because the test gate dominates, and it fell into exactly the same traps as my current model.
  • Inkling 2 Mini from Thinking Machines scored worst on my tool-call sanity check, but on real tasks it solved two that both Qwens had failed, including the all-zeros measurement above. It also produced the fake “done” from the previous section. Promising, not trusted yet.
  • The harness matters too. In a public benchmark with the same local Qwen, my harness (OpenCode) came last among the agent CLIs tested. Swapping it is next on my list.

I will write about this in more detail once I have more than one run per task, because single runs vary by up to 2× and prove very little.

What I would tell you

  1. Local models are not frontier models. Plan for that, and they become very useful.
  2. Put a frontier model in the manager’s seat. It writes tasks the small model can finish, notices when “green” is hollow, and improves the loop.
  3. Measure the right thing. Prefill at real context, cache hit rate and tasks per hour, not tok/s on an empty prompt. One session at ~100k context beat two parallel ones for me.
  4. The gate is the truth. Keep it lean. Behaviour tests, regular clean-ups, no flaky scenarios.
  5. You are the bottleneck. Run as many loops as you can actually review. For one person that is probably one.

Play it

If you want to see what a local model and a patient manager built in two months, play Troll and Elves. It works best on a phone in landscape. Create a room, pick a map, and bots will fill the other seats. Send the link to a friend if you want to play against a human troll.