AGENTS.md for Lynx
AGENTS.md is a project-level instruction file for coding agents, similar to how README.md is for human developers.
Getting Started
New Lynx projects created via Quick Start already include an AGENTS.md. For existing projects, copy the template and adapt it to your project:
Point Agents to Lynx Docs
The most important thing to add is a pointer to llms.txt, which serves as an entry point to all Lynx documentation in an LLM-friendly format. Add a section like this to your AGENTS.md:
This isn't a magic incantation. It works because the snippet gives the agent a concrete URL to fetch, and the strong language ("MUST") tells it to prioritize the docs over guessing from training data.
If agents still ignore the documentation, you can inline the full contents of llms.txt directly into your AGENTS.md:
To keep it up-to-date automatically, add this command to your prepare script in package.json and gitignore the generated file.
Monorepo Setup
In a monorepo, place a root AGENTS.md for global guidelines and per-package files for project-specific context. Agents read the closest file first, then walk up.
Place Lynx-specific guidance in packages/lynx/AGENTS.md. Keep information consistent across files to avoid conflicting instructions.