Adding Co-Authored-By Claude to Every Git Commit

Fazm Team··2 min read

Adding Co-Authored-By Claude to Every Git Commit

Put Co-Authored-By: Claude in your CLAUDE.md so it auto-adds to every commit. Check the git log after a week and you'll find Claude has more co-author credits than actual teammates. That's not a bug - that's transparency working as intended.

Why This Matters

When AI writes a significant portion of your code, the commit history should reflect that. It's not about giving credit to a machine. It's about giving your team accurate information.

A developer reviewing a pull request behaves differently when they know code was AI-generated. They check for:

  • Hallucinated imports - packages that don't exist or wrong versions
  • Plausible but wrong logic - code that looks correct on first read but handles edge cases incorrectly
  • Over-engineering - AI tends to add abstractions that aren't needed
  • Stale patterns - using deprecated APIs the model learned from old training data

How to Set It Up

Add this line to your CLAUDE.md file at the project root:

When committing, always add: Co-Authored-By: Claude <noreply@anthropic.com>

Every commit Claude makes will now carry the attribution automatically. It's grep-able, so you can filter your git log to see exactly which commits had AI involvement.

The Uncomfortable Truth

If Claude has more co-author credits than your human teammates, that tells you something important about how your team works now. The developer's role has shifted from writing code to reviewing, directing, and approving AI-generated code. That shift deserves to be visible in your project history.

Pretending all the code was hand-written when it wasn't is a form of technical debt you can't grep for later.

Fazm is an open source macOS AI agent. Open source on GitHub.

More on This Topic

Related Posts