AGENTS.md: The Missing Operating Manual for AI Coding Agents in Creative Projects
AGENTS.md files give AI coding agents the project-specific rules, build commands, and creative constraints they need to produce consistent, production-grade work — instead of guessing. Here is how to write one that actually works.
Every AI coding agent starts each session blind. It knows how to write Python or TypeScript in general, but it does not know that your video pipeline uses Remotion for rendering, that your design tokens live in a specific directory, or that your brand voice forbids exclamation marks. The agent guesses. Sometimes the guess is right. Often it is not, and you spend the first ten minutes of every session re-explaining the same rules.
AGENTS.md is the open standard that fixes this. It is a markdown file placed at the root of your project that tells AI coding agents exactly how to operate within it: build commands, coding conventions, testing rules, directory structure, and creative constraints the agent cannot infer from the codebase alone. Think of it as a README for agents instead of humans. As of early 2026, over 60,000 open-source projects have adopted the format, and it is supported natively by Codex, Cursor, Copilot, Gemini CLI, Aider, Windsurf, and more than 30 other tools.
For creative projects — video pipelines, animation systems, design-to-code workflows, content production — an AGENTS.md file does something more specific: it encodes the creative brief, technical constraints, and quality standards that keep AI-generated output consistent across sessions, agents, and tools. Without it, every creative task starts from scratch. With it, your agents inherit the project's institutional knowledge on day one.
What Is an AGENTS.md File and How Does It Differ from README.md?
README.md is written for humans. It answers "what is this project?" in about five minutes of reading — installation steps, usage examples, contribution guidelines. AGENTS.md answers a different question: "how should an AI work inside this project?" It is machine-facing context that agents auto-load at session start, giving them the operational rules they need before touching a single file.
The distinction matters because the two files serve different audiences with different needs. A human reading a README wants a high-level overview. An AI agent reading AGENTS.md wants executable instructions: exact build commands with flags, test procedures with expected outputs, naming conventions, file boundaries, and architectural constraints. The format is stewarded by the Agentic AI Foundation (AAIF), a directed fund under the Linux Foundation — the same governance structure that manages Linux, Kubernetes, and Node.js. OpenAI originally pioneered the format for Codex, and in December 2025, it was donated to the AAIF alongside Anthropic donating the Model Context Protocol (MCP) and Block donating Goose.
The key principle: write only what agents cannot discover independently. If the agent can read your package.json and infer that you use npm, do not put that in AGENTS.md. If the agent cannot infer that your video renders must always target 30fps with sRGB color space, that belongs in AGENTS.md.
AGENTS.md vs CLAUDE.md vs .cursorrules: Which One Should You Use?
The 2026 landscape includes several competing context file formats, but they are more complementary than conflicting. Roughly 90% of the content across all three formats is identical — build commands, architecture rules, testing conventions, and boundaries do not change per tool.
AGENTS.md is the open, vendor-neutral standard. It has the broadest compatibility, with 30+ tools reading it natively. If you work across multiple AI coding agents or want maximum portability, this is your primary file. It uses a nearest-file-wins model: place an AGENTS.md at the root for global defaults, then drop additional AGENTS.md files in subdirectories. When the agent edits a file, it walks up the directory tree and uses the closest one. OpenAI's monorepo reportedly has 88 such files.
CLAUDE.md is Anthropic's Claude Code-specific format. Its unique feature is @imports that compose instructions from multiple files, plus a three-layer global/project/local hierarchy. If your team standardizes on Claude Code, CLAUDE.md gives you richer modularity. Many teams make CLAUDE.md a thin wrapper that imports AGENTS.md for shared content.
.cursorrules (now .cursor/rules/*.mdc) is Cursor-specific, using YAML frontmatter for glob-scoped activation — different rules for different file types. This is useful when you need per-filetype rules, such as different linting standards for TypeScript versus Python.
The 2026 best practice: start with AGENTS.md as your single source of truth. Add tool-specific files only for features AGENTS.md cannot express. Use a converter tool like rule-porter to translate between formats, or symlink the derived files so they never drift.
Why Creative Projects Need Agent Context Files More Than Code Projects
In traditional software engineering, agents can lean on decades of convention: test directories, build tools, linting configs. Creative projects have no such luxury. Every video pipeline, animation system, and design-to-code workflow has its own bespoke rules — frame rates, color spaces, naming conventions for shots and scenes, asset formats, brand guidelines, voice and tone.
Consider a creative pipeline that uses Gemini 3.1 and Claude Code to generate AI motion graphics with Remotion. Without an AGENTS.md file, the agent must be told in every session that scenes should follow a specific structure, that design references should be loaded from a particular directory, and that the render command targets a specific frame rate. With an AGENTS.md file, these rules are loaded automatically. The agent starts with the project's creative constraints baked in.
This matters enormously for consistency. Creative work lives and dies by consistency — consistent color palettes, consistent typography, consistent motion timing, consistent voice. When agents start each session without project context, they produce generic output. When they inherit an AGENTS.md file with explicit design tokens, rendering rules, and quality standards, they produce output that aligns with the project's creative direction from the first generation.
How to Structure an AGENTS.md File for Creative Workflows
The best practice for AGENTS.md is to aim for 500-2,000 tokens. Every token in the file is loaded on every agent invocation, so bloated files increase inference costs without improving results. A study of auto-generated context files found that LLM-generated AGENTS.md files often slightly reduced agent performance due to noise and redundancy, while developer-written files improved it. Quality and brevity matter more than mere existence.
Recommended Sections
Build and Render Commands: Exact commands with flags. For creative projects, this includes render commands (ffmpeg, Blender CLI, Remotion CLI), export targets, and expected output formats. Write executable specs, not wishlists — "Run npm run render -- --props=./scene.json" is actionable; "render the scene properly" is useless.
Directory Structure: Where footage, assets, renders, and finals live. Include rules like "never overwrite /finals, only write to /renders" to protect master outputs. For creative projects with complex asset pipelines, this section prevents agents from scattering files across the repo.
Naming Conventions: Shot names, scene numbers, file formats. Consistent naming is critical for creative projects where hundreds of assets must be organized and retrieved. Specify the pattern explicitly: "Scene files: S{number}_{description}.tsx (e.g., S01_intro.tsx)".
Design Tokens and Constraints: Color palettes, typography scales, spacing rules, motion timing. Reference the token files directly rather than restating values — "Use tokens from /design/tokens.json; do not introduce new type scales." This keeps the AGENTS.md short while pointing the agent to authoritative sources.
Quality Standards: Frame rates, color spaces, resolution targets, audio levels. For creative pipelines, these are the equivalent of linting rules — they define what "done" looks like.
Boundaries: Files and directories the agent should never modify. For creative projects, this often includes /finals, /master, /archive, and any locked creative briefs. Explicitly listing these prevents accidental overwrites of irreplaceable creative assets.
Real-World Impact: What the 2026 Data Shows
The productivity case for agent context files is backed by growing evidence. According to 2026 industry data, 85% of developers now use AI coding tools regularly, and 57% of organizations have AI agents in production. The AI agent market reached $10.91 billion in 2026, with projections of $52.63 billion by 2030 — a 46.3% compound annual growth rate.
Anthropic's 2026 Agentic Coding Trends Report found that approximately 27% of AI-assisted work consists of tasks that would not have been done otherwise — scaling projects, building nice-to-have tools like interactive dashboards, and exploratory work that would not be cost-effective manually. Engineers reported fixing more "papercuts" — minor quality-of-life improvements typically deprioritized — because AI made addressing them feasible.
Zapier, a leading AI orchestration platform, achieved 89% AI adoption across its organization with 800-plus AI agents deployed internally. Design teams use Claude artifacts to rapidly prototype during customer interviews, showing design concepts in real-time that would normally take weeks to develop. None of this works without persistent project context — the kind that AGENTS.md and CLAUDE.md files provide.
For creative teams specifically, the value proposition is sharper. Creative work involves more iteration cycles than typical software development. Each iteration that starts from zero — re-explaining the design system, re-specifying the render pipeline, re-stating the brand voice — is a tax on productivity. Agent context files eliminate that tax. The agent starts each session already knowing the project's rules, so the human can focus on creative direction instead of operational setup.
Common Anti-Patterns to Avoid
Over-specifying instructions: "Write clean code" is useless to an agent. "Run pnpm lint --fix before commit and ensure zero errors" is actionable. Every instruction should be executable or verifiable, not aspirational.
Duplicating rules across formats: If the same convention lives in AGENTS.md, .cursorrules, and CLAUDE.md, they will drift. Pick one source of truth and generate the others from it. Use a pre-commit hook or CI check that fails when a derived file is out of date with the source.
Writing for humans instead of agents: README prose is not agent context. AGENTS.md should be structured for machine parsing — short sections, clear headings, explicit commands. If a human cannot follow it without ambiguity, neither can an agent.
Auto-generating context files without review: LLM-generated AGENTS.md files tend to be verbose and repetitive. In controlled tests, they slightly reduced agent performance compared to no context file at all. Always review and trim auto-generated files to the essential 500-2,000 token range.
The Broader Shift: From Prompts to Project Memory
AGENTS.md represents a broader shift in how teams work with AI. In 2023, the dominant pattern was one-shot prompting — carefully crafted messages for each task. In 2025, it evolved to reusable skills and templates. In 2026, the pattern is project memory: persistent context files that give every agent session institutional knowledge without re-explanation.
This shift is particularly important for small businesses and creative teams that cannot afford to waste time on repetitive setup. A well-maintained AGENTS.md file is a one-time investment that pays dividends on every subsequent agent interaction. It encodes your project's operational knowledge in a format that every major AI coding tool can read, creating a portable, vendor-neutral asset that moves with your project.
The teams that will benefit most from AI coding agents in 2026 are not the ones with the best prompts — they are the ones with the best project memory. AGENTS.md is how you build it.
Frequently asked questions
- What is an AGENTS.md file and what is it used for?
- An AGENTS.md file is an open, vendor-neutral markdown file placed at the root of a project that provides AI coding agents with project-specific operational context. It contains build commands, coding conventions, testing rules, directory structure, and constraints that the agent cannot infer from the codebase alone. It is read automatically by over 30 AI coding tools including Codex, Cursor, Copilot, Gemini CLI, and Aider, making it the closest thing to a universal standard for guiding AI coding agents.
- How is AGENTS.md different from CLAUDE.md and .cursorrules?
- AGENTS.md is an open standard supported by 30+ AI coding tools, while CLAUDE.md is Anthropic-specific for Claude Code and .cursorrules is specific to the Cursor editor. About 90% of the content across all three formats is identical — build commands, architecture rules, and testing conventions do not change per tool. The best practice in 2026 is to write AGENTS.md as your single source of truth and add tool-specific files only for features AGENTS.md cannot express, such as Claude Code's @imports or Cursor's glob-scoped activation rules.
- How long should an AGENTS.md file be?
- An AGENTS.md file should aim for 500 to 2,000 tokens. Every token in the file is loaded on every agent invocation, so overly long files increase inference costs without improving results. Research has shown that auto-generated, bloated context files can actually reduce agent performance due to noise and redundancy. Focus on writing only what agents cannot discover independently — executable commands, explicit constraints, and project-specific conventions that the agent would otherwise have to guess.
- How do AGENTS.md files help with creative projects like video and animation?
- AGENTS.md files give AI coding agents the creative constraints and technical rules they need to produce consistent output across sessions. For video and animation pipelines, this includes render commands with exact flags, directory structures for footage and renders, naming conventions for scenes and shots, frame rates, color spaces, and design token references. Without an AGENTS.md file, agents start each creative session without project context and produce generic output. With it, they inherit the project's creative brief and quality standards automatically.
- How many projects have adopted the AGENTS.md standard in 2026?
- As of early 2026, over 60,000 open-source projects have adopted the AGENTS.md standard. The format is stewarded by the Agentic AI Foundation (AAIF), a directed fund under the Linux Foundation, alongside the Model Context Protocol (MCP) donated by Anthropic. It is supported natively by major AI coding tools including OpenAI Codex, Cursor, GitHub Copilot, Gemini CLI, Aider, Windsurf, and Zed.
- What are the best practices for writing an effective AGENTS.md file?
- Write only what agents cannot discover independently, aim for 500 to 2,000 tokens, and use executable specifications rather than aspirational guidelines. Include exact build and render commands with flags, explicit directory boundaries, naming conventions, and design constraints. Avoid duplicating rules across multiple context file formats, do not auto-generate files without review, and structure the content for machine parsing with short sections and clear headings. If a human cannot follow an instruction without ambiguity, neither can an AI agent.