--- title: Mistakes AI Coding Agents Make date: "2025-06-22T09:21:05Z" lastmod: "2025-06-22T09:21:07Z" categories: - coding - llms wp_id: 4147 description: "The recurring failure modes of coding agents are inconsistency, missed edge cases, and shallow debugging, which can be mitigated with stricter rules, fuller tests, and better logs." keywords: ["AI coding agents", "failure modes", "testing", "edge cases", "logging", "code quality"] ---  I use [Codex](https://chatgpt.com/codex) to write tools while I walk. Here are merged PRs: - [Add editable system prompt](https://github.com/sanand0/tools/pull/27) - [Standardize toast notifications](https://github.com/sanand0/tools/pull/23) - [Persist form fields](https://github.com/sanand0/tools/pull/25) - [Fix SVG handling in page2md](https://github.com/sanand0/tools/pull/22) - [Add Google Tasks exporter](https://github.com/sanand0/tools/pull/19) - [Add Markdown table to CSV tool](https://github.com/sanand0/tools/pull/20) - [Replace simple alerts with toasts](https://github.com/sanand0/tools/pull/24) - [Add CSV joiner tool](https://github.com/sanand0/tools/pull/21) - [Add SpeakMD tool](https://github.com/sanand0/tools/pull/12) This added technical debt. I spent four hours fixing the AI generated tests and code. ### What mistakes did it make? 1. **Inconsistency**. It flips between `execCommand("copy")` and `clipboard.writeText()`. It wavers on timeouts (50 ms vs 100 ms). It doesn't always run/fix test cases. 2. **Missed edge cases**. I [switched](https://github.com/sanand0/tools/pull/25) `