Skip to content

chore: add CLAUDE.md as symlink to AGENTS.md - #65

Merged
aliasunder merged 2 commits into
mainfrom
chore/claude-md-symlink
Aug 24, 2026
Merged

chore: add CLAUDE.md as symlink to AGENTS.md#65
aliasunder merged 2 commits into
mainfrom
chore/claude-md-symlink

Conversation

@aliasunder

Copy link
Copy Markdown
Owner

Summary

  • Adds CLAUDE.md as a symlink to AGENTS.md — Claude Code auto-reads CLAUDE.md at session start, so this eliminates the @AGENTS.md import indirection
  • umm-actually had no CLAUDE.md previously; other repos are switching from a redirect file to a symlink

Test plan

  • ls -la CLAUDE.md shows CLAUDE.md -> AGENTS.md
  • Claude Code session reads AGENTS.md content via the symlink

🤖 Generated with Claude Code

Claude Code auto-reads CLAUDE.md at session start. Symlinking to
AGENTS.md means Claude Code reads the shared conventions directly,
no @import indirection needed.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@umm-actually

umm-actually Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

umm-actually re-reviewed at fef47ad

1 new finding(s) posted (1 tracked finding(s) across all runs).


umm-actually · deepseek/deepseek-v4-flash-0731

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@aliasunder
aliasunder merged commit fa776b4 into main Aug 24, 2026
8 checks passed
@aliasunder
aliasunder deleted the chore/claude-md-symlink branch August 24, 2026 18:15
Comment thread CONTRIBUTING.md
Comment on lines +18 to +20
`git config core.symlinks true` before cloning, or re-clone after setting
it — otherwise Git checks out symlinks as plain text files containing the
target path.

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.

Enable core.symlinks with --global before cloning
Low severity · correctness · high confidence

The instruction git config core.symlinks true before cloning cannot do what it promises: before a clone exists there is no repository to write the config into, so the command errors with 'fatal: not in a git directory' when run in the intended clone directory, and if run inside an existing repo it only configures that repo, not the new clone. A following clone therefore keeps the default false, and CLAUDE.md still checks out as a plain text file — contradicting the note's stated fix.

Failure scenario: A Windows user runs the documented command in their clone target directory: git fails with 'fatal: not in a git directory', the clone proceeds with core.symlinks=false, and CLAUDE.md checks out as a text file containing 'AGENTS.md', defeating the note's purpose.

Suggested fix
Use the global scope so the setting applies to the new clone: `git config --global core.symlinks true` (and note that Windows also needs Developer Mode or an elevated shell for symlink creation to succeed).

umm-actually · deepseek/deepseek-v4-flash-0731

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.

1 participant