{"by":"etherio","descendants":15,"id":47695666,"kids":[47713053,47703375,47781482,47712658,47736186,47736943,47713963,47714094,47713503,47719022,47723551,47712429],"score":64,"text":"Hi HN!<p>Druids (<a href=\"https:&#x2F;&#x2F;github.com&#x2F;fulcrumresearch&#x2F;druids\" rel=\"nofollow\">https:&#x2F;&#x2F;github.com&#x2F;fulcrumresearch&#x2F;druids</a>) is an open-source library for structuring and running multi-agent coding workflows. Druids makes it easy to do this by abstracting away all the VM infrastructure, agent provisioning, and communication. You can watch our demo video here (<a href=\"https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=EVJqW-tvSy4\" rel=\"nofollow\">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=EVJqW-tvSy4</a>) to see what it looks like.<p>At a high level:<p>- Users can write Python programs that define what roles the agents take on and how they interact with each other.<p>- A program is made of events - clear state transitions that the agents or clients can call to modify state. Each event gets exposed as an agent tool.<p>- Druids provisions full VMs so that the agents can run continuously and communicate effectively.<p>We made Druids because we were making lots of internal coding tools using agents and found it annoying to have to rearrange the wiring every time.<p>As we were building Druids, we realized a lot of our internal tools were easier to express as an event-driven architecture – separating deterministic control flow from agent behavior – and this design also made it possible to have many agents work reliably.<p>We had issues with scaling the number of concurrent agents within a run, so we decided to have each program run in an isolated sandbox program runtime, kind of the same way you run a Modal function. Each agent then calls the runtime with an agent token, which checks who can talk to who or send files across VMs, and then applies the tool call.<p>Our early users have found the library useful for:<p>- running many agents to do performance optimization<p>- building custom automated software pipelines for eg code review, pentesting, large-scale migrations, etc...<p>We&#x27;ve heard that the frontier labs have the infrastructure to quickly spin up 100 agents and have them coordinate with each other smoothly in various ways. We&#x27;re hoping that Druids can be a starting point to make that infrastructure more accessible.","time":1775679158,"title":"Show HN: Druids – Build your own software factory","type":"story","url":"https://github.com/fulcrumresearch/druids"}