I’ve tried just about everything to stop my coding agent from making the same mistakes repeatedly. I tried pointing out the mistake in my prompt, explaining exactly what went wrong, and adding another instruction to AGENTS.md. The agent would follow it for that session. The next time I gave it a similar task, it would make the same mistake again.