AGENTS.md
AGENTS.md is a conventional document file placed in the root directory of open-source software projects. It is used to declare interaction rules, contribution norms, and operational constraints to AI coding assistants or automated agents. Its core function is to provide AI agents with project context guidance and specify the boundaries of permitted and prohibited operations, ensuring that automated tools conform to project maintainers' expected behavioral standards when participating in code generation, review, or modification.
Core Facts
AGENTS.md is a common naming convention that has emerged in the AI programming tools ecosystem, and tools such as OpenAI Codex and Cursor also recognize this file to varying degrees.
AGENTS.md is an emerging practice in which developers place a Markdown file in the project root directory to communicate coding conventions, architectural preferences, and workflow requirements to AI coding agents.
Cursor uses the .cursorrules file to implement persistent preference functionality similar to CLAUDE.md.
Timeline (last 90 days)
AGENTS.md is the entry configuration file for Factory Droid, placed in the project root directory; Droid reads this file first on startup to build its understanding of the project.
Before starting work, Codex reads AGENTS.md from the repository root down to the current folder, with a default budget of 32 KB; Cursor reads AGENTS.md in the root directory and subdirectories.
AGENTS.md is an open format, now hosted by the Agentic AI Foundation under the Linux Foundation.
After upgrading, AGENTS.md symbolic links pointing outside the repository may no longer be allowed, because the semantics of the fix are "constrained within the repository scope."
The core change of the 1.0.196 patch is: under restrictive permission mode, bringing the AGENTS.md symbolic link within the repository under control (commit 12b1539).
This patch fences the AGENTS.md symbolic link within the repository to the scope of the repository, which is an application of the realpath/root directory validation approach in the AI coding agent scenario.
When AGENTS.md is a symbolic link pointing to a file outside the repository, under restrictive permission mode the agent may access or write to content outside the intended directory through that link.
This symbolic link risk is exposed only when both conditions are met simultaneously: "restrictive permission mode" and "an AGENTS.md symbolic link exists within the repository."
Writing a specification file for a project (such as AGENTS.md, CLAUDE.md, etc.) can be read by most AI coding tools, thereby reducing the context cost of switching between tools.
Compared with .cursorrules or IDE configuration files, AGENTS.md/CLAUDE.md emphasizes short, human-readable rules rather than machine configuration.
40 more timeline events
All Facts (20)
AGENTS.md is a common naming convention that has emerged in the AI programming tools ecosystem, and tools such as OpenAI Codex and Cursor also recognize this file to varying degrees.
85%VerifiedAGENTS.md is an emerging practice in which developers place a Markdown file in the project root directory to communicate coding conventions, architectural preferences, and workflow requirements to AI coding agents.
80%VerifiedCursor uses the .cursorrules file to implement persistent preference functionality similar to CLAUDE.md.
80%VerifiedAGENTS.md is an emerging convention format used to define code style preferences, prohibited operation scopes, project-specific knowledge, and other content to guide agents in making decisions that conform to team norms during autonomous execution.
80%VerifiedThe default behavior gives priority to CLAUDE.md: as long as a CLAUDE.md exists in the repository, Claude Code will not read AGENTS.md.
65%VerifiedAGENTS.md and CLAUDE.md are persistent system prompts written for AI agents, placed in the root directory of the code repository, and automatically read by the tool at the start of each session to load project conventions and architectural rules.
65%VerifiedClaude Code's official documentation explicitly states that it reads CLAUDE.md, not AGENTS.md.
65%VerifiedTypical AGENTS.md content includes a project architecture overview, a list of core files that must not be modified, test run commands, code style conventions, and change approval processes.
65%VerifiedClaude Code's compatibility strategy is to read CLAUDE.md first and fall back to AGENTS.md when it is absent.
65%VerifiedAn AI tool reading a context configuration file at startup is equivalent to injecting a project-level system prompt into the model before each conversation, thereby reducing low-quality modifications caused by a lack of background knowledge.
65%Verifiedagents.md and CLAUDE.md are configuration files supported by Claude Code and similar tools; AI agents automatically read them at startup and inject them into the conversation context as system prompts.
65%Verified执行 claude -v 可查看 Claude Code 版本,教程演示版本为 2.1.207
65%Verified优化上下文注入策略可能比更换更便宜的模型更能有效降低AI编程开支
65%VerifiedClaude Code v2.1.277 added support for the AGENTS.md configuration file.
80%UnverifiedAGENTS.md类似于传统的CONTRIBUTING.md,但专门面向AI代理而非人类贡献者
85%UnverifiedAGENTS.md的实践与'上下文工程'(Context Engineering)的理念密切相关,代表了从提示工程到上下文工程的演进
85%Unverified编码规则的价值不在于让AI写出超越自身能力的代码,而在于减少探索和决策过程中的浪费
85%UnverifiedAGENTS.md是用于描述业务逻辑上下文的配置文件,包含技术栈使用方式、文件组织映射和业务逻辑说明
85%Partially VerifiedAPC is a portable project context layer, containing AGENTS.md, agent definitions, skills, and persistence rules that travel with the project.
70%UnverifiedAGENTS.md是一种新兴的项目级AI配置文件规范,最早由Google在其内部工程实践中推广
70%