fix(@schematics/angular): generate CLAUDE.md for Claude Code instead of AGENTS.md - #33818
Open
lacolaco wants to merge 1 commit into
Open
fix(@schematics/angular): generate CLAUDE.md for Claude Code instead of AGENTS.md#33818lacolaco wants to merge 1 commit into
lacolaco wants to merge 1 commit into
Conversation
…of AGENTS.md Fixes angular#33817 Claude Code explicitly looks for a `CLAUDE.md` file in the project directory at the start of every session. In a previous update, this was unintentionally changed to generate `AGENTS.md`, which is a different community standard. This commit restores the generation of `CLAUDE.md` for Claude Code.
There was a problem hiding this comment.
Code Review
This pull request updates the Angular AI configuration schematic to generate CLAUDE.md instead of AGENTS.md for the claude-code tool. This change is reflected in the tool configuration, schema descriptions, and associated unit tests. I have no feedback to provide as there are no review comments.
alan-agius4
approved these changes
Aug 8, 2026
alan-agius4
left a comment
Collaborator
There was a problem hiding this comment.
LGTM, thanks for this.
For context: https://code.claude.com/docs/en/memory#agents-md
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Checklist
Please check to confirm your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
When using
ng neworng generate ai-configand selectingClaude Code, it incorrectly generatesAGENTS.mdfor Claude Code.Issue Number: #33817
What is the new behavior?
Generates
CLAUDE.mdinstead ofAGENTS.mdwhenClaude Codeis selected, aligning with Anthropic's official Claude Code documentation for project instructions.Does this PR introduce a breaking change?
Other information
This fixes a regression introduced in 22.1.0 where generating AI configuration for Claude Code (
claude-code) incorrectly grouped it with other tools that generateAGENTS.md. According to Anthropic's official Claude Code documentation, the tool explicitly looks for aCLAUDE.mdfile in the project directory at the start of every session to serve as its system ruleset and permanent memory.Additionally, this generation strategy creates a
.mcp.jsonfile. According to the official Claude Code MCP documentation: