Skip to content

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

Merged
jack-arturo merged 4 commits into
mainfrom
docs/agents-md-canonical
Jun 11, 2026
Merged

docs: canonicalize AGENTS.md as the agent guide and freshen against code#4
jack-arturo merged 4 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 count corrected from a vague "~35/~42" → exactly 41, enumerated across the 9 modules: unified-content (8), unified-taxonomies (8), plugins (5), media (4), users (5), comments (5), plugin-repository (2), sql-query (1), site-management (3).
  • Killed a false logging claim: the server logs to stderr via logToFile() (src/wordpress.ts:20), not to logs/wordpress-api.log.
  • Corrected the media tools (4, not 5 — there is no get_media/update_media).
  • Corrected plugin-repository tool names: search_plugin_repository, get_plugin_details.
  • Added the missing env vars: WORDPRESS_LOG_LEVEL, DISABLE_LOGGING, WORDPRESS_SQL_ENDPOINT, WORDPRESS_CACHE_DURATION, WORDPRESS_PARALLEL_SEARCH, UNIFIED_CONTENT_CACHE_DIR.

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

  • src/cli.ts:14 checks WORDPRESS_APP_PASSWORD, but nothing sets it (the rest of the code uses WORDPRESS_PASSWORD). This looks like a real bug; cli.ts is not the bin entry, so it is left untouched here.

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>
- Correct tool count to exact 41 (was "~35"/"~42"), list all 41 names grouped by the 9 tool modules with real per-module counts (media is 4 not ~5; tool names taken from code, not the drifted README)
- Fix logging claim: logs go to stderr via logToFile() gated by WORDPRESS_LOG_LEVEL/DISABLE_LOGGING, not to logs/wordpress-api.log (removed both false file-log mentions)
- Add missing env vars (WORDPRESS_LOG_LEVEL, DISABLE_LOGGING, WORDPRESS_SQL_ENDPOINT, WORDPRESS_CACHE_DURATION, WORDPRESS_PARALLEL_SEARCH, UNIFIED_CONTENT_CACHE_DIR), note McpServer class + dynamic registration and src/cli.ts launcher, add verified path:line citations, generalize intro to coding agents

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

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adopts the repository “house standard” for agent-direction docs by making AGENTS.md the canonical agent guide and reducing CLAUDE.md to a one-line @AGENTS.md import, plus a refresh pass to align the new guide with the current codebase.

Changes:

  • Replaced the full CLAUDE.md guide content with a one-line @AGENTS.md import.
  • Added a new canonical AGENTS.md agent guide (build/dev commands, env vars, architecture, tool inventory) with code-referenced details.

Reviewed changes

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

File Description
CLAUDE.md Converted to a one-line import pointing at AGENTS.md.
AGENTS.md Added canonical agent guide; documents commands, configuration, architecture, and tool catalog.

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

Comment thread AGENTS.md Outdated
Comment thread AGENTS.md Outdated
Comment thread AGENTS.md Outdated
…tion

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@jack-arturo jack-arturo marked this pull request as ready for review June 11, 2026 16:27
@jack-arturo jack-arturo merged commit 4c91a76 into main Jun 11, 2026
1 check passed
@jack-arturo jack-arturo deleted the docs/agents-md-canonical branch June 11, 2026 16:29
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