What is AGENTS.md?
AGENTS.md is a plain Markdown file in a repository that tells coding agents how to work in that project, an open format its authors describe as a README for agents.
A README is written for people. AGENTS.md holds what an agent needs and a person would find too detailed, such as build and test commands, code style and the conventions of the project.
For a design system, it is where the decisions an agent cannot infer go. Which tokens and components exist, which component fits which job, and what never to create. On designhorf.com, AGENTS.md is the one source of these rules, and CLAUDE.md only points to it.
A sentence in the file guides the agent, but it does not stop a mistake. The rules that matter most also become checks that fail before a commit.
An example from my work
In my print cost calculator, the rule file already said that a click never moves anything else on the screen. The agent still built forms that pushed the table down by 588 px, because nothing checked the rule. A Drawer component and a lint rule fixed it, and the table now moves 0 px when a form opens.
Related
- Vibe coded app to production
- Design system for vibe coding, why a vibe coded app drifts
- AI-ready design system
- Design tokens
- CLAUDE.md
- Design drift
Sources
Last updated