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

1 Upvotes

16 comments sorted by

•

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

  1. Concept: Start by working with Claude to define what you want to do and write it down in a document. I typically call this doc "concept.md" or similar. In your case, these would be a high level description of the game, its mecanisms etc.
  2. Refinement: From there, refine the concept in a "grill me" session. Ask claude to take your concept and ask your clarification questions until everything is clear. This will force you to refine. Mandate Claude to write down the questions and answers as you go, for instance in a "q&a.md" doc. This may take several hours depending on the complexity of the project, but that's vital to make sure "you are in charge" and it builds a nice record of the decisions you are making.
  3. Spec: from there, ask claude to turn the concept doc and the Q&A in a refined product specification. Make sure the 3 documents don't contradict each other. Then ask it to define a technical spec to decide how this will be build.
  4. Planning: once this is done, ask Claude to build a project plan, create the tasks in the ticket management system (ex: Jira). Once this is done, you know have important context in different places: in your project folder with the set of documents describing the concept and the specs + the list of tasks and their descriptions
  5. Implementation: that's where the coding part starts. It's very tempting to jump straight here, but in my experience the preliminary steps are essential to obtain good results. What i typically do is to start a claude session asking it to be the "project lead", that it's not allowed to write any code by itself but that it should pick tasks in Jira and then have coding agent implements. For each task, it should also have a reviewer agent do an independent review and surface issues, then we keep iterating until there is no more relevant issue or a decision has to be made.

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/InnerTruth6609 12h ago

do you find the reviewer agent actually catches architectural drift, or does it mostly just nitpick syntax?

1

u/Time_Cat_5212 11h ago

Depends on your spec writing process.

I don't really see any architectural drift anymore.

I don't do a review session at every ticket either, I run a review session at the end of a milestone. Usually catches a few minor things that didn't get stitched together between tickets. Not much.

If anything I struggle with the opposite problem, getting too locked into a specified architecture.

1

u/Electronic_Pen_6584 11h ago

There is an "in-between". In my workflow, on each task the implementation is followed by a review from an independent agent, e.g. in a different session. This allows the agent to review the code without facing the confirmation bias of having the full session details. This is very effective to find missing edge cases or logic errors.

This typically takes several rounds until the review agent doesn't find anything relevant anymore (e.g. we can exclude the nitpicking but being clear to focus only on "things that matter")

1

u/Time_Cat_5212 11h ago

I use GH issues but basically this.

Good CI and TDD in AGENTS.md helps make auto-merge without a review step possible.

The biggest problem I run into is just my own bad decision making during the spec stage, and finding out after a 40-issue chain that I wanted to do something else XD

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/Pixelplanet5 12h ago

- 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.

yea thats another big one, i made a little agent pool system based on docker sandboxes that my local agents can sent tasks to including a full build -> review -> fix -> review chain with any level of complexity and different agents and sandboxes for each step.
That way i can let my agents do stuff during the day and let them gather tasks for the agentpool that they can schedule overnight as they run on my server in Helsinki while my main PC is off for the night.

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/Electronic_Pen_6584 11h ago

The key is to turn auto-compact on for the lead agent. This way it can run a long time, focused on the goal and taking one ticket at a time (or a few if parallelization is possible).

I have used this type of workflow on projects with 50-60 tickets in a single session over several days on a "pro" plan (not even max). Sometimes i hit the limit but then the agent auto-resumes its session after 5h

1

u/Time_Cat_5212 11h ago

What model do you use to orchestrate?

1

u/Electronic_Pen_6584 11h ago

I typically use Opus 5.5 - high for everything (lead, implementation, review...) . I recently have been helping (rescuing!) non-developers on their projects and i find that people tend to over-optimize which agent they use for different things, trying to use weaker agents for subtasks, while on the contrary i prefer to use stronger models but keep the system simple.

Sonnet is probably good enough for some tasks, but i rarely hit my limit. I think before using lower tiers limit, it's best to optimize where and how we use it. E.g. i saw some repositories with layers and layers of security and quality reviews running on each PR, even if the code changes were trivial (ex: a document change)

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.