Skip to content

Add AGENTS.md, generate CLAUDE.md/GEMINI.md stubs#655

Merged
xdelaruelle merged 1 commit into
envmodules:mainfrom
xdelaruelle:add-agents-md
Jul 25, 2026
Merged

Add AGENTS.md, generate CLAUDE.md/GEMINI.md stubs#655
xdelaruelle merged 1 commit into
envmodules:mainfrom
xdelaruelle:add-agents-md

Conversation

@xdelaruelle

Copy link
Copy Markdown
Collaborator

Summary

  • Add AGENTS.md (https://agents.md), the emerging cross-tool convention for repository instructions to AI coding agents, read natively by Codex, Mistral Vibe, Cursor, Copilot and others.
  • Claude Code and Gemini CLI only look for their own context filename (CLAUDE.md/GEMINI.md) rather than reading AGENTS.md directly, so add Makefile rules generating each as a one-line stub importing it via @AGENTS.md, the same way modulecmd.tcl or README are generated build artifacts.
  • Ignore the project-local settings directories these AI coding assistants create (.claude, .codex, .gemini, .vibe), none of which belong in version control.

Test plan

  • make CLAUDE.md GEMINI.md regenerates both stubs correctly
  • make clean removes the generated stubs
  • script/pre-commit/script/commit-msg checks (codespell, hunspell, whitespace) pass on the change

… dirs

AGENTS.md (https://agents.md) is the emerging cross-tool convention for
repository instructions to AI coding agents, read natively by Codex,
Mistral Vibe, Cursor, Copilot and others.

Claude Code and Gemini CLI, however, only look for their own context
filename (CLAUDE.md/GEMINI.md) rather than reading AGENTS.md directly,
so add Makefile rules generating each as a one-line stub importing it
via '@AGENTS.md', the same way modulecmd.tcl or README are generated
build artifacts.

Also ignore the project-local settings directories these AI coding
assistants create (.claude, .codex, .gemini, .vibe), none of which
belong in version control.

Assisted-by: Claude:claude-sonnet-5
Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr>
@xdelaruelle
xdelaruelle merged commit f012f2a into envmodules:main Jul 25, 2026
19 checks passed
@xdelaruelle
xdelaruelle deleted the add-agents-md branch July 25, 2026 18: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.

1 participant