includeCoAuthoredBy: false setting not respected

Resolved 💬 4 comments Opened Dec 16, 2025 by aliwatters Closed Dec 20, 2025

Description

The includeCoAuthoredBy: false and gitAttribution: false settings in ~/.claude/settings.json are not being respected. Commits made by Claude Code still include the attribution trailers:

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Configuration

// ~/.claude/settings.json
{
  "model": "claude-opus-4-5-20251101",
  "includeCoAuthoredBy": false,
  "gitAttribution": false,
  // ... other settings
}

Expected Behavior

When includeCoAuthoredBy: false is set, commit messages should NOT include:

  • 🤖 Generated with [Claude Code](...)
  • Co-Authored-By: Claude ...

Actual Behavior

The trailers are still added to every commit, regardless of the setting.

Workaround

Added a commit-msg git hook to strip the trailers:

#!/usr/bin/env bash
sed -i '' '/^🤖 Generated with \[Claude Code\]/d' "$1"
sed -i '' '/^Co-Authored-By: Claude/d' "$1"

Environment

  • Claude Code version: Latest (Dec 2025)
  • OS: macOS Darwin 25.1.0
  • Model: claude-opus-4-5-20251101

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗