Skip to content

chore: Symlink CLAUDE.md to AGENTS.md #2279

Merged
raethlo merged 4 commits intomasterfrom
claude/add-claude-symlink-ak2uY
Feb 26, 2026
Merged

chore: Symlink CLAUDE.md to AGENTS.md #2279
raethlo merged 4 commits intomasterfrom
claude/add-claude-symlink-ak2uY

Conversation

@raethlo
Copy link
Contributor

@raethlo raethlo commented Feb 24, 2026

Creates a CLAUDE.md symlink pointing to AGENTS.md so Claude Code (the Anthropic CLI tool) automatically picks up the project's AI assistant rules without duplicating content.

https://claude.ai/code/session_01Y6n2rcJX5NJ3UqiCJ45WZ9


Note

Low Risk
Adds a new top-level rules file reference only; no product code or runtime behavior is affected.

Overview
Adds CLAUDE.md containing AGENTS.md so Claude Code can automatically pick up the repository’s AI assistant rules without duplicating the vendor-agnostic guidelines.

Written by Cursor Bugbot for commit f5a910d. Configure here.

Creates a CLAUDE.md symlink pointing to AGENTS.md so Claude Code (the
Anthropic CLI tool) automatically picks up the project's AI assistant
rules without duplicating content.

Updates CONTRIBUTING.md to document the symlink under the AI assistant
rules structure section, alongside the existing Cursor-specific rules.

https://claude.ai/code/session_01Y6n2rcJX5NJ3UqiCJ45WZ9
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

This is the final PR Bugbot will review for you during this billing cycle

Your free Bugbot reviews will reset on March 24

Details

Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

Comment @cursor review or bugbot run to trigger another review on this PR

@@ -0,0 +1 @@
AGENTS.md No newline at end of file
Copy link

Choose a reason for hiding this comment

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

Symlink CLAUDE.md won't work reliably across platforms

Medium Severity

CLAUDE.md is created as a symlink to AGENTS.md, but Claude Code documentation states it expects a "standard markdown text file (not a symlink)." On Windows, where git typically materializes symlinks as regular text files, this results in CLAUDE.md containing only the literal text AGENTS.md rather than the actual project rules. Claude Code also has documented symlink resolution bugs (anthropics/claude-code issues #764, #10522). This means contributors on Windows (or in environments where symlinks aren't supported) would have Claude Code read useless single-line instructions instead of the actual project standards.

Fix in Cursor Fix in Web

@raethlo raethlo changed the title Add CLAUDE.md symlink to AGENTS.md for Claude Code Symlink CLAUDE.md to AGENTS.md Feb 24, 2026
@raethlo raethlo changed the title Symlink CLAUDE.md to AGENTS.md chore: Symlink CLAUDE.md to AGENTS.md Feb 24, 2026
@apify-service-account
Copy link

Preview for this PR was built for commit 09917ba4 and is ready at https://pr-2279.preview.docs.apify.com!

@TC-MO
Copy link
Contributor

TC-MO commented Feb 25, 2026

CLAUDE.md need to be added to markdownlint exceptions otherwise it will go crazy. I'll fix it and it should be ready to merge after that

@apify-service-account
Copy link

Preview for this PR was built for commit b3a563e8 and is ready at https://pr-2279.preview.docs.apify.com!

Copy link
Contributor

@TC-MO TC-MO left a comment

Choose a reason for hiding this comment

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

LGTM

@raethlo raethlo merged commit d87430d into master Feb 26, 2026
13 checks passed
@raethlo raethlo deleted the claude/add-claude-symlink-ak2uY branch February 26, 2026 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants