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

Daniel P. Berrangé posted 1 patch 2 days, 4 hours ago
.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
[PATCH] .claude: delete as Claude Code now honours AGENTS.MD by default
Posted by Daniel P. Berrangé 2 days, 4 hours ago
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.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
---

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

diff --git a/.claude/.gitignore b/.claude/.gitignore
deleted file mode 100644
index b0a57a19c01..00000000000
--- a/.claude/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-# reserved for the user to add their own per-project rules
-/CLAUDE.md
diff --git a/.claude/rules/agents-md.md b/.claude/rules/agents-md.md
deleted file mode 100644
index 43c994c2d36..00000000000
--- a/.claude/rules/agents-md.md
+++ /dev/null
@@ -1 +0,0 @@
-@AGENTS.md
-- 
2.55.0


Re: [PATCH] .claude: delete as Claude Code now honours AGENTS.MD by default
Posted by Paolo Bonzini 2 days, 4 hours ago
On 9/24/26 16:12, Daniel P. Berrangé wrote:
>>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.
> 
> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
> ---
> 
> 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