r/ClaudeCode • u/Responsible_Top_7320 • 13h ago
Help/Question How are you managing orchestration?
Super new to vibe coding game dev and I’ve been having a blast. I’ve been using the Claude main “coordinator” to make agent threads as needed as well as Codex per other tasks Along the pipeline.
Context was starting to get lost so I found this program called Jira and now I have Claude and Codex communicate to each other via Jira tickets that they create. The problem is I feel like they still lose track of items and dont have a broader sense of our long term goals.
I really wanna optimize my token usage as I feel like I’m hemorrhaging usage each week.
Is anyone else using Jira to manage context windows across agents? Does anyone have any suggestions for workflows in terms of delegating tasks across Claude and Codex and using Jira to keep them on track?
•
u/AutoModerator 13h 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.
3
u/Electronic_Pen_6584 13h ago
Hi, some recommendations based on my own workflow for work and personal projects (I am a developer):
It's definitely useful to use a ticketing system to keep track of what's going on and the status of tasks. You can use Jira, but Github (and Github Project) or Linear are other good (and potentially simpler) alternatives.
I assume you are using Github to store your code in a repository. From there the workflow I usually follow, to build either a small project
Depending on the complexity of the project, i refine a little bit each step and can add intermediate steps but this give you an overall skeleton.
To fully answer your question, each task description is stored in Jira, but overall design and decisions are centralized in the code repository itself.
1
u/Pixelplanet5 13h ago
the key is to have only one take the lead.
One of them knows everything you want to do and this is the agent that just writes prompts to be fed to other agents.
The other agents push their code to an extra branch in your git repo and your main agent verifies every branch before merging it into your main branch.
No agent needs to know everything to implement a specific feature, it gets told what it needs to know and thats it.
1
u/vpanyushenko 13h ago
I've built a product for this which I will not promote here but these are the core things to include as you find a soltuion:
- as u/Pixelplanet5 said, you want a single lead for each issue but also for your whole porject. the main orchestrator will either be an agent or you. For a large enough project, you'll need to make sure that agents or you can create tickets and then like a team of human would work through the tickets 1 by 1, prioiritze them, etc.
- you want adversarial reviews. I will add to that ideally you would have them done by a different model family. From my tests, sol is the most consistent at flagging real bugs.
- During your reviews, set how many times the implementor agent and reviewer agent will go back and forth until they need you. You will typically have many low priority issues at the end that you can decide if they are worth doing or not.
- You should be using worktrees for each issue. Make sure you set up a process where you have dependencies symlinked do you dont need run a full install each time
- make sure your agents clean up the worktrees after they are done. After the agent has deleted the worktree and the workis done, then you clear the context and start over.
- run a cron job every n PRs, for example 50 and/or n days which will have claude/codex/neon do a legacy code audit / refactor review. As your project gets big and things changes, let's of old legacy code gets left behind or patterns change. During implementation most LLMs follow patterns in the file they are in. Those will change over time. So you'll need to review the whole project to make sure things are consistent.
- run another cron job to also audit for security with the model you have access to that is best set up for that.
- let agents use subagents as needed. one an implementor agent is working an issue, let it work however it needs to. do not use ultracode. subagents are used on larger tasks to keep the main agent's context more clear. opus and fable are generally trained well enough that they will use subagents appropriately on their own most of the time.
- use auto mode, it's the default at this point and it's good enough.
- dont use plan mode, that isnt needed anymore with agents, they plan as they go. your inital converation should be big picture stuff. Figure out how much detail you need to give the agents your working with to get the results you want. As new models come out, you'll need to give less and less detail.
- as you start using worktrees, you'll want to build a queuing system of some kind because when you start having multiple sessions work at the same time, 5 or 10 worktrees running a build at the same time will be too slow. Depending on you CI budget, you can just tell the agent to never run a full typecheck or build locally and always open a PR with the failing test, then fix and push so the PR is green.
- If you have a project that involved UI, make you agent take photos and videos before and after. it's much easier to see in the PR by just looking at pictures of the change rather than needing to launch the app yourself for small changes. This will help you move faster.
- you will very quickly let limited by compute to run tests and builds. If you have a machine laying around have it run your tests while your main orchestration machine just handles actual coding.
1
u/Time_Cat_5212 11h ago
I don't like spending my usage on this, so I use routines with GitHub webhooks in CC.
I find having an agent orchestrate sessions gets pretty expensive pretty quickly compared to lining up issues into lanes and running a routine to chain them.
It is way more convenient though
1
u/Present-Banana8881 10h ago
Jira is probably more overhead than it's worth here. What worked better for me: one plain markdown file in the repo (PLAN.md or similar) with the overall goal, the current milestone and a checklist. Every agent reads it at the start and ticks things off / adds notes at the end. It's in git, so you can see who changed what.
The "losing the broader sense" part is mostly context. Agents don't remember between sessions, and long sessions get fuzzy. So keep tasks small enough to finish in one session, start each one fresh with "read PLAN.md, do item X", and have it update the file before it stops.
Also, fewer agents. One coordinator plus one worker at a time is easier to keep on track than a whole pipeline, especially early on.
1
u/Forward_Proposal5361 10h ago
I have my agents record everything they do in tickets. It creates a natural dependency graph over time and without gaps. For a large codebase in production we have recorded over 6,000 tickets and 10,000+ CLI ops/week.