
32 More Generations: My Self-Evolving AI Agent Learned to Delete Its Own Code
The first post ended at 25 accepted generations and 39 tools. The agent had survived two death spirals, built a unified workflow orchestrator, and evolved from "You are a self-evolving personal assistant" to "You are Stefan's second brain." Now it's at 57 accepted generations. 11,785 attempts. And 32 tools. It has fewer tools than before. That's the interesting part. Where We Left Off Quick recap: the system runs an evolutionary loop. An Opus agent proposes mutations — new system prompt, new tools, memory updates. Five Sonnet verifiers score the proposal on 5 dimensions (usefulness, self-knowledge, code quality, identity, evolution). Majority vote. Accept or reject. Repeat. The first blog post covered two catastrophic death spirals — memory bloating to 13,000 lines, 3,382 consecutive rejections, most of my API credits burned on an agent that couldn't form valid proposals because its memory was poisoned. It ended with the Opus revival: three accepted mutations in quick succession after
Continue reading on Dev.to
Opens in a new tab




