Skip to content

[Mate][Platform] Make AGENTS.md the canonical AI-agent guidance, slim CLAUDE.md#2101

Open
wachterjohannes wants to merge 2 commits into
symfony:mainfrom
wachterjohannes:docs/agents-md-canonical-platform
Open

[Mate][Platform] Make AGENTS.md the canonical AI-agent guidance, slim CLAUDE.md#2101
wachterjohannes wants to merge 2 commits into
symfony:mainfrom
wachterjohannes:docs/agents-md-canonical-platform

Conversation

@wachterjohannes

Copy link
Copy Markdown
Contributor
Q A
Bug fix? no
New feature? no
Docs? yes
Issues n/a
License MIT

Follow-up to #2054, applying the same pattern more broadly.

[Platform] Make AGENTS.md canonical, reduce CLAUDE.md to import

src/platform/AGENTS.md now carries the canonical, general AI-agent guidance for the Platform component, and src/platform/CLAUDE.md is reduced to a header plus an @AGENTS.md Claude Code import.

The two bits that previously lived only in CLAUDE.md are moved into AGENTS.md so nothing is lost:

  • the src/EventListener/ directory entry (with TemplateRendererListener)
  • the mixed-content UserMessage template example

No Claude Code-specific section was added — unlike Mate (which is itself an MCP server consumed by Claude Code), Platform is a plain library with nothing dev-tool-specific to call out. The Bridge/ClaudeCode/ bridge is just one bridge among many and is covered in AGENTS.md like the others.

[Mate] Drop redundant Claude Code Specifics section

The ## Claude Code Specifics section in src/mate/CLAUDE.md introduced by #2054 turns out to be redundant on closer reading:

  • "Mate is consumed as an MCP server / mcp.json auto-pickup" describes how end users wire Mate into Claude Code at runtime, not how Claude Code helps you develop on the Mate codebase. That's user-facing docs material (README / INSTRUCTIONS.md), not dev-tool guidance.
  • "sources of truth for available MCP tools" is already covered in AGENTS.md under ## Agent Instructions Materialization, and the guidance applies to any AI agent — not specifically to Claude Code.

After this PR src/mate/CLAUDE.md is just header + @AGENTS.md import, matching the shape adopted for Platform here.

Applies the same pattern as symfony#2054 for the Platform component:
AGENTS.md carries the canonical, general AI-agent guidance and
CLAUDE.md is reduced to a header plus an `@AGENTS.md` Claude Code
import.

The two bits that were only in CLAUDE.md (the `src/EventListener/`
directory entry and the mixed-content `UserMessage` template
example) are moved into AGENTS.md so nothing is lost.
The section duplicated content already in AGENTS.md and described
end-user runtime wiring rather than Claude Code-specific dev
guidance:

- The "Mate is consumed as an MCP server / mcp.json auto-pickup"
  paragraph describes how end users wire Mate into Claude Code,
  not how Claude Code helps develop Mate. That belongs in
  user-facing docs (README / INSTRUCTIONS.md).
- The "sources of truth for available MCP tools" paragraph is
  already covered by AGENTS.md's "Agent Instructions Materialization"
  section, and the guidance applies to any AI agent — not
  specifically to Claude Code.

CLAUDE.md is now just the header plus the `@AGENTS.md` import,
matching the shape of the other components.
@carsonbot carsonbot added Mate Issues & PRs about the AI Mate component Platform Issues & PRs about the AI Platform component Status: Needs Review labels May 18, 2026
@carsonbot carsonbot changed the title [Platform][Mate] Make AGENTS.md the canonical AI-agent guidance, slim CLAUDE.md [Mate][Platform] Make AGENTS.md the canonical AI-agent guidance, slim CLAUDE.md May 18, 2026
@wachterjohannes

Copy link
Copy Markdown
Contributor Author

@chr-hertel when we accept to adopt this pattern i will create an additional PR for all the other components with the same pattern

@chr-hertel

Copy link
Copy Markdown
Member

but do we really need this if there are no claude specifics?

@wachterjohannes

Copy link
Copy Markdown
Contributor Author

but do we really need this if there are no claude specifics?

yes because claude.md is the entry point of claude code BUT others use agents.md

so to make sure all xosing agents load the instructiona we have to keep both

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Mate Issues & PRs about the AI Mate component Platform Issues & PRs about the AI Platform component Status: Needs Review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants