Skip to content

[infra] Add CLAUDE.md importing AGENTS.md#910

Merged
wenjin272 merged 1 commit into
apache:mainfrom
weiqingy:claude-md-agents-pointer
Jul 16, 2026
Merged

[infra] Add CLAUDE.md importing AGENTS.md#910
wenjin272 merged 1 commit into
apache:mainfrom
weiqingy:claude-md-agents-pointer

Conversation

@weiqingy

Copy link
Copy Markdown
Collaborator

Linked issue: #894

Purpose of change

Item 4 of #894: give Claude Code a pointer to the repository guide.

Claude Code reads CLAUDE.md, not AGENTS.md, so today it picks up nothing from AGENTS.md. This adds a one-line CLAUDE.md that imports the guide via @AGENTS.md, keeping a single source of truth with no duplicated content.

Following the issue discussion, this uses an @AGENTS.md import rather than a checked-in symlink. Both keep one source of truth and the symlink has Apache precedent (spark/airflow/superset/datafusion all check in CLAUDE.md as a symlink to AGENTS.md), but a symlink degrades on Windows: with core.symlinks=false git checks it out as a plain text file whose entire content is the string AGENTS.md, so an agent reading it gets nothing. The @AGENTS.md import is a real one-line file that works on every platform and leaves room for Claude-specific content later.

CLAUDE.md is added to tools/.rat-excludes alongside AGENTS.md, since a one-line import file cannot carry an Apache license header.

Tests

Not applicable — a one-line documentation pointer with no logic.

Ran ./tools/check-license.sh with the change: RAT passes, confirming CLAUDE.md is correctly excluded. The @AGENTS.md line is Claude Code's documented memory-import syntax (https://code.claude.com/docs/en/memory).

API

No. No public API change.

Documentation

  • doc-included

Claude Code reads CLAUDE.md, not AGENTS.md, so it currently picks up
nothing from the repository guide. Add a one-line CLAUDE.md that imports
AGENTS.md (@AGENTS.md), keeping a single source of truth while remaining
portable to contributors on Windows, where a checked-in symlink degrades
to a plain text file under core.symlinks=false.

Exempt CLAUDE.md from Apache RAT alongside AGENTS.md, since a one-line
import file cannot carry a license header.
@github-actions github-actions Bot added doc-included Your PR already contains the necessary documentation updates. fixVersion/0.4.0 priority/major Default priority of the PR or issue. labels Jul 16, 2026

@wenjin272 wenjin272 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wenjin272 wenjin272 merged commit c0c787f into apache:main Jul 16, 2026
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc-included Your PR already contains the necessary documentation updates. fixVersion/0.4.0 priority/major Default priority of the PR or issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants