chore: remove agent attribution with identity enforcement#33
Merged
Conversation
Add multi-layered approach to prevent coding agent attribution: - SessionStart hook to auto-fix agent-like git identities - Shared library with agent pattern detection and identity resolution - gitAttribution: false in Claude Code settings - Expanded AGENTS.md policy with explicit attribution rules
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.
What
Add multi-layered approach to prevent coding agent attribution in commits and PRs, adopting the same pattern used in everruns/bashkit.
Why
Commits and PRs should always be attributed to real human users, not to AI coding agents. The existing policy in AGENTS.md was a single line; this adds technical enforcement.
How
.claude/settings.json: AddedgitAttribution: falseand empty attribution strings to disable Claude Code's built-in attribution. AddedSessionStarthook config..claude/hooks/fix-git-identity.sh: SessionStart hook that runs on every Claude Code session to detect and fix agent-like git identities.scripts/lib/common.sh: Shared shell library with agent pattern detection (GIT_AGENT_IDENTITY_PATTERN), identity resolution fallback chain (git config →GIT_USER_NAME/GIT_USER_EMAILenv vars → error), and auto-configuration function.AGENTS.md: Expanded attribution policy with explicit rules covering Co-authored-by trailers, merge commits, and "generated by" phrases.Risk
Checklist