My Commit Message Filter Only Knew One Way to Say "Written by Claude" A developer discovered that their commit message filter, designed to strip AI attribution from generated commit messages, failed to catch standard git trailers like 'Signed-off-by' and 'Reviewed-by'. The filter, built reactively from past incidents, missed these common attribution formats, allowing them to pass through. The developer added new patterns to cover these cases. git commit.py in my project is a small script: it reads the staged diff, sends it to claude -p with a system prompt asking for a Conventional Commit message, and prints the result. server.py 's MCP tool generate commit message does the same thing through a different interface. Both have a system prompt that says, in effect, "no co-author lines, no signatures, no AI references" — but a system prompt is a request, not a guarantee, so both files also carry a regex safety net that strips anything attribution-shaped out of whatever comes back, just in case the model doesn't fully comply. I've hardened that regex three separate times over the past few weeks. Every single time, the fix went the same direction: the filter was too aggressive and wiped legitimate commit messages that happened to mention "llm" or "claude" in a normal technical sentence — a commit fixing an MCP timeout, a doc update about a Claude Code hook. I never once checked the opposite direction until this week: what attribution phrasings does the filter fail to catch? Here's STRIP PATTERNS , identical in both git commit.py and server.py , before this week: STRIP PATTERNS = r"co-authored-by\s :", r"generated with|by \s+claude", r"\bclaude code\b", r"\bwritten by an ? ai|llm|claude|chatgpt|copilot \b", r"\bai-generated\b", r"🤖", Every one of these six patterns is shaped around a specific incident. co-authored-by\s : exists because that's the exact trailer format that leaked into a commit on 2026-06-21. \bclaude code\b and the "written by" pattern came out of later incidents with the same shape. The list grew by accretion, one real leak at a time — which means it's really good at catching the one attribution style that's actually happened here, and says nothing about every other conventional way to credit a contributor in a commit message. I tested that theory directly against the compiled regex, no claude -p call needed: STRIP RE.search "Signed-off-by: Claude