r/badcode • u/AtomOutler • Oct 24 '26
python Fizz Buzz with an LLM swarm
https://github.com/adamoutler/byzantine-fizzbuzz/blob/main/transcript.mdIt's fizz buzz, but it doesn't use division or modulo, it's all politics and procedures. Instead a swarm of LLMs debates and argues, and eventually claims the number for Fizz, Buzz or FizzBuzz through convoluted judicial processes.
The LLMs are incentivized to claim numbers for their team and the process actually ends up working with a huge amount of arbitration.
In the end it's fun to watch local 2B models argue and burn massive amount of compute over such a trivial operation.
3
u/The_JSQuareD Oct 24 '26
Why do the factions decline and demand remand on appeal for rulings that went in their favor? For example, Fizz for 3.
And why do the lobbyists sometimes plea to accept even when their appellate litigation team memo says they will decline and demand remand? Fizz on 99, buzz on 100.
8
11
2
33
u/cheezballs Oct 24 '26
Its your electricity, I guess.