Skip to contentSkip to conversation

.claude: delete as Claude Code now honours AGENTS.MD by default

PATCH In review Daniel P. Berrangé 2 participants 2 messages Sep 24

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 .claude: delete as Claude Code now honours AGENTS.MD by default

From the release notes for Claude Code 2.1.77:

https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md

"Added AGENTS.md support: in a project with no CLAUDE.md,
Claude Code reads AGENTS.md instead"

If we assume people will keep their Claude Code updated, then the .claude rules we added to link to AGENTS.md are now redundant, or very soon will be.

---

How quickly should we remove this ? We only just added it very recently so it is barely a regression to remove it, but we could wait some $small months for people to upgrade >= 2.1.77 ?

 .claude/.gitignore         | 2 --
 .claude/rules/agents-md.md | 1 -
 2 files changed, 3 deletions(-)
 delete mode 100644 .claude/.gitignore
 delete mode 100644 .claude/rules/agents-md.md
.claude/.gitignore deleted +0 -2
deleted file mode 100644
index b0a57a19c01..00000000000
@@ -1,2 +0,0 @@
-# reserved for the user to add their own per-project rules
-/CLAUDE.md
.claude/rules/agents-md.md deleted +0 -1
deleted file mode 100644
index 43c994c2d36..00000000000
@@ -1 +0,0 @@
[email protected]
Signature · 1 line
2.55.0
#1 lore raw
Quoted 11 lines · Daniel P. Berrangé
Quoted 1 line

From the release notes for Claude Code 2.1.77:

https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md

"Added AGENTS.md support: in a project with no CLAUDE.md,
Claude Code reads AGENTS.md instead"

If we assume people will keep their Claude Code updated, then the .claude rules we added to link to AGENTS.md are now redundant, or very soon will be.

Quoted 6 lines

---

How quickly should we remove this ? We only just added it very recently so it is barely a regression to remove it, but we could wait some $small months for people to upgrade >= 2.1.77 ?

We could even do it now, but we would only be removing the .claude/rules directory because we will still need to symlink .claude/skills to .agents/skills soon; and if the directory is present then the .gitignore file might stay there anyway.

Paolo