# AGENTS.md

> AGENTS.md is a Markdown file at the root of a repository that tells coding agents how to work on the project: commands, conventions and rules a README leaves out. It has no required sections, and the file nearest the edited file wins.

Page: https://www.appetiteui.com/glossary/agents-md. What is AGENTS.md? The agent file for a mobile app. Also called Agents file, agents.md.

## Why it matters

A coding agent reads AGENTS.md before it acts on a prompt, so the rules in it shape every screen it writes. Without them the agent fills the gaps itself: a new button, a hex color, a size typed as a number.

One file serves many agents. The agents.md site lists Codex, Cursor, Jules, Gemini CLI, GitHub Copilot’s coding agent and others, and Claude Code reads it when the project has no CLAUDE.md. The format is stewarded by the Agentic AI Foundation under the Linux Foundation.

## iOS and Android

|  | iOS | Android (Material 3) | Appetite UI |
| --- | --- | --- | --- |
| Name | No Apple term, the same file in a SwiftUI project | No Material term, the same file in a Compose project | AGENTS.md in the agent kit of Appetite UI Code |
| Touch area the rules keep | 44 pt | 48 dp | See below |
| Platform convention the rules branch on | The theme’s ios convention, never the OS | The theme’s material convention, never the OS | See below |

## In Appetite UI

The agent kit of Appetite UI Code carries AGENTS.md at the root of the download, one text for React Native, SwiftUI, Flutter and Jetpack Compose with the same content as its CLAUDE.md, and a React Native AGENTS.md in the agent folder and the App Starter.

Its rules forbid the decisions an agent would otherwise invent: use a library component before writing one, never hard-code a color, size, radius or duration, and branch on the theme’s platform convention, not on the OS.

## Example

An Expo app’s AGENTS.md says: build screens from the Appetite UI components, read every value from the theme, branch on theme.platform and never on Platform.OS, and finish only when the TypeScript compiler and npm run check pass. Asked for a settings screen, the agent then uses List with a toggle row and Button instead of drawing its own.

## Common mistakes

- Describing a style ("clean, modern") instead of naming the component and the token to use.
- Keeping a CLAUDE.md and an AGENTS.md that say different things; keep one text, or import AGENTS.md from CLAUDE.md with an @AGENTS.md line.
- Putting every component’s props in the file that loads on every prompt; keep the rules short and the detail in a skill or a docs file read when needed.
- Writing a rule no script checks; back the rules a machine can test with a check the agent runs before it finishes.

## Questions

### What is AGENTS.md?

A plain Markdown file, usually at the root of a repository, that gives coding agents the context a README leaves out: how to build and test, the conventions, the rules. The agents.md site calls it a README for agents, and it has no required fields.

### Does Claude Code read AGENTS.md?

Yes, when there is no CLAUDE.md, .claude/CLAUDE.md or CLAUDE.local.md in the working directory or above it. With a CLAUDE.md, Claude Code reads only that file unless it imports AGENTS.md with an @AGENTS.md line, according to the Claude Code docs.

### Can a monorepo have more than one AGENTS.md?

Yes. Put one in each package, such as apps/mobile. Agents read the nearest file in the directory tree, so the closest one takes precedence, and an explicit prompt in the chat overrides them all.

## Sources

1. [AGENTS.md](https://agents.md/)
2. [Claude Code docs: How Claude remembers your project](https://code.claude.com/docs/en/memory)

## Related

- Article: [AGENTS.md for a mobile app: rules that stop the agent inventing UI](https://www.appetiteui.com/blog/agents-md-mobile-app)
- Glossary: [Agent kit](https://www.appetiteui.com/glossary/agent-kit)
- Glossary: [DESIGN.md](https://www.appetiteui.com/glossary/design-md)
- Glossary: [Design tokens](https://www.appetiteui.com/glossary/design-tokens)
- Product: [The agent kit of Appetite UI Code](https://www.appetiteui.com/code#agent)
