Skip to content

Make AGENTS.md canonical for Tend project instructions - #1400

Merged
max-sixty merged 5 commits into
mainfrom
codex/agents-md-migration
Sep 23, 2026
Merged

max-sixty merged 5 commits into
mainfrom
codex/agents-md-migration

Conversation

@max-sixty

@max-sixty max-sixty commented Sep 23, 2026 •

Copy link
Copy Markdown
Owner

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.

This was written by Codex on behalf of max-sixty

@tend-agent tend-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

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 tend-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

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.)

@max-sixty max-sixty changed the title Use AGENTS.md for Tend project instructions Make AGENTS.md canonical for Tend project instructions Sep 23, 2026
@max-sixty
max-sixty merged commit 5f4b53a into main Sep 23, 2026
14 checks passed
@max-sixty
max-sixty deleted the codex/agents-md-migration branch September 23, 2026 09:30
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