Skip to content

fix(agents): symlink AGENTS.md into ~/.claude for @import - #4

Merged
asainz merged 1 commit into
mainfrom
fix-claude-agents-import-resolution
Jul 6, 2026
Merged

fix(agents): symlink AGENTS.md into ~/.claude for @import#4
asainz merged 1 commit into
mainfrom
fix-claude-agents-import-resolution

Conversation

@asainz

@asainz asainz commented Jul 6, 2026

Copy link
Copy Markdown
Owner

Problem

~/.claude/CLAUDE.md contains only @AGENTS.md but no sibling AGENTS.md exists in ~/.claude. The import only resolves because Claude follows the symlink back to the repo dir — fragile and non-obvious.

Changes

  • Symlink configs/agents/AGENTS.md into ~/.claude/ so @AGENTS.md resolves locally, independent of symlink realpath behavior
  • Document the new destination in the config table

🤖 Generated with Claude Code

# Current problem

~/.claude/CLAUDE.md contains only `@AGENTS.md` but no sibling AGENTS.md
exists in ~/.claude. The import only resolves because Claude follows the
symlink back to the repo dir, which is fragile and non-obvious.

# Proposed solution

Symlink configs/agents/AGENTS.md into ~/.claude/ so @AGENTS.md resolves
locally, independent of symlink realpath behavior. Document the new
destination in the config table.
@asainz
asainz merged commit 0f64165 into main Jul 6, 2026
6 checks passed
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