01Chapter 1: Why coding agents need project contextThis chapter assumes you know basic Git and repository layout, and you can read Markdown. You should be comfortable running build and test commands from a terminal. You should also have used an AI coding assistant or agent at least a few times.3 min read
02Chapter 2: What AGENTS.md isThis chapter assumes you know basic Git and repository layout, can read Markdown, and have used an AI coding assistant at least once. You do not need to have written any instruction file before.3 min read
03Chapter 3: The file format: just MarkdownThis chapter assumes you know basic Git and repository layout, can write Markdown, and have run build and test commands from a terminal. It covers what an AGENTS.md file is made of and what that means for how you write one.3 min read
04Chapter 4: What to put in AGENTS.mdThis chapter assumes you know basic Git and repository layout, you are comfortable with Markdown, and you have run build and test commands from a terminal. It also assumes you have used an AI coding assistant at least once.2 min read
05Chapter 5: Writing instructions an agent can act onThis chapter assumes you know basic Git and repository layout, are comfortable with Markdown, and run build and test commands from the command line. You should also have used an AI coding assistant before. It covers how to turn general advice into instructions that an agent can follow and a reviewer3 min read
06Chapter 6: Where the file lives and what it coversThis chapter assumes you know basic Git and repository layout, can read Markdown, and have used an AI coding agent. It explains where an AGENTS.md file goes and which files an agent applies to the code it is editing.3 min read
07Chapter 7: Which instructions winThis chapter assumes you can write a basic AGENTS.md and know that the file can appear in more than one directory. It covers what happens when two sets of instructions disagree.2 min read
08Chapter 8: Nested AGENTS.md files in monoreposThis chapter assumes you know basic Git and repository layout, can read Markdown, and have used a coding agent. It builds on the earlier chapters about file placement and precedence.3 min read
09Chapter 9: Working alongside CLAUDE.md and other instruction filesThis chapter assumes you can write a basic AGENTS.md, know where it lives in a repository, and understand that the nearest file applies to the files you edit. Here you will learn how to keep that file useful when some tools look for a different filename.3 min read
10Chapter 10: Keeping secrets and risky guidance outThis chapter assumes you can write a basic AGENTS.md (setup, build, test, style) and that you use Git and a command line. It covers what must stay out of the file and how to word risky operations safely.3 min read
11Chapter 11: Keeping AGENTS.md currentThis chapter assumes you have already written an AGENTS.md with setup, build, test and style sections, and that you know basic Git and pull request workflows. It covers how to keep the file accurate as the codebase changes.3 min read
12Chapter 12: Checking that the agent follows your instructionsThis chapter assumes you have a working AGENTS.md with build, test and lint commands, and that you know how nested files and precedence work. Writing instructions is only half the job. You also need evidence that the agent reads them and acts on them.3 min read
13Chapter 13: Common pitfallsThis chapter assumes you have read the earlier chapters. You should know the AGENTS.md format, how nested files and precedence work, and how to write concrete instructions. Here we collect the mistakes that most often make an AGENTS.md ineffective or harmful, and show how to fix each one.3 min read