TECHNICAL DEEP DIVE

AGENTS.md: The Product Manager's Guide to Briefing AI Coding Agents

By Institute of AI PM·14 min read·Nov 30, 2026

TL;DR

AGENTS.md is a plain Markdown file that tells AI coding agents (Cursor, Claude Code, GitHub Copilot, Codex, and 20+ others) what your project is about, how it is structured, and what rules apply. It became an open standard under the Linux Foundation in December 2025 and now lives in 60,000+ repositories. Product managers who understand what goes in AGENTS.md can dramatically improve how well AI agents serve their engineering team, without writing a single line of code.

The AI PM Minute

One tactic to make you a sharper AI PM, twice a week. 60 seconds to read. Free.

No fluff. Unsubscribe anytime.

What AGENTS.md Is and Why It Exists

When an engineer opens Cursor or runs Claude Code on a codebase for the first time, the AI agent has no idea what it is working on. It sees files. It infers structure. It guesses conventions. That guesswork produces suggestions that violate your naming rules, ignore your testing requirements, or use deprecated APIs your team phased out six months ago.

AGENTS.md fixes this. It is a plain Markdown file you check into the root of your repository that gives every AI coding agent a briefing before it touches your code. The format was introduced by OpenAI in August 2025, contributed to the Linux Foundation's Agentic AI Foundation (AAIF) in December 2025 alongside Anthropic's MCP and Block's Goose, and is now read by more than twenty tools including Cursor, GitHub Copilot, Codex, Jules, and OpenCode.

The file has no required schema and no validation step. That is intentional. Its power comes from flexibility: you tell agents exactly what they need to know for your specific product context, in whatever structure helps them understand it.

The agent reading order

Claude Code: CLAUDE.md by default; can be pointed at AGENTS.md or symlinked

Cursor: AGENTS.md at the repo root and in subdirectories

GitHub Copilot: AGENTS.md and .github/copilot-instructions.md

OpenAI Codex CLI: AGENTS.md at the repo root

Jules (Google): AGENTS.md as of its November 2026 update

The practical move: keep shared instructions in AGENTS.md and have CLAUDE.md reference it. That way all tools read the same ground truth.

How AI Coding Agents Use AGENTS.md

When an AI coding agent starts a session, it reads AGENTS.md before doing anything else. The instructions shape every decision it makes: which files to touch, which patterns to follow, which commands to run, and what to avoid. Think of it as the system prompt for your engineering team's AI.

Nested AGENTS.md files work in a hierarchical way. A root-level file covers the whole repository. A file in apps/api/ gives instructions specific to the API service. The closer file generally wins when rules conflict. This matters for monorepos where different packages have different conventions.

Before AGENTS.md

  • ✗Agent generates tests in a framework the team dropped last year
  • ✗Agent uses deprecated internal API patterns
  • ✗Agent runs build commands that consume expensive cloud credits
  • ✗Agent creates files in the wrong directory structure

After AGENTS.md

  • ✓Agent knows the team uses Vitest, not Jest
  • ✓Agent uses the current internal SDK conventions
  • ✓Agent knows which commands require explicit approval
  • ✓Agent follows the monorepo package structure

What to Put in Your AGENTS.md: A PM's Checklist

Product managers are well positioned to write or contribute to AGENTS.md because they understand the product context, the team's priorities, and what constitutes a good vs. bad output at the feature level. Here is what belongs in every AGENTS.md, with product manager ownership flagged.

Project overview (PM owns this)

One paragraph describing what the product does, who uses it, and what success looks like. This is the most important section. An agent that understands the product makes better tradeoffs.

Example: 'This is a B2B SaaS product for HR teams at mid-market companies. The core user workflow is running compensation benchmarking. Speed and data privacy are the two non-negotiable constraints.'

Tech stack and conventions (Engineering owns this)

Language versions, framework versions, test framework, linting rules, import conventions. This prevents agents from generating valid code that violates your team's standards.

Example: 'TypeScript 5.4, React 19, Vitest for unit tests, Playwright for E2E. Use named exports only. No barrel files.'

Commands and automation (Engineering owns this)

Which commands are safe to run, which require approval, and which should never run automatically. This prevents expensive or destructive automated actions.

Example: 'Run npm test freely. Never run npm run deploy without explicit confirmation. The seed:prod command drops and recreates the production database.'

What is out of scope (PM owns this)

Areas agents should not touch. This prevents well-intentioned agents from refactoring stable code, changing UI copy that went through legal review, or modifying authentication flows.

Example: 'Do not modify anything in /app/billing. Do not change UI copy in /content without noting it. Do not add new npm dependencies without asking.'

Active context (PM updates this)

What the team is currently working on, any active bugs to be aware of, or upcoming changes that affect decisions. Update this weekly or at sprint boundaries.

Example: 'We are migrating from REST to tRPC in Q1 2027. New code should use tRPC. The old REST routes in /api/v1 will be deprecated but are not to be touched until migration is complete.'

Learn AI PM Skills That Ship Products

The AI PM Masterclass covers how to work with AI coding tools, agentic workflows, and the technical decisions that drive product outcomes. Taught live by a Salesforce Sr. Director PM.

Common AGENTS.md Mistakes Product Teams Make

Most AGENTS.md failures come from one of four patterns. Knowing them upfront saves a lot of debugging time when agents start behaving unexpectedly.

Writing for humans, not agents

AGENTS.md is not documentation for new engineers. It is a briefing for a machine. Agents do not infer intent from prose. They follow explicit rules. Write in direct, imperative sentences: 'Use Vitest. Do not use Jest.' not 'We recently moved from Jest to Vitest as our test runner.'

Being too broad or too vague

Instructions like 'follow best practices' or 'write clean code' are meaningless to an agent. Best practices for what? Clean by whose standard? Agents perform better with specific, verifiable rules: 'All React components must have explicit return types. No implicit any.'

Never updating it

AGENTS.md reflects the state of your project at the time it was written. A file created six months ago and never touched since is actively harmful: it tells agents to follow conventions the team has since abandoned. Assign someone to review it at every sprint retrospective.

Putting everything in one root file

In a large monorepo, one root AGENTS.md serving 15 packages becomes unwieldy and contradictory. Use nested files. Each package gets its own AGENTS.md. The root file covers cross-cutting concerns. Packages inherit the root and can override locally.

No security review before publishing

AGENTS.md is a public file in a public repo. Do not put secrets, internal system names, or sensitive architectural details in it. Write as if it will be read by a competitor, because it may be.

AGENTS.md in the Agentic Engineering Workflow

In teams using AI coding agents heavily, AGENTS.md becomes a coordination layer between the product manager, the engineering team, and the AI tools. It is the place where product requirements and engineering constraints meet in a form that machines can act on.

Sprint start ritual

At the start of each sprint, the PM updates the 'active context' section of AGENTS.md with the current sprint goal, the features in progress, and any technical decisions made in planning. This takes five minutes and primes every agent session that week.

Feature branch AGENTS.md

For large features, create a temporary AGENTS.md in the feature directory. This scopes agent instructions to the specific work in progress without polluting the main file. Delete it when the feature merges.

Post-incident updates

After an incident caused or worsened by an AI suggestion, add an explicit rule to AGENTS.md. 'Do not modify the payment retry logic without explicit approval from the payments team.' This prevents the same class of problem from recurring.

Shared memory tools integration

Tools like Beacon (from Asymptote Labs, launched October 2026) build on top of AGENTS.md by learning from approved agent sessions and injecting institutional knowledge into future sessions across all engineers using compatible tools.

The Atlassian 2026 State of Teams report noted that AI agents can bridge planning documents and codebases when given the right context. AGENTS.md is that bridge. The PM who maintains it well is not doing extra work: they are making every engineer's AI-assisted session faster and more accurate.

Getting Your Team Started: A 30-Minute AGENTS.md Session

Most teams do not have an AGENTS.md. The best way to start is not to write a perfect one alone: it is to draft one together in a focused session, then iterate. Here is a structure that works.

1. 10 min: Gather the room

One PM, one tech lead, one senior engineer. That is enough. The goal is a rough v1, not a committee document. Open a blank Markdown file and share your screen.

2. 5 min: Product overview

PM writes two to three sentences: what the product does, who uses it, what constitutes a correct AI action vs. a harmful one. Focus on decisions that an AI agent might get wrong if it did not know this context.

3. 10 min: Engineering rules

Tech lead and engineer fill in stack, test framework, linting rules, and the 'never do this' list. Ask: 'What would you tell a new engineer on day one?' That is usually the right level of detail.

4. 5 min: Active context

PM adds the current sprint focus. What is the team building right now? What should agents prioritize and what should they leave alone? This section gets rewritten every sprint.

5. Commit, share, and iterate

Commit AGENTS.md to main. Share the commit in your engineering Slack channel with a note explaining what it is. After two sprints of using it, hold a 15-minute retrospective on what could be clearer or more accurate.

Teams that maintain a good AGENTS.md report that AI coding agents produce fewer corrections and more confident first drafts. The investment is about 30 minutes upfront and 10 minutes per sprint to keep it current. That is a low price for a persistent productivity multiplier across every engineer using AI tools on the codebase.

Ship Better Products With AI-Native Engineering

The AI PM Masterclass teaches how to work with AI coding tools, agentic workflows, and the technical context that separates great AI PMs from the rest. Jan 4 cohort enrolling now.

Before you go: get the AI PM Minute

One tactic to make you a sharper AI PM, twice a week. 60 seconds to read. Free.

No fluff. Unsubscribe anytime.