chore: forbid AI co-author attribution in commits/PRs - #15
Merged
Conversation
Add a CLAUDE.md git convention and a tracked commit-msg hook that strips any "Co-Authored-By: Claude/Anthropic" line and the "Generated with Claude Code" footer. Enable with scripts/setup-hooks.sh (sets core.hooksPath).
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.
Removes Claude/AI co-author attribution from git history going forward.
Changes
CLAUDE.md— new "Git conventions" rule: never add aCo-Authored-By: Claude …trailer or any AI attribution to commits/PRs..githooks/commit-msg— tracked hook that stripsCo-Authored-By: Claude/Anthropiclines and the "Generated with Claude Code" footer from every commit message (deterministic enforcement regardless of tooling).scripts/setup-hooks.sh— one-timegit config core.hooksPath .githookssetup (hooksPath is local config, so each clone runs it).Verified: committing this PR with a deliberate
Co-Authored-Bytrailer had it stripped automatically by the hook.