Why Your AI Coding Agent Keeps Writing Bad Code (It's Not the Prompt)