AI Agents
Glossary Index

What is AGENTS.md?

Gururaj Pandurangi
Gururaj Pandurangi
Published: July 21, 2026
Updated: July 23, 2026

Definition & Overview

AGENTS.md is a standardized root-level Markdown file used in web repositories and software projects to provide explicit structural context, operational guidelines, and architectural rules to AI coding and search agents.

Similar to `ROBOTS.TXT` for search engines or `README.MD` for human developers, `AGENTS.md` acts as an authoritative instruction manual tailored for AI agents navigating codebases and web properties.

Analogy & Mental Model

AGENTS.md is like leaving a clear house manual and floor plan for a house sitter so they know where everything is and how the appliances operate.

Why AGENTS.md Matters

Adopting AGENTS.md ensures autonomous AI developer tools and code agents understand your technical architecture without making incorrect assumptions.

Concrete Real-World Application

Adding AGENTS.md to a GitHub repository to instruct AI coding agents on project conventions, test commands, and architectural constraints.

How AGENTS.md Works

Parsed automatically by agentic AI coding tools upon workspace initialization.

Core Components & Mechanisms

Architectural Declaration

Listing core directory structures, entry points, and technology stacks.

Operational Guidelines

Defining build commands, testing requirements, and coding conventions.

Constraints & Rules

Explicitly forbidding anti-patterns, unauthorized libraries, or dangerous commands.

AGENTS.md vs LLMs.txt

llms.txt provides clean Markdown documentation for AI content extraction, whereas AGENTS.md defines instructions and operational rules for autonomous AI coding agents.

Frequently Asked Questions

Where should AGENTS.md be located?

AGENTS.md should be placed at the root directory of your project or website repository.

Knowledge Network

Articles & Research Referencing AGENTS.md

Explore Research Library

Get cited across ChatGPT, Perplexity & Gemini with citedby

Optimize your brand’s AI visibility score, track Share of Model across buyer prompts, and turn zero-click search into your highest-converting pipeline source.

Explore citedby Platform