Teams are introducing AGENTS.md files, which give Claude Code and other agents consistent, guidance for repos or sections of the codebase. We need generalized guidance for how to best set up such files across all drivers and ODM repos. This does not imply one global file, or a set of fixed requirements that each project is required to meet, but rather an evolving set of best-practices. Individual teams are free to selectively implement those best practices into their own repositories. The guidance should include information on what should be present, how we validate what should be added, how we remove items and validate their removal.
Anthropic documents AGENTS.md as the place to capture persistent project context such as coding standards, workflow rules, architectural decisions, build/test commands, repository etiquette, and non-obvious gotchas, especially the information Claude cannot reliably infer from code alone. Extensive documentation must be balanced against the need to avoid extensive context, as well as redundant or even contradictory instructions.
Standardizing this across repositories would improve the quality and consistency of AI-assisted contributions by reducing repeated prompt setup, making repo conventions explicit, and ensuring shared instructions travel with the codebase in source control. Because project AGENTS.md files are team-shared and versioned in git, they can become a durable layer of operational knowledge that helps onboard contributors faster and keeps Agents (claude / copilot etal) aligned with each repository’s expectations over time.
Note that this should apply to any DBX repository such as:
- specifications
- drivers
- ODMs
- libraries
- tools
Why AGENTS.md over CLAUDE.md: See: https://wiki.corp.mongodb.com/spaces/MMS/pages/499158370/Making+a+Repo+Agent+Ready
We want this process to be iterative, so after this is ready for teams to implement, file a follow-up DRIVERS ticket for Q4 to revisit and reassess.
- is related to
-
CSHARP-1234 Using Dollar Projection operator works with expression trees but not with builders.
-
- Closed
-
- related to
-
JAVA-6143 Add AGENTS.md
-
- In Code Review
-
- split to
-
CDRIVER-6276 AGENTS.md standardization for all DBX Repositories
-
- Backlog
-
-
CXX-3440 AGENTS.md standardization for all DBX Repositories
-
- Backlog
-
-
EF-308 Introduce a standardized AGENTS.md into all DBX Repositories
-
- Backlog
-
-
HIBERNATE-158 Introduce a standardized CLAUDE.md into all DBX Repositories
-
- Backlog
-
-
PHPLIB-1815 AGENTS.md standardization for all DBX Repositories
-
- Backlog
-
-
PHPORM-478 Introduce a standardized CLAUDE.md into all DBX Repositories
-
- Backlog
-
-
RUST-2388 AGENTS.md standardization for all DBX Repositories
-
- Backlog
-
-
GODRIVER-3845 AGENTS.md standardization for all DBX Repositories
-
- Blocked
-
-
NODE-7494 AGENTS.md standardization for all DBX Repositories
-
- Blocked
-
-
CSHARP-5943 AGENTS.md standardization for all DBX Repositories
-
- In Code Review
-
-
INTPYTHON-939 Introduce a standardized CLAUDE.md into all DBX Repositories
-
- In Code Review
-
-
PYTHON-5768 AGENTS.md standardization for all DBX Repositories
-
- In Code Review
-
-
JAVA-6146 AGENTS.md standardization for all DBX Repositories
-
- In Progress
-
-
MONGOID-5929 Standardize AGENTS.md in Mongoid
-
- Closed
-
-
RUBY-3795 AGENTS.md standardization for all DBX Repositories
-
- Closed
-
-
JAVAF-49 Introduce a standardized CLAUDE.md into all DBX Repositories
-
- Investigating
-