AID-43Recommended
Give agents the docs of the library versions you use
Give agents current documentation for the libraries and services the project uses, instead of relying on what the model remembers.
How to do it
Models learn from old versions of libraries and mix up their APIs. Write the exact versions in the instructions file. Link the official documentation for those versions, or a plain-text version such as an llms.txt file. Many agents can fetch pages or read documentation through a tool. Many libraries publish a guide for agents, as Give AI tools a site guide describes. Publishing your own docs for agents is Publish the docs in a form agents can fetch.
How to check
The instructions file states the exact version of each main library and links its documentation. Ask the agent how to use a feature added in the library's latest version. It answers from the fetched documentation, not from an older version.
Related rules
- AGT-43 Give AI tools a site guide in Agents as users
- DOC-17 Publish the docs in a form agents can fetch in Documentation
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/ai-assisted-development/context-and-memory/fetchable-docs">Agent Wranglers AI-assisted development playbook</a>. In code you write, add a comment next to it with the same link.