Hopper Wiki
Time view Latest revision

Event dates describe the subject. The knowledge cutoff controls which editorial revisions you can see.

Agent engineering

AGENTS.md

AGENTS.md is a Markdown file that gives coding agents the working knowledge of a repository. A maintainer can record how to run the tests, where generated files come from and which conventions apply to a package. [1]

Article revision recorded

Where instructions apply

Start with a file at the repository root. The project convention supports nested files for subprojects, with nearer instructions taking precedence when they conflict. Check the particular agent’s documented lookup behavior when the working directory or a nested package changes. [1] [2]

01Locate

Find the instruction files your coding agent supports.

02Resolve

Determine which instructions apply to the files being edited.

03Verify

Run the repository’s documented checks and report the results.

What belongs in the file

Record a fact a new contributor would otherwise have to discover. Include the directory in which a command should run and how to recognize success. Keeping commands close to their package makes a broken instruction easier to notice in review. [1]

When to choose another mechanism

A procedure shared by many repositories can live in a skill. A test that must always pass belongs in CI. An instruction file can point contributors to both, while access control, release approval and secrets stay in the systems that enforce them. [1]

Outlook

GitHub’s support announcement and the transfer to the Agentic AI Foundation document interoperability efforts. To assess compatibility for your repository, give two supported agents the same change and compare which scoped instructions and tests they select. [1] [3]

Examples

Basic

For a package whose test script already exists, add this to the root file. An agent asked to fix a failing test can check its result against the same command a contributor uses. [1]

# Working in this repository

Run `npm test` from the repository root.
When reporting a fix, name the test that reproduced the problem.
Moderate

In a monorepo, give packages/docs/AGENTS.md the documentation build command and its working directory. Ask the agent to edit a page there. Check that it picked that package’s build and that the root instructions still apply wherever they are compatible. [1]

Production

Use the Hopper exercise to compare an agent’s proposed instructions against a package manifest and README. For an actual repository, run the documented commands in a clean checkout and have a maintainer review changes to the instructions alongside changes to CI. [6]

Timeline

Documented milestones by year
20253
20261
  1. The AGENTS.md project records its initial guide [4] Chronoscope
  2. GitHub Copilot coding agent adds AGENTS.md support [2] Chronoscope
  3. AGENTS.md joins the Agentic AI Foundation [3] Chronoscope
  4. Hopper publishes a practice exercise for Skills over MCP [5]

    Hopper published a runnable example and an exercise for inspecting the protocol exchange.

    Chronoscope

Code and practice

Related articles

Linked from

References

  1. AGENTS.md project guide agents.md
  2. GitHub Copilot coding agent adds AGENTS.md github.blog
  3. Linux Foundation announces the founding projects of the AAIF www.linuxfoundation.org
  4. The AGENTS.md project records its initial guide github.com
  5. Hopper publishes a practice exercise for Skills over MCP github.com
  6. Run the connector exercise lab.hopperlabs.ai
  7. Inspect the repository-instructions example github.com
  8. Open the repository-instructions pattern patterns.hopperlabs.ai
Revision history