Self improving code using AI (agents)
Intro I’ve been messing around with multi-agent AI systems recently. I had a crazy idea - what if I could get one AI agent to write code, have another score it, and a third refine it based on that score? All automatically. All in a loop. That’s what I’m going to walk through here. The things I wanted to explore were: Getting an AI agent to generate code from a prompt Getting a second AI agent to score that code and provide structured feedback Using that feedback to automatically refine the code in a loop Running the final accepted code as an actual subprocess TLDR - if you just want the code it’s here: https://github....