AGENTS.md
AGENTS.md is the central document that AI assistants read when entering your project. It defines principles, project context, documentation standards, and compliance auditing — everything an AI needs to work effectively in your codebase.
What it contains
Section titled “What it contains”AGENTS.md is structured in sections:
| Section | Purpose |
|---|---|
| Header | Project name, status, repo info, version metadata |
| Important Context | Critical background the AI must know |
| 11 Core Principles | Mandatory development rules (KISS, TDD, SOC, DRY, etc.) |
| Documentation Standards | AI-optimized documentation principles (Principle 5.5) |
| Jimmy’s Workflow | Validation checkpoint overview with link to full doc |
| Project Architecture | Service overview, dependencies, environment |
| Known Issues | Current bugs and limitations |
| Project-Specific Guidelines | Rules unique to this project |
| Common Patterns | Code patterns and conventions |
| Troubleshooting | Common problems and solutions |
| Template Versioning | Version tracking and sync instructions |
| Compliance Auditing | How to verify project follows the rules |
The 9 project-specific sections
Section titled “The 9 project-specific sections”The template has 9 sections marked with <!-- PROJECT_SPECIFIC START --> and <!-- PROJECT_SPECIFIC END --> comments. These are the sections you must fill in:
<!-- PROJECT_SPECIFIC START: IMPORTANT_CONTEXT -->Your critical project background here<!-- PROJECT_SPECIFIC END: IMPORTANT_CONTEXT -->| Section | What to write | Example |
|---|---|---|
IMPORTANT_CONTEXT | Background, history, constraints | ”This is a Tauri v2 app using SolidJS for the frontend” |
SERVICE_OVERVIEW | Architecture, components, data flow | Table of services with ports and responsibilities |
CURRENT_STATUS | What works, what’s in progress | Checkbox list of features and their state |
KNOWN_ISSUES | Bugs, limitations, workarounds | Numbered list with severity and notes |
PROJECT_SPECIFIC_GUIDELINES | Rules unique to this project | ”All API responses must use the Result type” |
COMMON_PATTERNS | Code patterns, naming conventions | Code snippets showing the expected pattern |
DEPENDENCIES | External services, APIs, databases | Table with name, purpose, and connection details |
ENVIRONMENT_VARIABLES | Required env vars | Table with var name, description, and example |
TROUBLESHOOTING | Common problems and fixes | ”If X fails, check Y” format |
The 11 Core Principles
Section titled “The 11 Core Principles”Every AGENTS.md includes these principles. They are non-negotiable and persist even after AI context compression:
- KISS — Keep It Simple, Stupid
- TDD — Test-Driven Development
- SOC — Separation of Concerns
- DRY — Don’t Repeat Yourself
- Documentation Standards — Factual, dated, objective
- AI-Optimized Documentation (5.5) — Structured data for humans AND AI
- Jimmy’s Workflow — Red/Green checkpoints (mandatory)
- YAGNI — You Ain’t Gonna Need It
- Fix Now — Never defer known issues
- Measure Twice, Cut Once — Verify before executing
- No Shortcuts — Complete the job properly
Plus Rule 11: Rules Persist — All rules remain in effect after context window compression.
See the full 11 Core Principles reference.
Principle 5.5: AI-Optimized Documentation
Section titled “Principle 5.5: AI-Optimized Documentation”This is one of the more distinctive features. It defines 7 principles for documentation that works for both humans and AI:
- Structured Data Over Prose — Tables, JSON, YAML instead of paragraphs
- Explicit Context — Never assume prior knowledge
- Cause-Effect Relationships — Clear “if X then Y” statements
- Machine-Readable Formats — Consistent dates, versions, status values
- Searchable Content — Keywords, anchors, consistent terminology
- Version-Stamped — Date all documentation updates
- Cross-Referenced — Explicit links between related docs
The agents.md standard
Section titled “The agents.md standard”AGENTS.md follows the agents.md standard — a community convention for AI-readable project files. CLAUDE.md references AGENTS.md, ensuring any AI tool that reads either file discovers the full project context.
Template versioning
Section titled “Template versioning”AGENTS.md includes version metadata in an HTML comment:
<!--TEMPLATE_VERSION: 1.7.0TEMPLATE_SOURCE: templates/core/AGENTS.md.templateLAST_SYNC: 2026-01-29-->Use the provided tools to check and sync versions (from inside the cloned repo):
cd Ydun_ai_workflowtemplates/tools/check-version.sh # Check if up to datetemplates/tools/sync-templates.sh # Sync while preserving customizationsGetting started
Section titled “Getting started”- Copy the template (from inside the cloned repo):
cp templates/core/AGENTS.md.template ./AGENTS.md - Fill all 9
PROJECT_SPECIFICsections - Verify:
grep -rn "\[.*\]" AGENTS.md | grep -v http - Read the AGENTS Template Guide for detailed section-by-section guidance