Skip to content

Summary: AI-authored commits and PRs

Add 'remember me' checkbox to login form
[commit body with what and why]
Co-Authored-By: Claude Opus 4.7 <[email protected]>

Sometimes paired with:

Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.7 <[email protected]>

Include: AI substantially contributed (typed the diff, drafted commit message, did the structural work).

Don’t include: human typed everything; AI was only consulted for research; AI provided line-level help only.

The principle: be honest about the level of AI involvement.

Six failure modes to weight in AI-code review

Section titled “Six failure modes to weight in AI-code review”
  1. Hallucinated APIs call functions that don’t exist
  2. Plausible-but-wrong logic looks right, solves wrong problem
  3. Trivial test assertions pass without checking meaningful properties
  4. Confident-but-wrong docstrings describe wrong behavior with authority
  5. Style mimicry over correctness means consistent style isn’t evidence of correctness
  6. Missing edge cases means happy path covered; edge cases glossed

The human who merges the work is responsible, regardless of who typed it.

Don’t merge AI-authored code you don’t understand. Time savings come from AI handling the typing, not from humans skipping review.

State AI involvement clearly. Test plans should be human-written. Don’t paste AI chain-of-thought as the description.

User-facing: light acknowledgment at the release level (e.g., “Produced with assistance from Claude Code”). Per-feature attribution typically not done.

Internal: more transparency for process calibration. Track AI involvement metrics. Refine review checklists based on observed failure modes.

Terminal window
git log --grep="Co-Authored-By.*Claude" --oneline # all Claude-co-authored

Searchable trailers enable incident review, process calibration, tooling decisions.

Git stores snapshots. Every other command is just navigating those snapshots.

The author is a metadata field on the snapshot. The trailer is additional metadata. Whether human or AI typed the code, git stores and serves the snapshot identically. The conventions are social, not technical.

L16 closes the track with a speculative look at where git might evolve in an AI-collaborative world. Grounded in patterns visible today, not pure speculation.