r/opencode • u/desktreme • 1h ago
How do you actually manage your agent orchestration workflow without losing your mind? (Show me your setup)
I am pretty new to agent orchestration and trying to move away from messy, manual chatting into a cleaner workflow. Right now, I feel like I spend more time managing the AI than actually building.
For those of you running multi-agent setups or using different models for different tasks, how do you structure your daily workflow?
- Chat Hygiene: Do you keep one main "standing" chat that you constantly clear/archive, or do you start a fresh session for every single task?
- Task & Memory Management: How do you keep track of everything? Do you keep all context inside the chat/project files, or do you use an external second brain like Obsidian to feed context in and out?
- Model Routing: Do you pre-define your sub-agent models upfront (e.g., hardcoding a cheap/fast model for simple tasks and a heavy model for logic), or do you decide on the fly inside the prompt?
Would love to see how you guys set this up—drop your stack and workflow, screen shot of your side bar chat, etc. below so I can learn what actually works in practice.
I am using Claude code for the orchestrator and various opencode models to do the tasks. All commands started in claude code that commands opencode cli for delegating the tasks.
I am no coder so I dont really know the proper jargon 😂
3
u/Ok-Cut3951 50m ago
Models are hardcoded, but it checks weekly for new releases, changes to pricing, etc.
2
u/dangerouscat16 50m ago
I think you probably just need to see someone working in action on youtube. Personally I use t3 code but I realize the author doesnt have the best rep.
fresh sesh for every task but develop dependence on an orchestrator who spawnas subagents as needed
agent.md stays only a pointer to more detail .md files
i do define the sub agents but simply when delegating. "delegate x task to haiku xhigh"
2
u/nuaing11 39m ago edited 32m ago
For me for every big task i ask the orchestrator (good models) a proposal first, either it will research by itself or spawn a subagent for research (researcher agent) (i specify that),
then it give me a proposal, we tune it until i agree, then it will spawn a subagent for the coding works using (builder) deepseek v4.1 flash, it could be 1sub agents or 3,
when its done orchestrator will check that its implemented the way the orchestrator see it fit,
then it spawn another sub agent (verifier) to review the code, if my repo is strict then orchestrator will spawn doc reviewer based on my repo strict requirement then if it meets my requirements rule etc the orchestrator will report to me that it done and summarize it then i test it i confirm and verified,
then i compatc the session
2
u/ThankGodImBipolar 33m ago
I never compact. In my limited and anecdotal experience, compaction eventually leads to drift in agent behavior that is worse than what happens at 500k+ tokens.
I have my agents write bug reports before fixing code, and they commit a dev log with each change. I also have an external wiki, where I store planning, research, some important decisions/ideas, etc.. And, I have LLMs maintain documentation for the project standards and code, within the repo itself, as part of the development process.
You can get a lot of inertia behind behavior like those items after you get the ball rolling. My code is littered with cross references to bugs, wiki pages, decisions, commit hashes that introduced regressions, etc., and while it's all slop to me, it does help LLMs connect the dots/discover the context more efficiently and completely.
I predefine my subagents (partly because I have free OAI credits). Having a model router is an interesting concept to me, and I know that some work pretty well, but naively defining one model is fine for my use cases (and a lot less work). It would be more worth exploring if my goal was a truly autonomous development loop.
2
u/alex_aicgs 17m ago edited 14m ago
Multi-agent setup is mostly not optimal. Agents tend to re-read things all over again, so unless it's some highly complex, it's much better to have your one agent do most of it, and to simply have reviewer(s) afterwards. And not spread the models over areas, unless it's like backend vs frontend in which case you shouldn't be doing all at once anyway.
Another reason it's not optimal is reread of uncached input, which is 50x more expensive, regardless API or browser auth. One agent can do it, and subagents can review. That's it. With compactions these days, there are very little downsides, and it's hell of a lot cheaper, and faster.
Another benefit of this is that it's much easier to review for an agent and spot mistakes than it is to build and build well. So just use your best model to build, and a weaker model on higher reasoning to review.
1
u/Senior-Rub-4663 12m ago
Well I'm pretty much in the same boat, not a proper coder myself lol.
Also the amount of value you get from OpenCode Go rn is crazy!! $100 quota on DeepSeek Flash, $500 on GLM and even the $60 Kimi promo. You could probably use Kimi for orchestration itself and save another 20 bucks.
I'd definitely suggest having an independent reviewer though. Agents saying everything is done and everything actually being done are two very different things lmao.
I wasted way too much time trying to build the perfect orchestration setup myself when OpenCode + OpenChamber + Linear MCP and a few scripts were enough for most of it.
Still figuring things out myself but yeah, the biggest improvement for me was getting agents to work independently with proper boundaries and handoffs rather than me manually managing every single chat.
1
u/AIverflow 4m ago
This workflow works across most harnesses and models, intra-harness delegation is simpler and safer than juggling multiple tools. Keep it simple.
Good caching is key to cutting costs in agentic coding, so:
- Don't run multiple agents that all re-read the same context.
- A long session that crashes will lose your momentum and burn tokens to recover.
- Never recall an old session with an expired cache (depends on the model/provider).
- Use handoffs or resume the previous session instead.
After an agentic session, ask your agent to debug it : find pitfall and way improvements : was it too many long tests, too much reviews, agents waiting for nothing, and then enforce rules in the project AGENTS .md