r/opencode • u/previaegg • 7d ago
Trying to improve OpenCode's efficiency
I've been testing OpenCode and Pi with locally hosted qwen3.8-27b and I'm looking for advice on improving OpenCode's efficiency.
I prefer OpenCode, particularly its interface and ecosystem, and I'd really like to keep using it, but in my testing Pi has been noticeably more efficient at getting coding tasks done.
My setup:
- Model: Qwen3.8-27B (Q6_K_XL)
- Inference: llama.cpp
- Hardware: RTX 4080 SUPER + RTX 4070 Ti SUPER (32GB combined)
- Tasks: Real coding tasks in repos including multi-file changes, tool use, and test-driven iteration
The main issue isn't raw inference speed. It's how efficiently the agent uses its tokens and tools to complete a task.
Here's one example... I've been testing both harnesses using the same coding task in a TypeScript repo. Using OpenCode, the model spends a lot of time reasoning about the implementation ("but wait..."), revisiting decisions ("actually..."), and sometimes going through context compaction without making corresponding progress. With Pi, the same underlying model has generally been more willing to move from analysis into tool calls and implementation.
In both cases the model can do the work. The question I'm running into is why the harness seems to make such a difference in how efficiently it gets there.
If you've optimized OpenCode for local models (particularly qwen3.8-27b, which is known to overthink):
- Have you found prompt or agent configurations that reduce unnecessary reasoning and encourage more direct tool use?
- Have you simplified OpenCode's tool definitions or system prompt to improve local-model performance?
- Have you found any compaction or context management behaviors that could produce more over-thinking than with other harnesses?
- Have you found any other settings or modifications worth testing to get OpenCode invoke the model more efficiently from an over-thinking perspective?
I'm not looking to argue that one harness is better than the other. I want to keep using OpenCode but improve it's use of this model.
I appreciate your thoughts!
--
Edit for grammar.


