logoalt Hacker News

Does whispering to agents in docs help?

23 pointsby theletterflast Monday at 2:16 PM4 commentsview on HN

Comments

heymaikoltoday at 5:40 PM

I’ve noticed something similar with coding agents. Specific rules seem to work better than simply saying “this is for AI.” I wonder if files like AGENTS.md work differently because the tools are designed to read from them first.

show 1 reply
orsornatoday at 6:07 PM

Documentation is only useful for agents if the source is unavailable, and if you are trying to save on tokens and trust that the docs are accurate.

If none of that is relevant to you, or rather accuracy is your concern, it's much better just to search the source code for your answers, from how to set up the application to configuration questions to troubleshooting. Bonus points if you strip out all the comments programmatically via linting before you even let the agent view the code, to avoid possible context poisoning.

show 1 reply
mohammedmsgmlast Tuesday at 8:24 AM

[flagged]