Share AI agent contribution rules across agents via AGENTS.md #818
No reviewers
Labels
No labels
3rdparty
Android
API
Author does not respond
bsd
bug
build system/CI
ci-virtual-device
CMake
Contributions Welcome
Core
dependencies
device-specific
documentation
don't_merge
duplicate
enhancement
Example
Haiku
hidraw
hotplug
info required
invalid
libusb
macOS
Misc
Not an issue
question
Release
Test
Test GUI
Windows
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-libusb/hidapi!818
Loading…
Reference in a new issue
No description provided.
Delete branch "add-agents-md"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The contribution and commit rules for this repository had no single home that every AI coding agent reads. This adds
AGENTS.mdas the canonical source — the cross-tool standard read natively by Codex, Cursor, the GitHub Copilot coding agent, VS Code, Gemini CLI and many others — so all agents follow the same rules, above all that every commit is authored by a human (with anAssisted-by:trailer naming the assisting model).The agents that use a dedicated file load that same single source:
AGENTS.md(new) — the canonical rules, in plain Markdown..claude/CLAUDE.md(new) — imports@../AGENTS.md(Claude Code's import syntax); also keeps a hidapi-specific note about attributing GitHub comments posted on a maintainer's behalf.GEMINI.md(new) — imports@./AGENTS.md(Gemini CLI defaults toGEMINI.md)..github/copilot-instructions.md(new) — points toAGENTS.md; the Copilot coding agent and VS Code readAGENTS.mdnatively.Adapted from libusb/libusb#1842.
Assisted-by: claude-code:claude-opus-4-8