Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Context
AGENT.mdis the canonical agent-instructions file (tracked in the repo). PerCONTRIBUTING.md, contributors create a local symlink so their agent picks it up(e.g.
ln -s AGENT.md CLAUDE.md). The deliberately genericAGENT.mdname — plus thegitignored symlink names
CLAUDE.md/GEMINI.md/COPILOT.md— shows the repotargets multiple AI agents, not just Claude Code.
AGENT.mdincludes a rule that AI agents must not addCo-Authored-Bytrailers(or "Generated with ..." lines) to commits — attribution stays limited to humans.
Problem 1 — attribution needs manual stripping every time
Claude Code adds a
Co-Authored-By: Claudetrailer by default, so contributors haveto remind it to strip the trailer on each commit. Repetitive and easy to miss.
Problem 2 — the rules only apply if you remembered to symlink
Claude Code loads
CLAUDE.md, a gitignored symlink each contributor makes by hand.Anyone who runs Claude Code without that step gets no project guidance at all —
AGENT.mdnever loads, so the no-attribution rule (and every other rule) silentlydoesn't apply. The trailer is a visible symptom of this setup gap.
Idea
Commit a
.claude/settings.jsonthat suppresses attribution declaratively:{ "attribution": { "commit": "", "pr": "" } }Empty strings drop both the commit trailer and PR-description attribution. Notably,
.claude/settings.jsonis read independently of theCLAUDE.mdsymlink, so it fixesattribution even for contributors who skipped the symlink (Problem 2).
Caveats:
.claudeis currently gitignored, so this needs a.gitignoreexception(e.g.
!.claude/settings.json), and it cuts against the "keep agent files local" convention.the generic
AGENT.md, this only covers Claude Code — other agents (Gemini, Copilot, ...)would still rely on the prose rule, and an equivalent setting may not exist in every environment.
Open questions
gitignores
.claudeand uses a tool-agnosticAGENT.md?Happy to open a PR if there's interest.
References
Beta Was this translation helpful? Give feedback.
All reactions