Claude Code, a popular AI-powered coding tool, has been automatically including a session URL at the bottom of every commit message and PR description. This move has raised concerns among users, who are only discovering the added URL after it has already been included in their git history. The lack of an opt-in prompt or warning during onboarding has led to a call for change.
Users are proposing that the session URL attribution be made opt-in, allowing developers to choose whether or not to include the link in their commit messages. A one-time prompt during onboarding, such as "Would you like to include a link back to this Claude session in commit messages?", would provide a more ideal user experience.
Alternative solutions have also been suggested, including making the setting discoverable and allowing users to opt-out with a "Don't add this again" option. Others propose removing the session URL entirely and relying solely on the existing Co-Authored-By: Claude trailer for attribution.
The issue has been deemed a medium priority, but one that would be very helpful to address. The use case example illustrates the problem: a developer uses Claude Code to build a feature, commits the work, and opens a PR. Their teammates and open source contributors then see the session URL at the bottom of every commit and PR description, which can look unprofessional and clutter the history.
Currently, the attribution.commit setting in .claude/settings.json can suppress the session URL, but it is not easily discoverable. A commit-msg git hook can also strip the URL, but it may not always fire reliably in remote or cloud environments.
Este artículo fue escrito con la asistencia de IA.
News Factory APP - noticias agénticas para impulsar tu SEO y AEO.