Settings for includeCoAuthoredBy and gitAttribution intermittently not respected during commits

Resolved 💬 4 comments Opened Jul 23, 2025 by benroeder Closed Jan 3, 2026

Description

When includeCoAuthoredBy and gitAttribution are set to false in ~/.claude/settings.json, Claude Code sometimes still adds AI attribution to git commit messages. This behavior is intermittent - sometimes the settings are respected, other times they are not.

Steps to reproduce

  1. Set both settings to false in settings.json:
{
  "gitAttribution": false,
  "includeCoAuthoredBy": false
}
  1. Ask Claude to create multiple git commits across different sessions
  2. Observe that Claude intermittently adds the attribution lines despite the settings

Expected behavior

No AI attribution should be included in commit messages when these settings are set to false.

Actual behavior

Claude intermittently adds "🤖 Generated with Claude Code" and "Co-Authored-By: Claude <noreply@anthropic.com>" to commit messages, even when the settings explicitly disable this.

Additional context

  • This is an intermittent issue - not consistent
  • Settings file location: ~/.claude/settings.json
  • The settings file is properly formatted and readable
  • Different Claude instances may or may not respect the settings

Environment

  • Claude Code CLI
  • macOS (Darwin 24.5.0)

View original on GitHub ↗

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