i spent basically all of today trying to get a local llm to actually do agent coding work for me, not just chat
the honest failure first. most of it failed
started on my macbook air m5, 16gb ram. ollama, gpt-oss:20b with a 32k context copy, and qwen2.5-coder:14b as the other option, both pointed at claude code through a local launcher so my normal setup stayed untouched
gpt-oss did answer a test question right, took 30 seconds to do it. 4.8 tokens a second generating, about 4 a second reading the prompt, running 23% cpu and 77% gpu even with memory free. macos only lets the gpu use around 10 or 11gb of the 16, so a 14gb model plus 32k context just spills onto the cpu forever. the qwen 14b was worse in real agent use, 0.15 tokens a second out, it just stalled
so i moved the whole thing to my pc. rtx 2080 ti, 11gb vram, connected over tailscale, sleep turned off so it would stay up
on the pc the 7b ran 100% on the gpu, 4.8gb, the fit the mac never got. the 14b ran about 10 tokens a second, 75% gpu and 25% cpu, because the 16k context cache pushes it to about 12gb and that is over the card. usable, not clean
then the tool call exam. same little test the whole day, write a sample text file, write a word counter script that takes a file argument, handles case and punctuation right, run it, pass the tests
claude code through ollama failed it over and over. the models printed their tool calls out as json text in the chat instead of actually calling them. placeholder paths too, literally /path/to/your/file.txt. checked the folder after, empty. told it directly, do not describe tool calls, execute them. changed nothing. the 7b did the exact same thing as the 14b
we tested the base 14b model on the openai compatible endpoint and on ollamas native api too and it did the same thing on both, the call comes out as a plain string, no structured tool call for anything to pick up
first try with llama.cpp failed different, the model put the call in the wrong tags and the parser wanted different ones
late tonight we found the actual problem underneath the ollama part. ollama was quietly shrinking the tool prompts, about 16,400 tokens coming in, about 4,000 going to the model, so the models never even saw the full tool list. the little probes passed because they were small. anything harness sized failed
llama.cpp b12902 on the pc does not do that, it serves the full prompt
claude code through llama.cpp still failed, three models three different ways. qwen2.5-coder got the envelope wrong. llama3.1:8b had the protocol right and then wouldnt stop generating, 12,000 to 16,600 token turns, truncating its own file writes, zero files in 28 minutes. qwen3:14b collapsed to about 2 tokens a second, vram problem, zero tool calls in 8 minutes
the thing that finally passed was aider
aider 0.86.2 on the pc, qwen2.5-coder-14b served by llama.cpp, about 39 tokens a second for the same model that did 10 through ollama. all 3 files written in 48 seconds. 4 of the spec tests green on the first round, 5 out of 5 after two fix rounds, whole exam done in under 4 minutes
the fix rounds taught me the rule too. round 1 failed because the model got asked to work a value out and it just invented one. round 2 we pasted the exact verified values into the brief and it passed right away. it can execute a brief with the facts in it. i should not ask it to derive the facts
i also set up a paid overflow lane today because i almost bought the wrong thing first. a $19.90 a month deepseek coding plan that turned out to be a third party reseller, not deepseek. skipped that. used deepseeks official api instead, my own key, flash as the default model, a launcher and a little router so i can pick claude, deepseek, deepseek pro, or local at the start
deepseek passed the same wordfreq gate the local models failed all day. wrote the files with real tool calls and ran it, verified on disk. cost still surprises me a bit. $5 top up, two full test sessions by the end of the night, 7 requests, 153,334 tokens total, balance $4.98. two cents
second deepseek test session ran 17 seconds with no approval prompts stalling it after i set up its own settings profile, allowlist for the safe commands, deny list for the stuff it should never touch
so where i landed tonight
main model still does the diagnosing and writes the brief. aider with the local 14b does the pre-diagnosed grind work off my pc. deepseek flash is the cheap overflow when my normal limits get hit. main model reviews what comes back. one writer in a project folder at a time
no new gpu needed for this, which i was not expecting this morning when i was pricing 3090s
what are you all running for local coding agents, and did anyone else hit that prompt shrinking thing or was that just my setup being weird