Error
Commit message contains AI-generated attribution (e.g., "Generated by Claude" or "Co-authored-by: Claude").
Why this matters
The commit author takes responsibility for the changes, so commits should be attributed to the human who reviewed and approved them. AI attribution in git history can also create legal and compliance complications.
How to fix
Remove AI attribution from commit messages:
# Wrong:
git commit -sS -m "feat(api): add endpoint
Generated by Claude"
# Correct:
git commit -sS -m "feat(api): add endpoint"
Configuration
Disable this check in config.toml:
[validators.git.commit.message]
block_ai_attribution = false
Hook output
When this error is triggered, klaudiush writes JSON to stdout:
permissionDecisionReason (shown to Claude):
[GIT012] Commit message contains Claude attribution. Remove Claude attribution from commit message
systemMessage (shown to user): Formatted error with fix hint and reference URL.
additionalContext (behavioral guidance):
Automated klaudiush validation check. Fix the reported errors and retry the same command.