Skip to content

chore: add CLAUDE.md bridge so Claude Code loads AGENTS.md#9

Merged
cwillisf merged 1 commit into
mainfrom
chore/claude-md-agents-bridge
Jun 15, 2026
Merged

chore: add CLAUDE.md bridge so Claude Code loads AGENTS.md#9
cwillisf merged 1 commit into
mainfrom
chore/claude-md-agents-bridge

Conversation

@cwillisf

Copy link
Copy Markdown
Contributor

Proposed Changes

Add a one-line CLAUDE.md whose only content is @AGENTS.md, so Claude Code (which reads CLAUDE.md, not AGENTS.md) picks up the existing agent guide. Also document the bridge in the AGENTS.md template: a standing instruction for anyone adapting the template, plus a bullet in the org-defaults file list noting the new file.

Resolves

Not a bug fix; no associated issue. This is a small tooling and documentation change.

Reason for Changes

Claude Code only loads CLAUDE.md. Repos that keep their guidance in AGENTS.md are therefore invisible to it, which matters most when working from a parent directory that holds several repos and the per-repo guide should load on demand.

I verified against the current Claude Code (2.1.158) that AGENTS.md is not read natively, and that a CLAUDE.md containing @AGENTS.md does load the imported content, including when the file sits in a subdirectory that loads on demand. A plain import file is used rather than a symlink, because a committed symlink does not survive Windows checkouts. Other agent tools keep reading AGENTS.md directly, so no content is duplicated.

Test Coverage

This repository has no build step or test suite (prose and Markdown only). Verified manually with the installed Claude Code: a CLAUDE.md whose only content is @AGENTS.md loads the AGENTS.md content, while a directory containing only AGENTS.md does not load it.

Claude Code reads CLAUDE.md, not AGENTS.md. Add a one-line CLAUDE.md
(@AGENTS.md import) so the existing agent guide loads, and document the
bridge in the AGENTS.md template so repos adopting the template add the
same file. Other agent tools keep reading AGENTS.md directly.

Copilot AI 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.

Pull request overview

Adds a minimal bridge file so Claude Code loads this repository’s existing agent guidance (kept in AGENTS.md), and documents that convention in the template.

Changes:

  • Add CLAUDE.md containing only @AGENTS.md so Claude Code imports the guide.
  • Document the CLAUDE.md bridge requirement in AGENTS.md (template guidance + org-defaults file list update).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
CLAUDE.md Adds a one-line import so Claude Code loads AGENTS.md.
AGENTS.md Documents the CLAUDE.md bridge and lists it among org-default files.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cwillisf cwillisf merged commit f99a551 into main Jun 15, 2026
2 checks passed
@cwillisf cwillisf deleted the chore/claude-md-agents-bridge branch June 15, 2026 16:34
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants