Skip to content

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

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#29
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 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

  • Tool list filled in 0 → 17, fully enumerated (verified: src/index.ts:507 = 2 + 12 from statisticsToolConfigs at :419 + 3).
  • Corrected the pirsch_compare description — it does not sumSeries; it computes true period totals from /statistics/total via buildComparisonTotals/pctChange.
  • npm test description corrected from "runs help" → vitest run.

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

  • Server version string in src/index.ts:359 reads 0.1.0 while package.json is 0.1.2 (note: a recent commit synced server.json to 0.1.2; the in-code string still lags).

Review note

Automated verification caught mechanical drift only — every tool/path/env-var named now exists in code, the tool count matches, 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>
- Enumerate all 17 MCP tools with exact names (doc previously listed none/count)
- Fix npm test description (Vitest run, not "runs help command") and add real scripts
- Correct pirsch_compare logic: true period totals via /statistics/total + buildComparisonTotals/pctChange, not sumSeries; generalize intro to coding agents and note @AGENTS.md import contract

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copy link
Copy Markdown

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 standardizes agent guidance docs by making AGENTS.md the canonical agent guide and reducing CLAUDE.md to an @AGENTS.md import, while updating the guidance to match the current codebase.

Changes:

  • Replace CLAUDE.md contents with a single @AGENTS.md import.
  • Add new AGENTS.md containing the consolidated agent instructions, tool inventory, and code-linked citations.

Reviewed changes

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

File Description
CLAUDE.md Replaced full guidance with an @AGENTS.md import to avoid drift.
AGENTS.md Introduced canonical agent guide with architecture/tooling/env-var details and source citations.

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

Comment thread AGENTS.md Outdated
Comment thread AGENTS.md Outdated
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