Original Reddit post

I’ve been lately trying to be more and more hands-off with my AI coding agent (Codex), providing them requirements and design specs and letting them do the coding and full testing, while I repeat end-to-end and testing of critical functionalities. While working on a project, I realised that it was impossible to make the agent implement the functionality I wanted, especially due to conflict with prior requirements that were so embedded in the project that the agent could not figure it out. Fine! So I decided to go in. I cannot say that I am an excellent coder, but I have been hobbyist coding for >10y in total 6 languages, including python. I COULD NOT MAKE SENSE what the code was doing (which was, in general, working). a) 5-10 lines (one line per parameter) multiline function definitions, function calls, and returns b) No or minimal comments, even though I had clear instructions in global AGENTS.md c) Extreme function granularity/over-abstraction, with dozens of small functions calling one another in a huge flow, requiring me to constantly scroll up and down and jump between files to follow logic that can written in a single function All of them making it practically impossible to understand the code. It’s like AI wrote the code on purpose so fragmented that we cannot follow it (unless maybe you are a super duper senior lead developer). So I’m curious,

  1. First of all, is this a Codex issue or Claude Code also do the same?
  2. Does anyone have a solution? I tried including rules for code style, code formatting, and code structure in AGENTS.md, (which I am trying to refine) but the agent seems to not really care about them submitted by /u/2thick2fly

Originally posted by u/2thick2fly on r/ClaudeCode