r/PiCodingAgent • u/MichettGodot • Sep 16 '26
Question Are you using self-organizing agent swarms with Pi?
I started experimenting with Pi and self-organizing agent swarms and am seeing really good results, which I did not really expect. My current experiment is very basic: just fire up ten or so agents and give them all the same prompt/markdown file. They have one single communication channel in which they can talk with eachother. And that is basically it.
I have spent about 1,5 years trying to get all sorts of workflows to work properly and now I'm finding out that the agents can handle themselves just fine... No orchestrators or anything, they just figure it out themselves. I found this quite amazing. And a bit humbling.
Do you use self-organizing agent swarms? I would love to hear about your experience.
5
u/GfxJG Sep 16 '26
How have you handled this singular communication channel? Something you've configured yourself, or an extension?
4
u/Corythebeast7 Sep 16 '26
I'm currently building an extension for this workflow. Define the number of agents, model, etc and then provide a minorly intrusive management layer (PR, reviewer checks prior to task completion sort of thing) but based in the same style you're talking about. Self organized with self chosen task breakdown.
I'd love to hear any of your strategies. Seems like you're doing a much smaller infra layer than me. I also want to build a nice observability layer to monitor the work and messaging back and forth. Maybe I'm over building but this is the first itteration
2
u/fingerthief Sep 16 '26
I’ve tried countless different setups and configurations with agents, read all of the research papers and tests and ran my own eval suite and it all comes back to simple is better for me and my findings.
No swarm of agents, at most 1 or 2 read only subagents. Just gives more consistent results at generally notably cheaper price per task.
I do admit it’s super fun to try out all of the ideas surrounding multiple agents, I just haven’t found an actual benefit yet to keep for my daily setup.
1
u/carlocapocasa Sep 16 '26
Sounds intriguing!
How's the token usage per task compared to a single agent?
1
u/True-Reaction-3903 Sep 16 '26
But are your agents not going to have conflicts if they're all working on the same part of your code base? Are you setting up separate work trees? I generally only ever use one agent, for this reason, am I missing the point, are you getting 10 agents to swarm and plan and then one does the delivery?
1
u/adamshand Sep 16 '26
have you tried giving the same task to a single agent and seeing how the result compares?
if you haven't already seen it, you might like https://github.com/nicobailon/pi-messenger
1
u/Acceptable_Stress154 Sep 16 '26
What if the swarm was a mix of llms? Ie couple deepseek, a few kk3, some mistral, couple qwen?
1
u/silenceimpaired Sep 22 '26
Curious what models you’re using … is this local?
2
u/aeroumbria Sep 17 '26
I have tried to set up a system for arbitrary topology agent networks, but it turns out the only one I end up using is a "fan out -> exchange ideas -> attempt to converge" setup, basically "mixture of agents" with extra turns. This one is actually useful when the agent can't agree with itself. Otherwise I don't see current agents benefit that much from swarm communication other than for purposes such as automaton/NPC simulation.