You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reacted by Nate, Bhaumin, Karl Horky, Tan Wang, Marco Muser, Sheng-Han (Aysh) Su, Thayne McCombs, Glenn 'devalias' Grant, Cameron Brill, Junghun Kim and 8 more
Reacted by Karl Horky, Thayne McCombs and Savenkov Igor
The Cursor specification around the topic is quite frustrating to use, primarily because the discrimination union of the Rule Type are based on the combination of the values instead of being just a field, eg:
kind: always | auto | requested | manual
That would drive the correctness of the payload, I ended up having to create a complex prompting to correct the LLMs in such trivial matter because the combination of things made up the intent.
Lastly, althou I agree that we should have some level of agreement around the topic, starting with an spec that isn't intrusive to existing tool will allow those tools to opt-in for the usage of the spec
The spec could be conservative around such feature until there is a proven worth to add to the spec path forward. I rather observe that enforce the spec around the topic. Everything could add their own frontmatter as any other markdown file for the time being
I'm working on consolidating Copilot and Cursor configs into AGENTS.md to simplify things for a large team and finding that not having this feels like a regression from .cursor/rules/ + making adoption harder.
Reacted by Neil Halelamien, Karl Horky and Cameron Brill
Thanks for this proposal and the .agents/*.md proposal in #9 🙌 I came to the repo today to open similar issues.
An AGENTS.md file (or other files inside a directory, see #9) will be added to the chat context only when the conditions in its metadata are met.
One minor distinction that comes up for me: it seems like front matter will be most useful in the multiple .agents/*.md files. Front matter will be less useful in AGENTS.md files (even if there are multiple AGENTS.md files in nested folders), since there's a conflict between these usage details:
AGENTS.md files will in most cases contain instructions for multiple file types
front matter is for specifying globs that all rules in the file apply to
So it feels like probably the .agents/*.md proposal in #9 should be a prerequisite for front matter support.
Reacted by Tan Wang, Thayne McCombs, M. Adel Alhashemi and Mark Ferguson
CONSTITUTION.md having some frontmatter may be useful, and not for "applies to" globs. There may be some data about the entire workspace that is needful for the copilot hosting tool to pick up.
Another potential usecase for having frontmatter in AGENTS.md is around helping open source project communicate to new contributors using agents.
For example, some projects have LLM policies, contibuting guidelines, etc that new contributors sometimes miss and are later disappointed because their contribution is rejected.
To solve this I'd love to be able do something like:
---welcomeMessage: "Welcome, be sure to read our AI_POLICY.md"---
and have all harnesses display this message the user the first time they open the project.
I could also see usecases were some projects do not want to accept AI contributions and so being able to have a disable: true in the frontmatter to have the harness disable itself with a notice to the user, would save the maintainers time and avoid contributors wasting tokens.
The reason I think this is valuable in AGENTS.md is that these kinds of things are not exactly top priority for most harnesses and having a single standard would help incentive adoption.
Reacted by teor, Jonas Böttiger, Sam Kellam and Thayne McCombs
Activity
yordis commentedon Aug 20, 2025
The Cursor specification around the topic is quite frustrating to use, primarily because the discrimination union of the Rule Type are based on the combination of the values instead of being just a field, eg:
That would drive the correctness of the payload, I ended up having to create a complex prompting to correct the LLMs in such trivial matter because the combination of things made up the intent.
Lastly, althou I agree that we should have some level of agreement around the topic, starting with an spec that isn't intrusive to existing tool will allow those tools to opt-in for the usage of the spec
neilsh commentedon Sep 2, 2025
Worth noting that Jetbrains'
.aiassistant/rules/.mdfiles also support frontmatter, although with different fieldnames from Cursor:https://www.jetbrains.com/help/ai-assistant/configure-project-rules.html
example: https://resources.jetbrains.com/help/img/idea/project_code_review_guidelines.md
yordis commentedon Sep 2, 2025
The spec could be conservative around such feature until there is a proven worth to add to the spec path forward. I rather observe that enforce the spec around the topic. Everything could add their own frontmatter as any other markdown file for the time being
beingminimal commentedon Sep 3, 2025
This feature must be supported, we are already using in vs code and it's helping a lot. Thanks
SinOverCos commentedon Sep 11, 2025
I'm working on consolidating Copilot and Cursor configs into AGENTS.md to simplify things for a large team and finding that not having this feels like a regression from
.cursor/rules/+ making adoption harder.karlhorky commentedon Sep 12, 2025
Thanks for this proposal and the
.agents/*.mdproposal in #9 🙌 I came to the repo today to open similar issues.One minor distinction that comes up for me: it seems like front matter will be most useful in the multiple
.agents/*.mdfiles. Front matter will be less useful inAGENTS.mdfiles (even if there are multipleAGENTS.mdfiles in nested folders), since there's a conflict between these usage details:AGENTS.mdfiles will in most cases contain instructions for multiple file typesSo it feels like probably the
.agents/*.mdproposal in #9 should be a prerequisite for front matter support.shueybubbles commentedon Apr 16, 2026
CONSTITUTION.md having some frontmatter may be useful, and not for "applies to" globs. There may be some data about the entire workspace that is needful for the copilot hosting tool to pick up.
ranger-ross commentedon Oct 16, 2026
Another potential usecase for having frontmatter in
AGENTS.mdis around helping open source project communicate to new contributors using agents.For example, some projects have LLM policies, contibuting guidelines, etc that new contributors sometimes miss and are later disappointed because their contribution is rejected.
To solve this I'd love to be able do something like:
and have all harnesses display this message the user the first time they open the project.
I could also see usecases were some projects do not want to accept AI contributions and so being able to have a
disable: truein the frontmatter to have the harness disable itself with a notice to the user, would save the maintainers time and avoid contributors wasting tokens.The reason I think this is valuable in
AGENTS.mdis that these kinds of things are not exactly top priority for most harnesses and having a single standard would help incentive adoption.