Skip to content

docs: canonicalize AGENTS.md as the agent guide and freshen against code#19

Draft
jack-arturo wants to merge 3 commits into
mainfrom
docs/agents-md-canonical
Draft

docs: canonicalize AGENTS.md as the agent guide and freshen against code#19
jack-arturo wants to merge 3 commits into
mainfrom
docs/agents-md-canonical

Conversation

@jack-arturo
Copy link
Copy Markdown
Member

What & why

Adopts the fleet house standard for agent-direction files: AGENTS.md is the single source of truth, and CLAUDE.md is reduced to a one-line @AGENTS.md import. Claude Code resolves the import at launch; every other agent (Cursor, Codex, …) reads AGENTS.md's bytes directly. Token-neutral, and it kills the silent drift between near-identical copies.

This repo had no prior AGENTS.md, so there was no duplication to remove — this is adopting the standard (consistency + future-proofing across the fleet) plus a freshness pass against the current code. Reviewers should not hunt for a divergence that never existed.

Two commits

  1. docs: adopt house standard — purely mechanical: CLAUDE.md@AGENTS.md, establish canonical AGENTS.md, generalize the intro line from "Claude Code" to "coding agents (Claude Code, Cursor, Codex, …)".
  2. docs: freshen AGENTS.md against current code — every factual claim re-verified against source, with path:line citations.

Freshness changes (this is an infra/templates repo — no MCP tool list)

  • Added the real scripts: configure-github-defaults.sh, propagate-templates.sh, describe-server.mjs, render-managed-files.mjs, sync-template-baseline.mjs, validate-sync.mjs.
  • Documented the real directory layout (config/, docs/, scripts/lib/, scripts/tests/).
  • Node floor corrected ≥18 → ≥22.
  • Self-test command documented: node --test scripts/tests/*.mjs (24 pass / 0 fail at time of writing).

Caveats (noted for awareness — out of scope for this docs PR)

  • README references a nonexistent scripts/register-mcp.sh.
  • STANDARDS.md is internally inconsistent on Node version (≥22 in prose vs >=24 in engines).

Review note

Automated verification caught mechanical drift only — every tool/script/path/env-var named now exists in code, counts match, CLAUDE.md is exactly @AGENTS.md. It does not judge whether the advice is still good or well-emphasized. Please read the diff for judgment. No auto-merge.

🤖 Generated with Claude Code

jack-arturo and others added 2 commits June 6, 2026 16:21
Promote CLAUDE.md's content to AGENTS.md (canonical, read by all agents)
and reduce CLAUDE.md to the bare `@AGENTS.md` import. Mechanical only;
the freshness pass follows in the next commit.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Generalize intro to coding agents (Claude Code, Cursor, Codex) and note CLAUDE.md is just the @AGENTS.md import
- Sync script list/architecture with actual scripts/ (add configure-github-defaults, propagate-templates, describe/render/sync-baseline/validate-sync, lib/, tests/) and real template tree (config/, docs/, manifest/server/CLAUDE/LICENSE templates)
- Fix Node.js floor (≥18 → ≥22, engines >=24) and add the real `node --test scripts/tests/*.mjs` test command
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adopts the “single source of truth” convention for agent guidance by making AGENTS.md the canonical agent guide and reducing CLAUDE.md to an @AGENTS.md import, while also updating the new guide’s content to reflect the repository’s current scripts, layout, and workflows.

Changes:

  • Replaced the prior full CLAUDE.md guidance with a single @AGENTS.md import.
  • Added a new canonical AGENTS.md containing repository purpose, common commands, architecture, testing, and standards notes.
  • Refreshed command/script references and repository structure documentation to match current files.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
CLAUDE.md Collapses guidance into an @AGENTS.md import so AGENTS.md becomes canonical.
AGENTS.md Introduces the canonical agent guide with updated commands, repo structure, and standards references.

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

Comment thread AGENTS.md
STANDARDS.md pins @modelcontextprotocol/sdk ^1.25.1, but
templates/typescript/package.json.template:51 pins ^1.27.1. Annotate the
divergence inline, mirroring the existing Node version note on the line
above, so the claim is factual against current code.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.

2 participants