r/vibecoding • • 1d ago

Help/Question Are local LLMs usable at all for agentic coding tasks?

First of all, I'm on a MacBook with 24GB of memory. Secondly, I wouldn't be vibe coding massive projects or any projects at all. I mainly want to use vibe coding as a tool for modification. My main set up right now is Opencode using Ollama, and it hasn't been working very well to say the least, even for simple tasks. I'm just wondering if this is a lost cause or if there's anything else I can try. I just don't want to pay for cloud models right now.

5 Upvotes

21 comments sorted by

2

u/ChemicalExcellent463 1d ago

i still don't trust qwen to write or review code, but fine-tuned for narrow jobs like pulling fields out of text, it beats the big general models for me. what's one simple edit it keeps failing on?

2

u/SanitateCfresi 13h ago

half the time it isnt even the code generation failing, the smaller local weights just mangle the search-and-replace blocks that the agent wrapper expects

1

u/ChemicalExcellent463 12h ago

have you tried whole-file rewrites with the same model to get around the broken edit blocks?

2

u/corkiejp 1d ago

Opencode has been known to corrupt code on output.

Try 'Pi' instead with llama.cpp directly instead of ollama.

Harness can't do much if you use a low-level model with it... Usually models below 8B are rubbish with tooling

What modals are you using, try 'Ministral-3-8B-Instruct-2512-Q4_K_M' or 'gemma-4-E4B-it-Q4_0' or bigger if can get them to run on your system. Remember leave headroom for your OS and the context of your queries?

2

u/sicmek 1d ago

How exactly does opencode corrupt the output code?

2

u/heyheni 1d ago edited 1d ago

Try the Caveman 2 model with the little coder harness. The little coder harness whips the small model into compliance.

https://huggingface.co/caveman-so/caveling-2-mini
caveman-so/caveling-2-mini MLX version

https://github.com/itayinbarr/little-coder
itayinbarr/little-coder: A harness optimized to smaller LLMs

2

u/SirDePseudonym 1d ago

Yall need to route it thru free claude code.. it uses that harness, and makes life so, so much better.

Its super easy to set up.

2

u/bleksak 1d ago

i never even used frontier for my use cases and i'm a professional SWE

2

u/Relative_Rope4234 23h ago

SWEs are the biggest vibe coders

1

u/bleksak 18h ago

I have fully vibe coded some apps for my use case, mostly they used gpui and rust. Used qwen 3.8 flash next mostly. Really haven't looked at the code and the apps just work. It just takes a bit more time than opus

1

u/maggiealessa 1d ago

I think all boils down to context window and perhaps a local LLM with the right backing could be close to a Frontier model. But, that requires so much more effort to set that up, that the majority of us either don't have the time nor the desire to burn the hours to build the SDLC chain to be successful with local LLMs. YMMV

1

u/pietrzm 1d ago

I think I'd only if paired with something that'd orchestrate/verify it or treat it as a disposable subagent.

Like make Opus 5.5 manage bunch of Qwens and let it verify their work, or run Sonnet 5.5 where each does a dispatch Qwen as a pseudo-subagents to do grunt work

E: I'm doing that but with Claude/Gemini, didn't test Qwen in this setup yet, but I think it'd comparable

1

u/wyonutrition 1d ago

Most people only allow it with oversight from a frontier model but yes definitely 

1

u/TheFuckboiChronicles 1d ago

Idk about the models that would on your machine but absolutely for smaller webapps and sites.

I’ve had qwen3.8:27 q6 and ornith one-shot portfolio templates and dashboards without issue. A personal website that tracks my local llm token generation over time and chart it per model with a leaderboard.

Built a db out of liquor laws per zip code and returns them after searching (kinda validated via spot checking, just a POC of my local setup my father and law wanted to see).

So yeah. You’re not building something huge complex thing or a SaaS you can charge for. But simple websites and web apps? Yeah absolutely.

1

u/Annual-Cod1073 1d ago

If you have the ram or setup sure, My local Qwen 3.6 is fine for small tasks but you run out of context quickly which means that you will end up in trouble trying a large window. If you augment a subscription with a local model to save money and use a harness that allows for a pro model as a supervisory level and reviewer of the subagent results, a local model can tackle some real tasks.

The better question is how much would you be spending on a sub to get results. You can get a Mac Studio / Mini with more than 128gb of ram and load some pretty smart models.

You can distribute the inference across multiple mac mini's to load absolutely huge models if you want. (You really need a thunderbolt 4/5 capable machine before the latency is usable) but 4 128gb ram Mac Mini's might be cheaper for you than a 40000 mac studio with 512gb ram.

There is a lot of possibility here but if you are asking about a machine with less than 64gb ram ...... you won't get great results without a subscription or api access to a premium model

1

u/Top_Strategy_2852 16h ago

They are great for working around guard rails, then you take over with the online models for the hard work.

1

u/DoOmXx_ 16h ago

depends a lot on the model, which one are you running in ollama

1

u/chudsa70 10h ago

When you fully factor in the electricity cost, it quickly becomes more expensive that cloud models.

1

u/Future_AGI 8h ago

check the context size first. Ollama picks a default from your VRAM (4k on anything under 24GB of VRAM, which a 24GB Mac usually reports) and opencode's tool definitions plus system prompt can fill most of that, at which point Ollama drops the older messages and the model loses the task. The OpenAI-compatible endpoint can't change it per request, so set OLLAMA_CONTEXT_LENGTH=65536 on the server before the next attempt.

1

u/MSarandev 6h ago

Kinda. I’ve wired mine up through Claude code for tool calls and I still don’t trust them fully for big changes. If there’s a large change you can delegate the work to the local LLM and have Claude go over it as a reviewer - will saves you some tokens but it tends to bring up issues and shortcuts the local model took.

0

u/FizzySeltzerWater 1d ago

No. Oh wait, let me put on my CS hat. It depends.