Open
Description
For better organization and modularity, the spec should support additionally crawling files in a directory, such as .agents.
By default, files within that directory will always be added to the context, but can be individually disabled within the IDE or code assistant tool (or with frontmatter, see #10).
For instance, a user might have a structure like this:
|-- .agents
| |-- naming-conventions.md
| |-- personality.md
| |-- project-overview.md
| `-- testing.md
`-- AGENTS.md
Prior art
- Cursor's
.cursor/rulesdirectory: https://docs.cursor.com/en/context/rules - RooCode's
.roo/rulesdirectory: https://docs.roocode.com/features/custom-instructions - Kilo Code's
.kilocode/rulesdirectory: https://kilocode.ai/docs/advanced-usage/custom-rules#rule-location - Trae's
.trae/rulesdirectory: https://docs.trae.ai/ide/rules-for-ai - Windsurf's
.windsurf/rulesdirectory: https://docs.windsurf.com/windsurf/cascade/memories#rules - Augment's
.augment/rulesdirectory: https://docs.augmentcode.com/setup-augment/guidelines#working-with-rules - VSCode's
.github/instructionsdirectory: https://code.visualstudio.com/docs/copilot/copilot-customization?wt.md_id=AZ-MVP-5004796#_use-instructionsmd-files
Reacted by Phil Miller, Yordis Prieto, Sam "Betty" McKoy, isgallagher, Deimantas Jakovlevas, Rémy Marquis, 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко), Luna, Neil Halelamien, Karl Horky and 75 more
Reacted by Artem Sapegin
Reacted by Karl Horky, Thayne McCombs, Mickaël Alves, Brad, 糊涂, pakelley, Luis Eduardo, Frank Bernhardt, benny daon, Marcus Lang and 12 more
Reacted by mbsanli
Metadata
Metadata
Assignees
Labels
No labels
Activity
danielmeppiel commentedon Aug 25, 2025
VSCode / GitHub Copilot is an example of modularization as well:
You can have any number of
.github/instructions/*.instructions.mdwhich already supportapplyToin the frontmatter (docs here).Matching patterns like
applyTosimplify the creation, distribution and reuse of context files.jsit commentedon Aug 25, 2025
@danielmeppiel Thanks, this is addressed in #10.
yordis commentedon Aug 25, 2025
I would prefer something like
.agents/rulesso that.agentsdirectory is set for future expansion without introducing breaking changes.Also, I would expect nested directories inside such rules. I use
.agents/rules/internalto have uncommitted rules, as an example.Or have hierarchical structure based on technologies or frameworks, or things of that nature
SinOverCos commentedon Sep 12, 2025
Wondering if @dkundel-openai or someone from OAI can comment on this -- is this considered for the spec or is this a dead end?
malhashemi commentedon Sep 19, 2025
@yordis totally agree on
.agents/rulesI was also coming to propose the following features to.agentsdirectory.agents/prompts/.agents/subagents/x.md.agents/rules/.agents/tools/for any executable tools and scriptsThere are tremendous amount of tools getting added everyday, and with each adding the same feature under different folder structure it is getting tedious having all these different folders in every codebase just to cover the dev tools of every developer.
TomLucidor commentedon Oct 7, 2025
Seconding this + find out only this issue got the Windsurf mention at the moment
P.S. please check https://github.com/intellectronica/ruler
BradKML commentedon Oct 9, 2025
@malhashemi but when will this get a PR, or adopted as the new standard? You do know that
description(universal?),globs(Cursor only),alwaysApply(Cursor) orauto_execution_mode(Windsurf) etc. shows that IDEs often differ from one another when it comes to headers?malhashemi commentedon Oct 9, 2025
@BradKML well they differ coz there is no standard. The standard in my opinion should evolve as more of the functionality becomes widely used enough that they need a standard. Descriptions for example is indeed global enough to be part of the header, there could be some sort of a key like
idethat allows for specific vendors header imagine something likeAt least we get to a point where every file can be reusable across IDEs rather than having a mess of various
.vendorfolders per codebase.danielmeppiel commentedon Oct 9, 2025
Hi folks,
I am proposing a paradigm / tooling to handle this called Agent Package Manager. It basically builds on what we are raising here. Have a look at https://github.com/danielmeppiel/apm
Allows to install modular instructions/prompts and "compile" instructions that use
applyTopatterns into nestedAgents.md. So this is portable across clients.malhashemi commentedon Oct 9, 2025
@danielmeppiel Hi, thanks for making this, how would this work with something like OpenCode? Where there are agents, subagents, commands, MCPs, custom tools, AGENTS.md files etc. Or even Claude Code subagents, output-styles etc. If team members who are working on the same project have their own dev workflows that they like to use how would it accommodate that? I have something in mind to build addressing this but was hoping for a standard to emerge rather than the current wild west.
danielmeppiel commentedon Oct 9, 2025
@malhashemi OpenCode and Claude Code both support the Agents.md standard.
APM just allows teams to dynamically generate the Agents.md nested hierarchy for their project out of context packages. Coding agents that support the Agents.md standard will just honor those once they've been created. Agents.md is the gluing standard here.
If they have their own workflows (i.e. prompts), they can just store them locally. Example project here.
BradKML commentedon Oct 13, 2025
Also, I realized that symlinks are a halfway solution for directories (but people say it is harmful) https://kau.sh/blog/agents-md/ https://pnote.eu/notes/agents-md/
mathieufortin01 commentedon Oct 16, 2025
Nested directories should be part of this feature. One other use case is propagating common set of rules to bunch of repos. With cursor we can have a dedicated subfolder, containing a bunch of .mdc files. It makes things well organized and easy to sync. That said, it could also use a dedicated file prefix in a single folder.
waldyrious commentedon Oct 24, 2025
FYI, the recently announced Claude Skills are based on a hierarchical structure of files under a base directory, which greatly overlaps with the functionality that would be unlocked by this feature.
BradKML commentedon Oct 24, 2025
The issue would be whether Claude Skills will be rolled into AGENTS.md standard, or they are just gonna make it exclusive
JolanDeNef commentedon Nov 24, 2025
Interesting development is that Google's Antigravity (build by the developers they brought over from Windsurf) now uses the .agent/ folder.
This also means that e.g. rules and workflows from .windsurf will work if you copy (or symlink) them to the .agent folder.
First step in generalisation?
leochiu-a commentedon Dec 3, 2025
I added support in universal-agents for
AGENTS.mdto read the.agents/subfolder.TomLucidor commentedon Dec 8, 2025
@danielmeppiel are there ways of creating a less fractured multi-IDE ecosystem for this simple folder-based design? (Ruler vs APM vs Universal Agents vs other services)
jsit commentedon Dec 8, 2025
That’s what AGENTS.md, this very repo, was supposed to solve. But this project seems effectively abandoned.
TomLucidor commentedon Dec 8, 2025
@jsit cus
AGENTS.mdis a bad spec compared to what everyone else want to do for a whole folder... Which is sad cus OpenAI is gonna do what they wantyordis commentedon Dec 17, 2025
Cursor added support for the
RULE.mdfile, migrating away from*.mdc. Putting the extension aside, I feel that this rules spec should be based on aRULE.mdfile, where the directory name becomes its name.If a
RULE.mdwants to reference other markdown files, scripts, and so on, having the directory allows that to happen without so many edge cases, such as markdown files leaking into therulesdirectory and accidentally becoming a rule.This is done already by
SKILLS.mdfile as well, same deal there.stefanlasiewski commentedon Mar 10, 2026
So if AGENTS.md is effectively abandoned (I Hardly Knew Ye), is there any other movement towards a common spec?
w0rp commentedon Apr 22, 2026
I would like to suggest on this issue that the world standard be made using
@to reference other files to import for instructions.I symlink
CLAUDE.mdtoAGENTS.mdto make it compatible with what everyone else is doing. If we can simply name files to reference with@then we'll have a common format that works with Claude Code, OpenCode, Codex, everything.The key advantage here is we don't need to bicker about what the best directory name is and then end up with yet another standard, we can just make projects work with whatever folder names we want forever.
tredondo commentedon May 3, 2026
Notable absence: Zed. @yeskunall
stolsvik commentedon Aug 31, 2026
That would also be doable with @-imports (#11), which are more flexible - so rather that!