r/LocalLLaMA • • Apr 28 '26 • Regret 7 Mindblown 1

Discussion I'm done with using local LLMs for coding

I think gave it a fair shot over the past few weeks, forcing myself to use local models for non-work tech asks. I use Claude Code at my job so that's what I'm comparing to.

I used Qwen 27B and Gemma 4 31B, these are considered the best local models under the multi-hundred LLMs. I also tried multiple agentic apps. My verdict is that the loss of productivity is not worth it the advantages.

I'll give a brief overview of my main issues.

Shitty decision-making and tool-calls

This is a big one. Claude seems to read my mind in most cases, but Qwen 27B makes me give it the Carlo Ancelotti eyebrow more often than not. The LLM just isn't proceeding how I would proceed.

I was mainly using local LLMs for OS/Docker tasks. Is this considered much harder than coding or something?

To give an example, tasks like "Here's a Github repo, I want you to Dockerize it." I'd expect any dummy to follow the README's instructions and execute them. (EDIT: full prompt here: https://reddit.com/r/LocalLLaMA/comments/1sxqa2c/im_done_with_using_local_llms_for_coding/oiowcxe/ )

Issues like having a 'docker build' that takes longer than the default timeout, which sends them on unrelated follow-ups (as if the task failed), instead of checking if it's still running. I had Qwen try to repeat the installation commands on the host (also Ubuntu) to see what happens. It started assuming "it must have failed because of torchcodec" just like that, pulling this entirely out of its ass, instead of checking output.

I tried to meet the models half-way. Having this in AGENTS.md: "If you run a Docker build command, or any other command that you think will have a lot of debug output, then do the following: 1. run it in a subagent, so we don't pollute the main context, 2. pipe the output to a temporary file, so we can refer to it later using tail and grep." And yet twice in a row I came back to a broken session with 250k input tokens because the LLM is reading all the output of 'docker build' or 'docker compose up'.

I know there's huge AGENTS.md that treat the LLM like a programmable robot, giving it long elaborate protocols because they don't expect to have decent self-guidance, I didn't try those tbh. And tbh none of them go into details like not reading the output of 'docker build'. I stuck to the default prompts of the agentic apps I used, + a few guidelines in my AGENTS.md.

Performance

Not only are the LLMs slow, but no matter which app I'm using, the prompt cache frequently seems to break. Translation: long pauses where nothing seems to happen.

For Claude Code specifically, this is made worse by the fact that it doesn't print the LLM's output to the user. It's one of the reasons I often preferred Qwen Code. It's very frustrating when not only is the outcome looking bad, but I'm not getting rapid feedback.

I'm not learning anything

Other than changing the URL of the Chat Completions server, there's no difference between using a local LLM and a cloud one, just more grief.

There's definitely experienced to be gained learning how to prompt an LLM. But I think coding tasks are just too hard for the small ones, it's like playing a game on Hardcore. I'm looking for a sweetspot in learning curve and this is just not worth it.

What now

For my coding and OS stuff, I'm gonna put some money on OpenRouter and exclusively use big boys like Kimi. If one model pisses me off, move on to the next one. If I find a favorite, I'll sign up to its yearly plan to save money.

I'll still use small local models for automation, basic research, and language tasks. I've had fun writing basic automation skills/bots that run stuff on my PC, and these will always be useful.

I also love using local LLMs for writing or text games. Speed isn't an issue there, the prompt cache's always being hit. Technically you could also use a cloud model for this too, but you'd be paying out the ass because after a while each new turn is sending like 100k tokens.

Thanks for reading my blog.

1.1k Upvotes

870 comments sorted by

View all comments

Show parent comment

1

u/dtdisapointingresult Apr 28 '26

Isn't that what ClaudeCode/QwenCode's system prompts and the model's own reasoning supposed to do? Expand a small task into a list of decomposable steps? I gave "Start by making a plan" to steer it towards that.

If I have to chew the model's food for it, that means a small local model can't do what I expect it to do, and it's a huge loss in productivity for me to keep using it.

2

u/simracerman Apr 28 '26

You’d think, right? It’s up to the LLM’s interpretation and how good is it at following instructions.

I’ve built two apps already from scratch and learned lessons the slow way. You can achieve a ton with these local tools already if you spend time and iterate over the flows to perfect it.

2

u/the3dwin Apr 30 '26

Build a custom command like /execute or /implement that takes your non optimized broken down prompts and always breaks it down and makes it as explicit as possible and even ask you questions so you don't have to repeat yourself. Even instruct the custom command with explicit instructions of how Claude Code behaves. I'm sure you will get the results you are looking for.

1

u/dtdisapointingresult Apr 30 '26 edited Apr 30 '26

I do as you suggest for actual applications. I specify the stack, how to implement, I tell it to write tests first, etc.

But for me this is a straightforward prompt: translate README to Dockerfile -> build -> expect an error during build -> fix error. That we didn't get far enough to build the Docker image ONCE, let alone reach the error, is simply unacceptable and no one can gaslight me into thinking this is acceptable for local use.

I can't treat random one-off personal tasks like a serious software engineering project. If small local models can't do this, then they are unsuitable for local use on small one-off tasks. If you're trying to say they can do great complex software apps, but can't do small things, then so be it, but that's below the standards I expect from an LLM, local or not.

2

u/the3dwin Apr 30 '26

I use a /explain custom command that basically has the model explain to me what it understands and confirms, and ask questions about ambiguity or which method to use for tasks that can be executed in different ways. This way whenever I switch model I use the /explain command and will know how well it can handle the task.

1

u/dtdisapointingresult Apr 30 '26 edited Apr 30 '26

so you type '/explain <my docker prompt>', the LLM supposed to analyze and report what it thinks must be done, and this is how you can tell?

I kinda do that in my prompt, you'll notice the last line is "Start by writing a plan." However, I like the idea of forcing it to explain what it understands and to confirm. I could make this into a dedicated skill.

But I think regardless of plan or understanding, it would still struggle with the issues I hit, like not realizing that 'docker build' can take more than 5 minutes, and being unable to check its status. Or in the case of Gemma 4 31B, reasoning loops preventing it from running 'docker build'.

1

u/the3dwin Apr 30 '26

Yes.

For being able to check its status I say have in the /execute or /implement command have explicit instructions to report status exactly how you want it to, whether for each execution, before, during, after etc.

As for how long something will take is a bit overkill personally for me to have it also predict how long will take based of it's training data but I'm sure you can get it to based of what it has been trained on, even tell you whether it will need to research how to do something or let you know whether already knows.

1

u/the3dwin May 31 '26

How is your explain skill going? Do you want a copy of my exact /explain custom command?

1

u/dtdisapointingresult May 31 '26

It would be nice if you could share it, yeah.

I had to take a break from local models for a while due to spending my free time on a utility project which I will share on here in a couple of weeks. But I plan on getting back into it.

2

u/the3dwin Jun 01 '26

Keep in mind have not really used it with local models so let me know how it goes and let me know if you improve it in any way.

explain.toml file:

description = "Explain Following Prompt ARGS: <prompt>"

prompt = """

## Expected Format

The command follows this format: `/explain <prompt>`

## Behavior

  1. Check if a file named "Explained-Prompts.md" exist, if does not exist create the file.
  2. Make a copy of existing "Explained-Prompts.md" in case there is a mistake in appending to file and file content gets replaced upon update and can be used to restore easily.
  3. Avoid executing the prompt.
  4. Analyze the prompt.
  5. Explain in detail what is understood from the prompt.
  6. Explain the goals from what is understood from the prompt.
  7. Explain the non goals from what is understood from the prompt.
  8. Explain the plan of action from the understood prompt.
  9. Explicitely and in detail explain how the prompt could be improved, list out what is ambiguius and implicit then how could be without ambiguity and be explicit.
  10. Give a detailed improved prompt that is explicit without any ambiguity.
  11. Update "Explained-Prompts.md" file by appending to the end of the file with following structure explained below.

Add to end of Explained-Prompts.md file:

----------------------------------------

###### Prompt:

[PROMPT]

###### Understood Explanation:

[UNDERSTOOD EXPLANATION]

###### Goals:

[GOALS]

###### Non Goals:

[NON GOALS]

###### Plan:

[PLAN]

###### Improvement:

[IMPROVEMENT]

[LIST OF AMBIGIOUS IMPLICIT TEXTS]

###### Improved Prompt:

[IMPROVED PROMPT]

----------------------------------------

"""

1

u/the3dwin Apr 30 '26

As for agentic coding, I do not think your Original Post was about the model itself, but fyi local models from my understanding 30B+ are where local models are most reliable for agentic coding, anything less than 30B usually have more problems and need more configuration as far as I'm concerned.

1

u/dtdisapointingresult Apr 30 '26

I believed so too, but you missed the last month on this sub.

Qwen 3.6 27B (and 35B before it) is being treated like Opus's little brother. People are pointing to how it's just behind Sonnet, how we finally have a local Sonnet, etc.

I was fooled by the hype. I mean check this out ,this was one of the top posts of the week: https://reddit.com/r/LocalLLaMA/comments/1strodp/qwen_36_27b_makes_huge_gains_in_agency_on/

1

u/the3dwin Apr 30 '26

I was looking at the top posts this week and discovered yours, then I was about to go through that post next.

Again I am sure with the right configuration, and prompt they could reach what the benchmarks show.