fix(agents): override global AI attribution in commit messages#2264
Closed
rhuss wants to merge 1 commit into
Closed
fix(agents): override global AI attribution in commit messages#2264rhuss wants to merge 1 commit into
rhuss wants to merge 1 commit into
Conversation
The existing AGENTS.md rule prohibiting AI agent mentions in commits was being ignored because agents prioritized a global "Assisted-By" instruction from their user-level configuration. Move the override directly into AGENTS.md with explicit language that it supersedes global agent settings, making it a first-class rule in the agent constitution rather than a secondary reference. Signed-off-by: Roland Huß <rhuss@redhat.com>
e5e021c to
fcbba4d
Compare
Contributor
Author
|
Closing this PR — apologies for the noise. The existing AGENTS.md rule already covers this; the issue was that my agent ignored the project-level instruction in favor of a global user setting. That's been corrected on the agent side. The strengthened wording is included in #2253 if the maintainers want it, but a separate PR isn't warranted. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CLAUDE.mdto prevent AI agent attribution trailers (Assisted-By,Co-Authored-By) in commit messagesAGENTS.mdrule for Claude Code users who have global attribution configuredRelated Issue
Addresses PR review feedback on #2253 where a commit included
Assisted-By: 🤖 Claude Codedespite the project policy.Changes
CLAUDE.md: Added "Git Commit Attribution Override" section that explicitly overrides any global Claude Code settingsTesting
~/.claude/CLAUDE.mdattribution settings