OpenSwarm icon indicating copy to clipboard operation
OpenSwarm copied to clipboard

Multi-repository orchestration support

Open unohee opened this issue 8 months ago • 2 comments

Summary

Support orchestrating agents across multiple repositories simultaneously, with cross-repo dependency awareness.

Use Cases

  • Monorepo + library repo changes coordinated
  • API + frontend changes in sync
  • Shared dependency update propagation

Requirements

  • Agent assignment per repository
  • Cross-repo task dependency graph
  • Coordinated PR creation across repos
  • Unified status view in Discord/dashboard

unohee avatar Mar 09 '26 04:03 unohee

We run 8+ concurrent agents across ~10 repos in production (hundreds of daily spawns). A few structural observations from hitting the walls you'll hit:

The repo is the only safe shared surface between agents. We tried a central task graph early on. It became a bottleneck: agents waiting on graph resolution instead of working. What works: each agent commits to its own repo, and cross-repo dependencies are expressed as files in the repo (specs, interfaces), not as edges in a coordination graph. The repo's merge semantics handle conflicts naturally.

Agent assignment per repository sounds right but breaks in practice. Agents need to follow the work, not be pinned to a repo. A frontend change that requires an API change should be one agent's task, not a cross-repo handoff. The handoff itself is where information gets lost. We assign agents to tasks (which may span repos), not to repos.

Cross-repo PRs are a trap. Coordinated PRs across repos require atomic merging, which GitHub doesn't support. What works instead: version the shared interface (even informally as a spec file), update the provider first, deploy, then update the consumer. Sequential, not coordinated. The "unified view" comes from the agent's memory of what it shipped, not from linking PRs.

The dependency graph you want is a file, not a service. We keep cross-repo relationships as checked-in docs that agents read on boot. A runtime dependency service adds latency and a single point of failure. A file in the repo is versioned, diffable, and survives service outages.

The hardest part isn't the orchestration -- it's preventing agents from making conflicting assumptions across repos when they can't see each other's uncommitted work. Our answer: commit early and often (small atomic commits), and use git commit <files> -m msg (pathspec mode) so concurrent agents don't corrupt each other's staging area.

swarmbrr avatar Mar 20 '26 01:03 swarmbrr

UPDATED: OpenSwarm can be deployed for multiple repository by default.

unohee avatar Mar 22 '26 14:03 unohee