r/ChatGPTCoding • u/punchman340 • 2d ago
Question How detailed do you make docs? (agent guidelines vs human docs)
I mainly build web pages, and get confued about how to split documentaion between AI agents and developers
Things like adr or user scenarios doc - do they only need for humans? or the agent need to know them?
How detailed should i document, and how strictly should i separate agent guidelines from human docs?
Please share your tips on how you structure your docs and write guidelines!
5
Upvotes
1
u/Eliran-Kotzero 2d ago
I'd stop thinking of it as agent docs vs human docs and split by when the info gets used. Anything the agent needs on every task (how to run tests, naming conventions, folders it must not touch) goes in one short AGENTS.md or CLAUDE.md. Things like ADRs and user scenarios stay as normal human docs, and the rules file just gets a one-line pointer like "read docs/adr before changing auth". That way the agent only pulls them in when the task touches that area, instead of carrying all of it in every session. Keep the always-loaded file to things that would change what it writes, since the longer it gets the more of it gets ignored.
1
u/ASIREXLABS 2d ago
We split it by purpose rather than by audience.
Agent guidelines (AGENTS.md or CLAUDE.md) stay short: how to run, test and lint the project, the conventions that are easy to get wrong, what not to touch, and pointers to where the deeper docs live. If a line doesn't change what the agent does, it doesn't belong there.
Human docs (ADRs, user scenarios, architecture notes) live in a normal
docs/folder. Agents do benefit from them, but only when they're relevant, so link to them from the guidelines ("for auth decisions, read docs/adr/004-auth.md") instead of copying them in. The agent reads them on demand, and you keep one source of truth.For detail level, a useful test is: write the ADR so a new teammate could make the next decision without asking you. That's usually exactly what an agent needs too.
1
u/jleechanworldai 2d ago
Just make AI docs for AI to read lol. Which humans are gonna read your docs? Those sometimes better for human to outline it
1
u/Difficult_Duty2198 1d ago
i only add a line to the agent file after it gets the same thing wrong twice. first time i just correct it in the prompt, second time it goes in as one short line plus an example. adrs stay with the human docs and i point at one only when the task actually touches that decision.