Anthropic adds toggle for Claude Code session URLs in commit messages
Developers can now disable the automatic appending of AI session links to git metadata following user pushback.
Users of Claude Code, Anthropic's CLI tool for coding tasks, can now disable the automatic inclusion of session URLs in their version control metadata. The update follows reports that the tool was appending these links to git commit messages and pull request descriptions by default.
According to GitHub issue #66504, the tool automatically added URLs to commit messages and PR descriptions for web and Remote Control sessions. This feature was designed to provide an audit trail, allowing developers to trace code changes back to the specific AI session and reasoning process that generated them. However, the default behavior sparked criticism from users who found the automatic additions intrusive.
The conflict over git hygiene
Git commit messages are often subject to strict project contribution guidelines to ensure that project histories remain clean, professional, and searchable. For many developers, the automatic injection of external URLs violates these standards and clutters the repository's logs with metadata that may not be relevant to all collaborators.
While the traceability provided by session URLs offers a benefit for debugging AI-generated code, the lack of initial control meant that developers had to manually strip the links from their messages before pushing changes to a remote server.
Industry implications
This friction highlights a growing tension between AI-assisted development and traditional software engineering workflows. As AI tools move from simple chat interfaces into the command line and directly into the version control pipeline, the industry is grappling with how to balance the need for AI transparency with the requirement for human-curated project history.
Maintaining a clean git history is considered a best practice in professional software development. When tools modify this metadata without explicit consent, it can create friction in CI/CD pipelines or conflict with automated linting tools that enforce specific commit message formats.
The resolution
In response to the feedback, Anthropic introduced a configuration change in version 2.1.183. The update adds a specific setting, `attribution.sessionUrl`, which allows users to disable the auto-appending behavior. This shift moves the feature from a default-on requirement to a configurable preference, returning control of the commit metadata to the developer.