Repository navigation
Make AGENTS.md canonical for Tend project instructions - #1400
Conversation
…tion # Conflicts: # CLAUDE.md
tend-agent
left a comment
There was a problem hiding this comment.
In AGENTS.md, Authoring skills no longer lists CLAUDE.md among the files a repo keeps at its root: the line now reads (`AGENTS.md`, `CONTRIBUTING.md`). That list covers root files in any repo, consumers included, not just tend's own instruction file. ROOT_FILES in test_repo_pins.py still includes CLAUDE.md, and shipped skills name it without a path (run-tend, propose-instructions), so it belongs in the prose list too: (`CLAUDE.md`, `AGENTS.md`, `CONTRIBUTING.md`). (This isn't an inline suggestion because GitHub lists AGENTS.md twice in this PR, once for the removed symlink and once for the added file, and rejects comments anchored to that path.)
Also, #1171 is still open and edits CLAUDE.md, so whichever of the two lands second will need to carry its change across to the other filename.
tend-agent
left a comment
There was a problem hiding this comment.
Your fix for the CLAUDE.md entry in the root-file list works.
The new sentence "Both harnesses read AGENTS.md directly" is true only sometimes for Claude Code, and the rest of this PR depends on it. AGENTS.md loading shipped in Claude Code 2.1.277 as the agents-md built-in plugin. Its availability check in the pinned 2.1.280 binary is isAvailable: () => Oa("tengu_agents_md_mod", W) with W = false, so it stays off unless the remote feature gate is on for that account. The 2.1.277 changelog also says it is "not yet on Bedrock, Vertex or Foundry", and a local Claude Code older than 2.1.277 never reads the file. When the gate is off, an AGENTS-only repo gives Claude sessions no project instructions and nothing reports it. The CLAUDE.md → AGENTS.md symlink this commit stops creating made that case safe on every Claude setup. The inline suggestions put it back.
The same applies to tend's own root: this PR deletes CLAUDE.md outright, so tend's Claude sessions keep this repo's instructions only while that gate is on for the bot's account. A CLAUDE.md symlink to the new AGENTS.md, like the one install-tend would create, keeps them on every setup. When CLAUDE.md exists, Claude's default mode loads it and skips AGENTS.md, so nothing loads twice. (I couldn't confirm the gate's value from CI: claude -p here fails auth outside the harness.)
Make AGENTS.md the canonical source for Tend’s root and site project instructions, with a one-line CLAUDE.md import beside each file so Claude Code continues to load them when native AGENTS.md support is unavailable. The install skill creates the same import wrapper for AGENTS-only consumer repos and retains the AGENTS.md symlink for CLAUDE-only repos. References to Tend’s own instructions now point to AGENTS.md; fork PR pinning and CODEOWNERS continue to cover both filenames.
Verified with 109 focused instruction and security tests, all pre-commit hooks, and a direct Claude Code 2.1.280 import probe.