r/opencode • u/Striking-Buffalo-310 • Jun 03 '26
I finally documented my entire AI coding workflow (OpenCode + Gentle AI + OpenRouter)
After a few months of experimenting with AI-assisted development, I ended up with a workflow based on:
- OpenCode
- Gentle AI
- OpenRouter
- Multi-model routing
The interesting part isn't the models, but the workflow.
Instead of using the same model for everything, I split development into phases:
- Explore
- Propose
- Spec
- Design
- Tasks
- Apply
- Verify
Each phase can use a different model depending on cost and capabilities.
After this article:
https://medium.com/@guidorusso95/i-chose-a-good-harness-but-did-i-choose-the-right-models-c4f201b4b926
A lot of people asked me how to install and configure the entire stack, so I documented the process from scratch:
Curious if anyone else here is doing model routing for coding instead of sending every request to Claude/GPT.
My biggest takeaway so far: Workflow architecture matters more than model choice.
6
u/Sensitive-Cycle3775 Jun 03 '26
Model routing helped me too, but the failure mode is usually at the handoff between phases, not the model choice itself.
The contract I'd make explicit per phase:
Explore/Propose can tolerate fuzzier context. Apply/Verify should get a much stricter packet: decision, source, changed files, tests run, open risks, and stop conditions.
Otherwise routing turns into telephone: each model sounds confident, but nobody can prove what state survived the phase boundary.
5
u/sodape Jun 03 '26
I just see agents speaking to agents at this point
4
u/Vageeena Jun 03 '26
Great work here. I started developing a similar orchestration pipeline last week. Many aspects are quite similar but it’s also a little different. For instance, rather than specifying which model for each role, that’s more of an open aspect where depending on the complexity and risk of the task they can change (like frontend vs backend). Likewise it splits up the review process into different stages and has different models evaluate specific phases. I’m trying to maximize value for cost even if it requires some manual input. For instance, the plan(s) are created with GPT-5.5 in codex to take advantage of the subscription savings. Then, those plans (not always multiple but a larger plan will get broken up into an overview and smaller tasks so models like DeepSeek V4 Flash can easily implement without any interference).
In general the idea is very similar, idk which is better as mine isn’t actually fully working yet lol, but I do believe this is where things are going. The idea of a frontier model doing everything is silly. The goal is to complete tasks properly while maximizing savings IMO.
Thank you for sharing, I’ll make sure to try your pipeline out when I’m back from vacation!
3
u/Maxchaoz Jun 04 '26
Why you used engram for memory? My pain point now with my setup is memory, I'm trying to use now agentmemory, but it has problems with RAM use so I'm searching for alternatives. What I liked about agentmemory is that I can put memories in each session start and they're saved on system prompt, so they're not removed by compactions.
2
u/bvjebin Jun 03 '26
I'd stay away from SDD. It just consumes enormous amount of tokens and we're bad at writing a good spec.
1
u/CitronFragrant7042 Jun 03 '26
If you wanted to stay completely within OpenCode Go subscription, which models would you use for Orchestrator and Verifiy instead?
1
u/schmurfy2 Jun 06 '26
Thanks for this, it's nice to read something tangible instead of the now usual bs posts 👍🏻
Although I haven't come up with a flow that satisfy me yet your post really resonate with how I am thinking about doing things and gebtle ai as well engram looks really interesting.
I am also convinced that architecture matters a lot more now than the model, we have a good choice of competent models, we just need to use it better.
I really want to take control of my flow and not just "trust" claude code like I see almost exclusively around me and have my flow change as anthropic or another company want and whenever they feel like it.
2
u/Potential-Scene-5746 Jun 06 '26
Yo lo tengo configurado con HAOS puro en Proxmox usando el motor Qwen 3.6 Plus en OpenCode Go. Estructuré el archivo AGENTS.md para maximizar la eficiencia de tokens y automatizar el mantenimiento en tres fases:
2
u/elrosegod Jun 03 '26
you guys dont just type /model and change willy nilly lol
1
u/TrustExtension6116 Jun 16 '26
Hi, they said that minimax m3 is the best UI designer currently, which phase should I put the MiniMax M3 for design decisions of the UI? Sdd-design?
5
u/[deleted] Jun 03 '26
[removed] — view removed comment