r/ClaudeCode • u/Ls1FD • 5d ago
Tips & Workflows Agent orchestration brainstorming session
Hey everyone, I’m sorry if this topic has been covered to death, but I think it’s very important and I wanted to share my setup that I’ve developed for my workflow and wanted to see what others think of it and where I could improve it.
At first, it started with one orchestrator and multiple workers, and that worked great with an existing workload. When it came time to work on new things, I would speak to the orchestrator to plan things out and give it priorities. Turns out the orchestrator was not very good at that, as it was spending too much time keeping track of the workers and making sure they were doing what they were supposed to be doing correctly. and over time it would go off track and lose sight of priorities. I needed another agent to watch the orchestrator to make sure the work its delegating matched the priorities I gave it.
The orchestrator was now the Fleet Manager (FM) and I created a new agent above the FM, called him the Project Manager (PM). The PMs job was to keep track of what the fleet manager was doing, making sure that the workflow it was delegating lined up with my priorities. Now the fleet manager only had to care about making sure the workers were busy, and it didn’t care about what they were working on particular. That was the project manager’s job.
That helped maintain priority levels better, but now, when I brainstorm with the project manager for new features or to fix existing problems, I noticed its abilities to keep track of the fleet manager were degraded and it too started losing track of priorities. It would take whatever new work came in and assume, that was priority. I needed the product manage to solely concentrate on making sure that the fleet manager was delegating the work correctly, according to priorities.
So I created one final agent. a Project Architect (PA). Now I could have an agent that I could brainstorm with, come up with new ideas and take a bird’s eye view of where we at in the project and where we want to go, all without affecting the current workflow in queue. Once a day I ask the PA for an update and what the current biggest bottleneck is and where we could improve. The project architect’s two jobs are to make sure the priorities the PM has are correct and to find out what new work needs to be done and where it fits in the priorities.
So now the only thing the PA cares about is making sure that my priorities match the current workload. The PM only cares about what priorities he gets from the PA and how that fits in with the current workload and then making sure the fleet manager follows those priorities. Then the FM only cares about getting the workload from the FM and making sure the workers are busy and what they are doing was correct.
It works really well. I can now come to the architect and say, hey, I’ve got these five things wrong, Fix them. The PA figures out exactly what needs to be done. and what the priorities are. Asks me whatever information it needs and when we have an agreement, It communicates those priorities to the PM, who then look at the current workflow and find where in the current workflow those priorities fit. It then sends that work to the fleet manager and the FM just make sure that the work is done correctly.
The worker fleet itself consists of 1-2 Opus workers, 2-4 sonnet workers and 1 sonnet lander. The lander’s job is to simply take finished work, run the tests to make sure it’s good and integrate the code into the finished baseline. I set autocompact on all workers at 250k and I set the autocompact on the 3 fable manager agents to 350k. With this workflow and two ultra accounts, I can keep the fleet working 24/7.
What does everyone think? I’m sure some will see this as too complicated or token wasting but it’s working out really well for me on a pretty complex project. If you think what I’m doing is wrong, I would love to hear your input, thanks for your time!
•
u/AutoModerator 5d ago
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2
u/Eliran-Kotzero 5d ago
Not too complicated if it's working, but I'd look at where the priorities actually live. Right now they get passed down as messages, so each layer holds its own copy in context, and at 250k/350k autocompact that copy gets summarized. That's usually the point where a manager starts treating whatever came in last as the top priority, which sounds a lot like what you saw with the PM.
What I do instead is keep one priorities file that only the architect writes: a short ordered list, each item with an ID and a one-line done condition. The PM and FM read it but never edit it, and every task handed to a worker carries the ID it belongs to. Then add a SessionStart hook with the compact matcher that re-injects that file, so a manager coming out of compaction re-reads the real list instead of trusting its own summary.
The ID also gives your lander a cheap check: if a finished branch doesn't map to an item on the list, it doesn't merge and gets flagged for you. That catches drift a lot earlier than the daily PA update would.
1
u/vib_z 5d ago
I'd give the Fleet Manager a simple rule for when to interrupt a worker. New ideas go in the queue, and a worker only switches if the architect names which task to pause and what should take its place. You could try that for a day and see how often the Project Manager still needs to step in to keep priorities straight.