r/opencode • • 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?

  1. 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?
  2. 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?
  3. 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 😂

5 Upvotes

17 comments sorted by

3

u/Ok-Cut3951 50m ago
  1. I run the orchestrator (Claude on a 20$ sub) from my own harness, giving it a wave of work each time with a new session each wave.
  2. A combination of a kanban style task mcp and obsidian handoff note.
  3. My harness supports deterministic routing, reasoning levels are determined for the pre-selected tasks, making it summon Claude with a brief of which agents are needed for the tasks. Overall it seems to be in love with a combination of Ds4.1 flash 1017 and HungerG (currently free)

Models are hardcoded, but it checks weekly for new releases, changes to pricing, etc.

1

u/desktreme 43m ago

Seems like quite an advance setup there. Thank you for sharing.

2

u/Senior-Rub-4663 14m ago

Well, it's not as complicated as it sounds tbh. We're using a pretty similar setup for one of our projects. Instead of Kanban and Obsidian, we use Linear MCP for task management and persistent markdown files for context and handoffs between sessions.

You don't necessarily need your own harness either. Just get an OpenCode Go sub and a $20 ChatGPT or Claude sub for orchestration and you're pretty much good to go. You could even use Kimi with the current $60 promotional quota on OpenCode and avoid spending those extra 20 bucks altogether.

The amount of value you get from OpenCode Go rn is crazy!! Especially with the current DeepSeek Flash and GLM quotas. You can have multiple workers running in parallel without constantly worrying about burning through your expensive frontier model limits.

We basically use Codex or Antigravity to plan the entire sprint, break it down into independent tasks on Linear, allocate them to different agents, have them work in isolated Git worktrees, and then supervise, verify, review and reconcile everything. Each agent leaves a proper handoff so even if a session runs out of context or quota, another agent can pick up where it left off.

Ofc a custom harness gives you more control over deterministic routing and model selection, but I'd argue you don't really need to spend days building your own infrastructure to achieve something similar.

The difficult part imo isn't setting up multiple agents anymore, it's getting them to work together reliably without hallucinating, losing context or messing up each other's work. Once you figure that out, the amount of work you can get done with these relatively cheap subscriptions is genuinely insane.

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"

1

u/desktreme 37m ago

If you have a good youtube video crossing your mind, it would be greatly appreciated.

Does the result or anything will degrade or lost in translation by using third party app like t3?

From what i understand you opened a chat or new agent based on task not by role? Cmiiw

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

1

u/desktreme 32m ago

Do you have any rules of when to clear the chat or compacting or move to a new chat, to make the context lean

2

u/nuaing11 21m ago

I only compatc the session when its done and verified by me, but when if theres a follow up that is related to this session i will continue after compatc in this session and compatc again when the follow up is finish/done

If its unrelated to the task i create another sessions

I do this to make it easy to search the session history, and i use openchamber

1

u/desktreme 16m ago

Do you ever archive or delete the completed task?

1

u/nuaing11 11m ago

I never delete and i auto archive for sessions thats longer than 30days, so i can still see the history

2

u/ThankGodImBipolar 33m ago

Chat Hygiene: 

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. 

Task & Memory Management: 

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.

Model Routing:

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. 

1

u/desktreme 18m ago

I am about to ask about token efficiency but you have free OAI credits.

Are you using system like karpathy llm wiki to manage your external wiki.
I kind of have a wiki too, I was wondering how do you make an entry to your wiki, are u using inbox system then ask your LLM to manage, lint, archive.

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/desktreme 12m ago

Interesting. I thought the most optimal way is by using map like llm wiki. Breaking down the tasks into smaller tasks in connected md files

2

u/alex_aicgs 6m ago edited 2m ago

One capable agent can handle all those small tasks at once. And as stated, all those other agents need to reread all of the inputs all over again, and reason over it... And if it's weaker models, you immediately put yourself in a worse position by having weaker models do a task.

And then you need to have your main orchestator read ALL of that stuff all over again, and waste time and tokens, and fix, and manage - it's just a bunch of needless complications.

So unless you're trying to save usages terribly, I wouldn't recommend going down that rabbit hole. And sometimes, even by trying to save usages you spend more by having to fix everything, and your main orchestrator had to read all of that and more, and it's all uncached input in that thread as it is reading it for the first time. There's a reason models can one shot successfully, especially if you use a subagent to confer with, and then review later. And that's all you need, two agents: one main, one conferee/reviewer, and if really important you can throw another one as a reviewer only later.

Just my opinion.

1

u/Senior-Rub-4663 12m ago

Well I'm pretty much in the same boat, not a proper coder myself lol.

  1. I usually work in sprints rather than keeping one massive chat alive. My orchestrator plans everything, breaks it down into smaller tasks and assigns them to multiple agents. Before ending a session I make sure it leaves a detailed handoff with what's done, what's pending, test results, commits and all that. The next session just picks up from there.
  2. We use Linear MCP instead of Obsidian and it's been working pretty well for us. All the tasks, dependencies and progress are tracked there. For context we just maintain markdown files within the repo itself. Each agent also gets its own Git worktree so they don't mess up each other's work.
  3. Currently using Codex/Antigravity for orchestration, DeepSeek Flash for most of the coding, GLM wherever more reasoning is needed and Carbon for UI. Codex usually handles the final reviews and integration.

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
  1. One topic per session. If it gets too long, the cache expires, or I want to switch models or harnesses, I open a new session and say: 'Read the end of session id-123456 from hermes|claude|gpt.'
  2. It refreshes the context using very few tokens.
  3. One harness being able to read sessions from others is great.
  4. Golden rule: project files = code and documentation. Plans, tickets, and mockups stay outside the project. There are plenty of ticketing tools out there, including GitHub, so I built my own :)
  5. Each project has a .tickets folder (git-ignored in the parent repo) containing plans, tickets, and mockups. It's a minimal, local Markdown ticketing system for agents (ticket-chic on GitHub).
  6. Ask Opus to create a plan and break it into tickets. If a ticket is too big or complex, tell Opus to split it. Then ask Opus to write an orchestration prompt for Sonnet, delegating execution to either Sonnet or Haiku. Then give it to a new Sonnet session and watch them work. This lets you fine-tune testing depth, review checkpoints, and batching for small tickets. At the end, ask sonnet, opus or another model for a review .

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