r/software 2d ago

Discussion How would you build a multi-agent software development pipeline?

Hey everyone,
I’m trying to build a software development pipeline using multiple AI agents, but I’m a bit lost with concepts like agent harnesses, loops, graphs, orchestration, and so on.
What I basically want is a structure where I can call one main agent, give it a project or goal, and have that agent orchestrate other specialized agents automatically.
For example:
Main Agent / Orchestrator
→ Product/PRD Agent
→ Architecture Agent
→ Database/Schema Agent
→ Frontend Agent
→ Backend Agent
→ Testing/QA Agent
→ Security Agent
→ Documentation/Context Agent
Ideally, these agents would share context and continue each other’s work instead of behaving like completely isolated sessions.
Is there already a framework, harness, or architecture that works well for this?
Would you recommend using something like graphs/workflows, agent loops, subagents, or building a custom harness?
Any open-source projects or examples I should look at would be greatly appreciated.

5 Upvotes

2 comments sorted by

1

u/thewiltedtouchdown 2d ago

cascading context between agents is the real pain point, most setups treat each one like a fresh brain and you end up manually piping json around. if you want them to actually continue each other's work you'll need a shared workspace they all write to (a repo, a doc, whatever) instead of just passing messages

for the orchestration side you'd probably get the furthest with a simple graph where each node is an agent and the edges are conditional on the last agent's output, keeps it debuggable without the spaghetti a fully autonomous loop can turn into

2

u/Mayilye 1d ago

Use loops only for task that need iteration