| So interestingly, I have almost the opposite philosophy. It would be interesting to compare notes. My philosophy is that agentic engineering works best when the code is compact and straightforward, and there is no documentation to confuse the source of truth. The code is the documentation. What is the purpose of documentation to begin with? It's a shortcut to compress the structure of a system into a quickly scannable map. Or for closed-source software, it's a stand-in for actually being to see inside the black box yourself. But why would you write documentation about a system that already sufficiently describes itself in an understandable format? What the program is and what it does is already abundantly clear to the model, because it can absorb all of it at once (or all of the relevant pieces at once). I understand what you're saying about using documentation as requirements and a system design guide. And that definitely stands out as useful. If you can anticipate the architectural tensions ahead of time and encode your decisions about them in the documentation, then you don't have to encounter them and unpack them in the middle of surgery. But after thinking this over, there is one thing I see missing from my method. The code itself already describes exactly what happens, but it doesn't provide any information at all about which choices in the algorithms in the architecture are just straightforward implementations and which are consequential to the system for outcomes, customers, industry-specific requirements, etc. You and I typically hold those things in our heads and remind each other of them as we collect years of experience on a codebase. But every time I asked an LLM "but why would it be implemented that way?" I get almost a readback of the code itself. Something like "Because Var X depends on it." Yeah. Well. Why does Var X depend on that? Where is this all going? What does it touch in the DB and the UI? |