Skip to content

DOCS-1722 - Add AGENTS.md as canonical agent context - #6872

Open
kimsauce wants to merge 3 commits into
mainfrom
DOCS-1722-add-agents-md
Open

DOCS-1722 - Add AGENTS.md as canonical agent context#6872
kimsauce wants to merge 3 commits into
mainfrom
DOCS-1722-add-agents-md

Conversation

@kimsauce

@kimsauce kimsauce commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

Purpose of this pull request

This pull request adds AGENTS.md as the canonical, cross-tool source of repository context and guardrails for AI coding agents (Claude Code, Cursor, Copilot, Codex), migrating the existing content from CLAUDE.md. CLAUDE.md is now just the @AGENTS.md include directive, so Claude Code actually auto-loads AGENTS.md as memory (a plain markdown pointer doesn't get auto-followed). Claude Code-only items (skills, slash commands, .claude/commands/jira.md) are grouped under a labeled "Claude Code specifics" section so other tools can ignore them.

Also documents how src/plugins/markdown-mirror.js, static/robots.txt, the external Algolia crawler config, and static/llms.txt interact, verified against the actual files in this repo.

Migration reasoning (what changed vs. the original CLAUDE.md, and why)

  • Unchanged (verbatim): Project Overview, Directory Conventions, Frontmatter, GitHub Rules, Publishing Checklist, Slash Commands content.
  • Relocated, not changed: Skills list, Slash Commands, and the .claude/commands/jira.md directive moved into "Claude Code specifics" — they're Claude-only features, not cross-tool guardrails.
  • Reworded for cross-tool compatibility: dropped the @ prefix on Repository/Key Folders URLs (Claude Code-specific mention syntax, meaningless to other tools); generalized "accept edits" to "auto-accept"; generalized the Jira ticket-creation instruction to "three approaches" with a (Claude Code: see .claude/commands/jira.md) aside.
  • Gaps caught and fixed: the "Key Folders" pointer, the pr-template-guide skill cross-reference, and the "Atlassian Jira MCP" detail in PR rule Maintenance: Update to Docusaurus 2.0.0-beta.15 #5 were dropped during the initial migration and have been restored (the latter two as Claude Code-scoped asides, consistent with the pattern above).
  • New, not in the original CLAUDE.md: the "Search, crawlers, and LLM-facing files" and "llms.txt" sections are additive scope from this PR, not a carry-over.

Select the type of change

  • Minor Changes - Typos, formatting, slight revisions
  • Update Content - Revisions, updating sections
  • New Content - New features, sections, pages, tutorials
  • Site and Tools - .clabot, version updates, maintenance, dependencies, new packages for the site (Docusaurus, Gatsby, React, etc.)

Ticket (if applicable)

https://sumologic.atlassian.net/browse/DOCS-1722

…to pointer

Migrates CLAUDE.md's content to AGENTS.md so non-Claude AI coding
agents (Cursor, Copilot, Codex) pick up the same repo context and
guardrails. Claude Code-only items (skills, slash commands, the
.claude/commands/jira.md pointer) are grouped under a labeled
"Claude Code specifics" section. CLAUDE.md is reduced to a one-line
pointer to avoid drift between the two files.

Also adds a "Search, crawlers, and LLM-facing files" section
documenting how markdown-mirror.js, robots.txt, the external Algolia
crawler config, and llms.txt interact — verified against the actual
plugin, robots.txt, and llms.txt content in this repo.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@kimsauce kimsauce self-assigned this Jul 7, 2026
@cla-bot cla-bot Bot added the cla-signed Contributor approved, listed in .clabot file label Jul 7, 2026
@kimsauce
kimsauce marked this pull request as draft July 7, 2026 09:12
@kimsauce kimsauce added the doc:site tech Site/tool maintenance, dependencies, updates label Jul 7, 2026
kimsauce and others added 2 commits July 29, 2026 16:39
CLAUDE.md must be the literal `@AGENTS.md` import directive for Claude
Code to actually auto-load AGENTS.md as memory — a plain markdown link
is inert. Also restores content dropped during the CLAUDE.md->AGENTS.md
migration: the Key Folders pointer, the pr-template-guide skill
cross-reference, and the Atlassian Jira MCP detail in PR rule #5 (the
latter two scoped as Claude Code-specific asides).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@kimsauce
kimsauce requested a review from zackprice July 29, 2026 23:56
@kimsauce
kimsauce marked this pull request as ready for review July 29, 2026 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed Contributor approved, listed in .clabot file doc:site tech Site/tool maintenance, dependencies, updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant