# Code Genie: I Built a Self-Reviewing Code Generator with CrewAI

Dev.to AI
Generative AI AI Tools

Most AI coding tools are one-shot: you ask, they answer, you decide if it's good. That's not an agent - that's autocomplete with better vocabulary. Code Genie works differently. It writes code, reviews it, finds its own problems, and iterates until it's satisfied. I built it by hand while learning crewAI, and the process taught me about agentic systems than any tutorial ever could. The Problem With One-Shot Code Generation If you've used Claude, ChatGPT, or any AI coding tool for than a week, you've hit the wall. You write a prompt. You get back code that looks right.