What
Git commit attribution trailers are now injected into the commit command before execution, rather than amending commits after the fact.
Details
- Uses
PreToolUsehook to intercept git commit commands - Injects
Claude-Generated-By,Claude-Steers,Claude-Permission-Prompts,Claude-Escapes, andClaude-Plantrailers directly into the commit message - Supports both HEREDOC-style commit messages and quoted
-mstyle messages - Eliminates race conditions and edge cases from the previous post-commit amendment approach
- Tracks injection state via
trailersInjectedForCurrentCommitflag
Evidence
x$7() at line 530968 (contains "Attribution hook: PreToolUse - Injecting trailers into git commit command")
Strings lifted out of the shipped bundle, so the claim above can be checked against them.