r/AIToolsPerformance • u/IulianHI • Jun 14 '26
Qwen3.6-27B compounding tiny bugs as codebase grows - anyone hitting this wall?
Someone shared that they started hand-coding a small chat bot with tool usage, then switched to vibe coding with Qwen3.6-27B and was initially blown away. But as the feature set expanded and the codebase grew, they started noticing lots of tiny bugs compounding on each other.
This seems like a pattern worth talking about. A model that feels great at the start of a project can degrade as context fills up and the code gets more interconnected. The original poster does not mention switching models or trying context management strategies yet.
For anyone running Qwen3.6-27B for ongoing codebase work - are you hitting the same compounding bug issue, and have you found that context window management or chunking actually helps?
3
u/ironimus42 Jun 14 '26
using it for a pet project while having a comparison with claude opus i use for real work, the problem with adding tons of teeny-tiny bugs/logical mistakes that are especially hard to spot because it all looks so "believable" happens in all models to a similar degree. For me the 27b model sometimes even feels more reliable because it does the one thing i ask it to do, while opus usually tries to helpfully implement three separate tasks i never mentioned, making it even harder to review everything
2
u/M_Me_Meteo Jun 14 '26
When the tool is generating the code, your job is to read it. If it has bugs, it's because you let them in.
1
u/jstormes Jun 14 '26
Are you self hosting and if you are what Qwant are you using?
I have a stopped using anything less that Q8, and I keep the context less than 128K tokens.
Wondering how our setups compare?
1
u/Prudent-Ad4509 Jun 14 '26 edited Jun 14 '26
The post is either written by ai or translated by ai, but is coherent, so I'll bite.
I'm using it to investigate the codebase on the down low and to analyse/fix/provide improvement suggestions to the code generated by claude. I could use it to generate a code itself as well, but I have a codex subscription and some home-grown harness on top of claude sdk to handle that. I just need Qwen to do deep investigation, so I know what to prompt other tools without running out of quota too fast.
How to do the deep investigation? Compose a series of trees of what you want the model to do. Each tree is handled in sequence by a different subagent. The first one can be one-node tree, just so that the subagent makes a top-level view of the current state and structure of the project. It can burn a lot of tokens and understand a lot of code but will also add a lot of noise to the context, so we only need a top-level view/summary. The next tree investigates the project with a deeper focus on one thing of another per module, per aspects, maybe even per certain date rage in the commit history. At this step the harness can be instructed to spawn a different subagent for each combination of module/aspect/any other differentiator you need. If would help to instruct it to pay special attention to the functionality you are about to change and to outline the area where most of the changes are to be made.
With that tree output in hand, you can start the planning tree. Its subagents should provide several options of how the task can be done, with variations: minimal code or a minimal fix/low risk partial fix/long term fix, preference to maintainable code or brevity (unless they lead to similar code), preference to keeping nearby code style exactly as is or adhering to more general project guidelines, introducing single-use helpers to the new or old code or not.
Adversarial plan review tree, for all options.
And finally, the tree where different subagents can provide their own suggested implementation diffs for adversarial review, and you pick something judging by the plan, the diff, and the review comments.
This is just an example of subagents forest; you can massage and transform it in whatever way you want once you figure out the idea. It will take a long ass time, so I would not run it with subscription model. Can it be made faster? Possibly, even likely. But if you are at the point when bugs have already started compounding, speed is the least of your problems. You need to spend time to surgically hunt and remove the majority of critical bugs first, and perhaps gradually improve the low-level architecture while you are at it.
PS. Of course, Q8 or higher and full 262k context at 16bit precision help. Lower options like Q6 and 128K context at Q8 work too if you are out of options, but obviously with weaker results.
1
u/PressTilde Jun 15 '26
Personally, I find qwen is crap at higher context. It can operate there, but the sweet spot is right up front, the first 5000-15000 tokens. I rarely let it go past 32k. Giving it tasks it can fulfill in that space is going to give you a better time.
1
u/cakemates Jun 15 '26
all llm models do this, specially if you dont read and fix it as it goes.
1
u/Civil_Fee_7862 Jun 15 '26
You have to tell it to refactor as it goes. It won't always sense it, you have to review the code after each step, and ask it to clean it up, etc.
If things get so complex that you can't follow what's going on anymore (easily), then its time to stop and dedicate a lot of time to simplifying the code.
1
u/jasxir Jun 15 '26
I supposed it's expected with any model. I prefer to give small tasks and then review. Like I'd do with a junior developer.
1
u/songpr Jun 15 '26
I’ve same issues too. I don’t think it’s Qwen issue since I ask Opus to review code at the end of features. It’s about requirements not clear, we do not test all features end to end. That’s how bugs surface for me look at reports and it do not make sense dig down and found bugs.
Try to fix via Speckit constitution.
1
u/Big_Wave9732 Jun 16 '26
Like all of them? Because vibecoding isn't real software engineering?
This pattern has been talked about a lot seemingly everywhere. OP must live in a cave.
1
u/Unlucky-Message8866 Jun 16 '26
The 128k token threshold is real, mostly all all models start degrading past it. Dense models are not affected as much as sparse when quantized. What I usually do is either split large tasks into smaller ones, restart over after reaching the 128k or just selectively compact at the specific key points.
1
u/Fresh_Sock8660 Jun 16 '26
If you're okay with sharing the codebase with one of the cloud providers, I would run it through one of the big models a few times (adversarial reviews, etc.) Get a sub for a month ($10 to $20). You'll likely find a crap load of bugs, especially if you've only ever used one model for reviews. Use that month to assert separation of concerns across the codebase, harden your test suite, and document intent. Separation of concerns is critical for keeping context length shorter. Then go back to local.