Repository navigation
Replace the AGENTS.md and .agents symlinks: they block Arduino Library Manager releases - #635
Conversation
…uino Library Manager The Arduino Library Manager indexer runs arduino-lint on each new tag and rejects a release that contains a symlink (rule LS005, "Symlinks cause difficulties for Windows users"). AGENTS.md (-> CLAUDE.md) and .agents (-> .claude) are symlinks, so no release since they were added has been indexed. - AGENTS.md is now a regular file that points agents to CLAUDE.md and .claude/skills/. - The .agents link is removed. - A no-symlinks pre-commit hook fails if a symlink is committed again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Hardware-in-the-loop (HIL) Test ReportPR head 5 pass · 2 not run
Not covered by any farm board:
The battery runs |
[Medium impact] The PR appears safe to merge; no blocking issues were found.
|
Dismissed because a newer commit was pushed; Greptile will re-review the current head.
Codex and GitHub Copilot read AGENTS.md; Claude Code reads CLAUDE.md, and reads AGENTS.md only through an import. The instructions move from CLAUDE.md into AGENTS.md, and CLAUDE.md is now "@AGENTS.md", so all three read the same text without a symlink. A short "Agent files" section says where skills are (.claude/skills/, found by Claude Code and Copilot) and why there are no symlinks. Skill references to "CLAUDE.md's" sections now name AGENTS.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Dismissed because a newer commit was pushed; Greptile will re-review the current head.
Summary
@hathach: symlinks in a library repository block its Arduino Library Manager releases. Please check that agentrc does not need
CLAUDE.mdto hold the instructions text (this PR moves it toAGENTS.md). TheAGENTS.md(->CLAUDE.md) and.agents(->.claude) symlinks added with the agent contracts mean that no Adafruit TinyUSB Library release since then has reached the Library Manager. The same pattern is probably in other Adafruit libraries that got the agent setup.The Library Manager indexer runs arduino-lint on each new tag. It rejects any release that contains a symlink:
(from the indexer log: https://downloads.arduino.cc/libraries/logs/github.com/adafruit/Adafruit_TinyUSB_Arduino/)
Effect: the Library Manager index still stops at 3.7.7; 3.8.0 is not in it. So
arduino-cli lib installand the IDE install 3.7.7, and CI that installs this library gets the old version.Change
Two commits:
AGENTS.mdbecomes a regular file and the.agentslink is removed. A newno-symlinkspre-commit hook fails if any symlink is committed (git ls-files -s, mode 120000). I tested it: it passes on this branch and fails on master, listing.agentsandAGENTS.md.CLAUDE.mdmoves intoAGENTS.md, andCLAUDE.mdbecomes@AGENTS.md(Claude Code's import). Codex and GitHub Copilot readAGENTS.md, and Claude Code reads it through the import, so all three see the same instructions without a symlink or a copy. A short "Agent files" section says this, and why there are no symlinks. Skill references to "CLAUDE.md's" sections now say AGENTS.md.Skills stay in
.claude/skills/: Claude Code and Copilot find them there (Copilot looks in.github/skills/and.claude/skills/). Codex only searches.agents/skills/, so it does not find them by itself;AGENTS.mdlists each skill's path. Making Codex find them would need copies under.agents/skills/(kept in sync, and shipped in every release) or a local, git-ignored link made by the agent setup.Sources: Claude Code memory (AGENTS.md), Claude Code skills, Codex skills, Copilot skills, Copilot custom instructions.
After merging
A new release tag is needed, because the Library Manager only picks up new tags.
🤖 Generated with Claude Code