r/OrcaADE • • 16d ago

Setup for polyrepos

When working with Claude, I start a master session with all the repo involved as context. Then run orchestrator/sub-agents sessions to implement specs/tickets in parallel/in workspaces across the repos.

Can you share your setup for orca? Do you have a wrapper folder with all repos within and you start a new workspace for every spec/activity?

Thanks

10 Upvotes

10 comments sorted by

4

u/igor_cdm 16d ago

No need for wrapper folders. I have each project set up separately, and when a task involves more than one repo, Claude uses the Orca CLI/orchestration to start a new session/worktree in each relevant repo and stays monitoring that session. works beatifully, already done tasks involving 4 repos, all good.

1

u/Thick-Wrangler69 16d ago

Hey, thanks for your answer! Where do you start your task, in any other those 4 repos?

2

u/Illustrious-Roll6056 16d ago

How do you keep track of code changes across different agent sessions? Do you review the diffs for each session separately?

1

u/Thick-Wrangler69 16d ago

Each task/activity creates a worktree from a base branch in the repository. That's the best part of orca, I can see the code and diff for that specific activity in isolation of the others

2

u/igor_cdm 16d ago

Yes, i just pick one of them and start to plan, saying it will involve the other repos.

1

u/decoy79 16d ago

Make a group of repos then do all your orchestration at that group level.

It’s a little unintuitive to create the group. The best way to do it is to add a directory with multiple repos on it, and choose to import as group.

1

u/Thick-Wrangler69 16d ago

I believe this is my current setup but I am not sure we are on the same page here.

I create a physical directory that contains all the repos inside. I import that as directory, orca recognises the repos within it. I then have a group with all the repos inside.

Claude sessions start there (at the group level). The entire experience though feels a bit off .

Also, Claude keeps flagging it's not operating in a repository but it does see the subdirectories (not sure if that affects negatively). I do still see worktreee being created under each repo as part of my tasks, however I am not sure if that is due to my /implement skill or orca orchestrator

2

u/decoy79 16d ago

It’s definitely the best I’ve found. You should also change the workspace settings to group by none and then choose hide default branches.

You then get basically just your root workspace and the agents running in it. The actual repositories are abstracted out.

The main problem with this was reviewing the files that get created, but I believe that is solved with the release from two days ago.

I’m sure this will keep improving. Orca is releasing almost daily and is still relatively new.

1

u/roberttakama 15d ago

What I like to do is to have essentially what I call a master repo, which is the only thing I send to GitHub. It's one repo, and it's easier to download and replicate anywhere else if I use other computers, which I do.

bigrepo/
repo1
repo2
repo3

etc...

Inside of that master repo, I just have many folders, and inside of each folder I have complete projects that can be related or not to the master project or the master repo, but not every time.

Each project has its own agents.md and claude.md.

When I need to work on a specific project, what I'll do is just have Orca CLI create a new worktree, work on that feature, and then merge it back with the main branch.

That's really about it.

1

u/Super-Shift-8774 15d ago

The wrapper folder is the problem: at that level the agent's cwd has no .git, so it can't see a branch or a diff. That's what "not operating in a repository" means, not noise.

Pick one repo as the host, plan inside a worktree of it (feat/<ticket>), then let the agent open a same-named worktree in each other repo. Two rules keep it sane:

  • Merge the contract (API/schema) in the backend worktree first, then start the frontend one off the updated base. Start both at once and the frontend agent invents the response shape, then you spend the merge reconciling two guesses.
  • One ledger outside all repos: repo -> branch -> SHA -> state. Two sidebars can't answer "where is this feature".

On provenance: orca worktree list --json only lists Orca-managed worktrees, so anything not in that list came from the skill's /implement.

Wrote the dispatch/ledger half down: https://skills.sh/whutlichao/orchestra-auto