Skip to content

chore: forbid AI co-author attribution in commits/PRs - #15

Merged
DDecoene merged 1 commit into
mainfrom
chore/no-ai-coauthor
Jun 24, 2026
Merged

chore: forbid AI co-author attribution in commits/PRs#15
DDecoene merged 1 commit into
mainfrom
chore/no-ai-coauthor

Conversation

@DDecoene

Copy link
Copy Markdown
Owner

Removes Claude/AI co-author attribution from git history going forward.

Changes

  • CLAUDE.md — new "Git conventions" rule: never add a Co-Authored-By: Claude … trailer or any AI attribution to commits/PRs.
  • .githooks/commit-msg — tracked hook that strips Co-Authored-By: Claude/Anthropic lines and the "Generated with Claude Code" footer from every commit message (deterministic enforcement regardless of tooling).
  • scripts/setup-hooks.sh — one-time git config core.hooksPath .githooks setup (hooksPath is local config, so each clone runs it).

Verified: committing this PR with a deliberate Co-Authored-By trailer had it stripped automatically by the hook.

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).
@DDecoene
DDecoene merged commit 7bd946b into main Jun 24, 2026
1 check passed
@DDecoene
DDecoene deleted the chore/no-ai-coauthor branch June 24, 2026 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant