# AGENTS.md

CreateWithAI Hub page: https://createwithaihub.com/templates/agents-md
Latest version of this file: https://createwithaihub.com/templates/agents-md.md

- Type: Template · Category: Templates & Starter Kits
- Publisher: Agentic AI Foundation (Linux Foundation); created by OpenAI
- Pricing: Free · License: MIT
- Works with: Cursor, VS Code, OpenAI Codex, Gemini CLI, Windsurf, OpenCode

Open Markdown format for giving coding agents project instructions, like a README for agents, read by Codex, Cursor, Jules and others.

AGENTS.md is a simple, open convention: a Markdown file at the root of a repository that tells coding agents how to build, test and work on the project. It has no required fields; agents read the nearest AGENTS.md in the directory tree, so monorepos can nest one per package. OpenAI released it in August 2025 with contributors from Amp, Jules, Cursor and Factory, and it is now stewarded by the Agentic AI Foundation under the Linux Foundation. The agents.md site explains the format, lists supporting agents and links example files.

Useful for: Adding one AGENTS.md with build, test and PR rules to a repository so Codex, Cursor and other agents follow the same instructions.

## Key features

- Plain Markdown with no required fields or schema
- Nested AGENTS.md files for monorepos; the closest file to the edited code wins and user prompts override it
- Agents run the test and lint commands you list and fix failures before finishing
- Listed support includes Codex, Cursor, Jules, GitHub Copilot's coding agent, VS Code, Gemini CLI, Windsurf, Devin, opencode, Zed, Warp, goose and Aider
- Used in more than 60,000 open-source repositories (per the site)
- MIT-licensed site and examples at github.com/agentsmd/agents.md

## Install steps from the official documentation

Rename an existing AGENT.md and keep a symlink:

```
mv AGENT.md AGENTS.md && ln -s AGENTS.md AGENT.md
```

## Limitations

- No fixed schema, so how instructions are followed depends on each agent
- Some tools need a setting to read it (Aider: read: AGENTS.md; Gemini CLI: context.fileName)
- Claude Code is not in the site's list of supported agents

## Official links

- Website: https://agents.md
- Source repository: https://github.com/agentsmd/agents.md
- Documentation: https://agents.md
- Source: https://agents.md/ (Format description, supporting agents, how to use, nested files, FAQ (no required fields, precedence, Aider and Gemini CLI config, migration command), stewardship by the Agentic AI Foundation, 60k+ examples)
- Source: https://github.com/agentsmd/agents.md (Repo holds the format README and the Next.js site at agents.md; not archived)
- Source: https://raw.githubusercontent.com/agentsmd/agents.md/main/LICENSE (MIT License, Copyright (c) 2025 OpenAI)
- Source: https://www.linuxfoundation.org/press/linux-foundation-announces-the-formation-of-the-agentic-ai-foundation (AGENTS.md released by OpenAI in August 2025 and contributed to the AAIF on 9 Dec 2025)
