Skip to content

Migrate committed CLAUDE.md to AGENTS.md + gitignored CLAUDE.local.md - #36

Merged
zircote merged 2 commits into
mainfrom
fix/issue-26-agents-md-migration
Jul 15, 2026
Merged

Migrate committed CLAUDE.md to AGENTS.md + gitignored CLAUDE.local.md#36
zircote merged 2 commits into
mainfrom
fix/issue-26-agents-md-migration

Conversation

@zircote

@zircote zircote commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Moves CLAUDE.md's content into AGENTS.md per attested-delivery/CLAUDE.md §10, and removes the committed CLAUDE.md — no stub is kept since AGENTS.md is natively read by Claude Code, matching attested-delivery/go-htmx's existing convention.

This repo has real tooling wired to the CLAUDE.md filename specifically, so a plain content move alone would have silently broken things. Updated every consumer instead of leaving them stale:

  • site/scripts/generate-reference-pages.mjs — reads AGENTS.md now instead of CLAUDE.md (verified locally: regenerates identical .mdx output).
  • .github/workflows/docs-deploy.yml — path trigger changed from CLAUDE.md to AGENTS.md.
  • .github/workflows/docs-freshness.md — source prose updated to describe the new mechanism (its compiled .lock.yml still lists both AGENTS.md and CLAUDE.md in a generic gh-aw-provided agent-file constant, unrelated to this repo's actual files — recompiling would have pulled in an unrelated gh-aw version bump, so it was left as-is).
  • Prose mentions across README.md, CONTRIBUTING.md, SUPPORT.md, docs/explanation/architecture.md, docs/template/CI-WORKFLOWS.md, docs/template/CONFIGURATION.md, docs/template/GITHUB-TEMPLATE-FEATURES.md, docs/tutorials/first-project.md.

CHANGELOG.md is left untouched — its CLAUDE.md mentions are historical record of past changes, not current-state documentation.

Also adds CLAUDE.local.md to .gitignore per the new convention (it wasn't covered by the existing *.local pattern, since it doesn't end in .local).

Closes #26

CLAUDE.md's content is now AGENTS.md's content (AGENTS.md is natively
read by Claude Code, so no CLAUDE.md stub is needed for tooling
discovery). Updates every consumer that referenced CLAUDE.md by name
so nothing silently breaks: the Starlight reference-page generator
(site/scripts/generate-reference-pages.mjs), the docs-deploy trigger
path, the docs-freshness workflow's own description, and the prose
mentions across README/CONTRIBUTING/SUPPORT/docs. CHANGELOG.md is
left untouched as a historical record. Adds CLAUDE.local.md to
.gitignore per the new convention.

Closes #26
Copilot AI review requested due to automatic review settings July 15, 2026 16:52

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

Migrates the repo’s committed AI agent guidance from CLAUDE.md to AGENTS.md (per the org convention), updates in-repo consumers/documentation to reference AGENTS.md, and introduces a gitignored CLAUDE.local.md for session-local Claude memory.

Changes:

  • Move durable agent documentation from CLAUDE.md into AGENTS.md, and delete the committed CLAUDE.md.
  • Update scripts, workflows, and docs to reference AGENTS.md instead of CLAUDE.md.
  • Add CLAUDE.local.md to .gitignore to support the new local-memory convention.

Reviewed changes

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

Show a summary per file
File Description
SUPPORT.md Updates support documentation to reference AGENTS.md.
site/scripts/generate-reference-pages.mjs Switches reference-page extraction source from CLAUDE.md to AGENTS.md.
README.md Removes CLAUDE.md mentions and keeps agent-instruction references current.
docs/tutorials/first-project.md Updates tutorial prose to point to AGENTS.md for design rationale.
docs/template/GITHUB-TEMPLATE-FEATURES.md Updates template reference to describe AGENTS.md as the agent instructions source.
docs/template/CONFIGURATION.md Consolidates assistant-instruction docs under AGENTS.md and updates customization guidance.
docs/template/CI-WORKFLOWS.md Updates docs-deploy workflow trigger description to AGENTS.md.
docs/explanation/architecture.md Updates architecture doc to reference AGENTS.md as the authoritative source.
CONTRIBUTING.md Updates contributor guidance links from CLAUDE.md to AGENTS.md.
CLAUDE.md Removes committed CLAUDE.md from the repository.
AGENTS.md Becomes the single committed “durable” agent guidance file (expanded content).
.gitignore Adds explicit ignore for CLAUDE.local.md.
.github/workflows/docs-freshness.md Updates workflow documentation to reference AGENTS.md as the extraction source.
.github/workflows/docs-deploy.yml Updates path trigger from CLAUDE.md to AGENTS.md.

Comment thread docs/template/GITHUB-TEMPLATE-FEATURES.md Outdated
Comment thread site/scripts/generate-reference-pages.mjs
…location wording

The generated site/src/content/docs/*.mdx pages were committed stale
after the CLAUDE.md -> AGENTS.md source migration. Regenerate them via
site/scripts/generate-all.mjs so they match the updated sources.

Also aligns the GITHUB-TEMPLATE-FEATURES.md "Agent instructions" row
wording with the rest of the docs, which consistently describe
AGENTS.md as a repo-root file.
@zircote
zircote merged commit 5a76820 into main Jul 15, 2026
42 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.

Migrate committed CLAUDE.md to AGENTS.md + gitignored CLAUDE.local.md

2 participants