A project README usually introduces the project to people: what it does, how to set it up and where to find further documentation. An agent instruction file gives an agent recurring, actionable context for work in that project. An agent can read a README too; the distinction is the document’s main job, not an exclusive audience.
Some products discover files such as AGENTS.md; others use different names or require explicit configuration. Do not assume a file is loaded merely because it exists. Check the current documentation and observe what your product actually loads. A project guide is guidance to a model, not an operating-system security boundary.
An example for a fictional map library
The README introduces installation and the library’s public purpose. A concise agent guide could instead say:
Map rendering lives in
renderer/. Before changing a public symbol, read the API compatibility guide. Report test failures and leave publishing to a maintainer.
This gives a location, a condition and a boundary without copying the compatibility guide. The path and policy are illustrative, not facts about an existing repository. Link to the detailed document when it is needed; duplicated facts can diverge when one copy changes.
Small tools with clear inputs and outputs can sometimes be combined to inspect a problem in stages: one produces a structured list, another selects relevant entries, and a person checks the result. Consistent names and formats make the handoff easier to understand. Text is useful for many such workflows, but binary or structured interfaces can be better for other data; composition does not establish that any tool or output is safe.
Useful recurring guidance may cover important directories, local conventions, safe validation procedures, generated files, and what requires a person’s approval. Include the working directory and side effects when documenting an actual command, and verify it against the project. Avoid secrets, exhaustive directory inventories, and vague demands such as “always write perfect code.”