Skip to content

chore(docs): canonicalize AI policy in AGENTS.md; CLAUDE.md is a pointer#10

Merged
JacobPEvans-personal merged 1 commit into
mainfrom
feat/claude-md-to-agents-md
May 30, 2026
Merged

chore(docs): canonicalize AI policy in AGENTS.md; CLAUDE.md is a pointer#10
JacobPEvans-personal merged 1 commit into
mainfrom
feat/claude-md-to-agents-md

Conversation

@JacobPEvans-personal
Copy link
Copy Markdown
Member

Summary

Move all content from CLAUDE.md into a new AGENTS.md. Replace CLAUDE.md with @AGENTS.md. Same pattern terraform-github and the rest of the workspace already use.

Why: Other agents (Codex, Gemini, generic AGENTS.md-aware tools) don't read CLAUDE.md. The org-wide AI policy was hidden from them. Canonicalizing in AGENTS.md makes it visible to every agent, with Claude pulling it in via the @AGENTS.md reference.

Diff shape

  • AGENTS.md — new, 106 lines. Verbatim copy of the old CLAUDE.md content with two small adjustments:
    • Opening: "This file is the canonical AI-assistant guidance""Canonical AI-assistant guidance" (the file is AGENTS.md now; the self-reference is unnecessary).
    • "Repo-level CLAUDE.md files may extend or specialize""Repo-level AGENTS.md files may extend or specialize" (repos following the same pattern have their substantive content in their own AGENTS.md).
  • CLAUDE.md — now three lines (# AI Agents Configuration + blank + @AGENTS.md). Claude picks up the @AGENTS.md reference and loads AGENTS.md as context.

JacobPEvans/* references in the inheritance tables and links are left as-is per ~/CLAUDE.local.md's redirect rules — they resolve via GitHub's transfer redirects and shouldn't be mass-rewritten on sight.

Test plan

  • markdownlint-cli2 AGENTS.md CLAUDE.md → 0 errors
  • Commit GPG-signed
  • Spot-check rendered AGENTS.md on GitHub web
  • Confirm Claude follows @AGENTS.md in a new session in this repo (the @ import syntax is what other workspace repos use; behavior matches terraform-github/CLAUDE.md)

Other agents (Codex, Gemini, generic AGENTS.md-aware tools) don't read
CLAUDE.md. Moving the org-wide AI policy into AGENTS.md makes it visible
to every agent, not just Claude. CLAUDE.md becomes a one-line `@AGENTS.md`
reference — the same pattern terraform-github and the workspace's other
repos already use.

Content moved verbatim. Two adjustments to reflect the new home:

- Opening line: "This file is the canonical AI-assistant guidance" ->
  "Canonical AI-assistant guidance" (the file is AGENTS.md now; the
  phrasing no longer needs the self-reference).
- "Repo-level CLAUDE.md files may extend or specialize" ->
  "Repo-level AGENTS.md files may extend or specialize" (repos that
  extend org policy do so in their own AGENTS.md, with their CLAUDE.md
  as `@AGENTS.md`).

JacobPEvans/* references in the tables and links are left as-is per the
redirect rules in ~/CLAUDE.local.md — they still resolve via GitHub's
transfer redirects and shouldn't be mass-rewritten on sight.

Verification
------------
- markdownlint-cli2 AGENTS.md CLAUDE.md -> 0 errors

Assisted-by: Claude <noreply@anthropic.com>
@JacobPEvans-personal JacobPEvans-personal merged commit 117cdc7 into main May 30, 2026
1 check 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