agent: Support AGENT.md and AGENTS.md as rules file names (#31998)

These started to be used more recently, so we should also support them.

Release Notes:

- agent: Added support for `AGENT.md` and `AGENTS.md` as rules file
names.
This commit is contained in:
Danilo Leal 2025-06-03 15:19:39 -03:00 committed by GitHub
parent e793740168
commit 526a7c0702
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 14 additions and 3 deletions

View file

@ -70,13 +70,15 @@ impl Column for DataType {
}
}
const RULES_FILE_NAMES: [&'static str; 6] = [
const RULES_FILE_NAMES: [&'static str; 8] = [
".rules",
".cursorrules",
".windsurfrules",
".clinerules",
".github/copilot-instructions.md",
"CLAUDE.md",
"AGENT.md",
"AGENTS.md",
];
pub fn init(cx: &mut App) {