Claude Code Quietly Adds Session URLs to Every Commit
Get the Tech newsletter
Daily tech — startups, AI labs, chips, the launches that shape the next decade. Free.
- Claude Code automatically appends a session URL (https://claude.ai/code/session_...) to every commit message and PR description by default, with no opt-in prompt, warning, or mention during onboarding.
- Open-source contributors and teammates see the appended URL on every commit and PR, with the requester calling it unprofessional clutter in shared git history.
- The request proposes making the inclusion opt-in via a one-time onboarding prompt ("Would you like to include a link back to this Claude session in commit messages?"), or alternatively keeping it opt-out but making the setting discoverable during the first commit.
- The
attribution.commitsetting in.claude/settings.jsoncan suppress the URL but is described as "completely undiscovered" by users. - The
commit-msggit hook can strip the URL, but the request notes it doesn't fire reliably in remote and cloud environments. - The existing
Co-Authored-By: Claudetrailer already provides attribution, making the appended session URL redundant in the requester's view.
Why it matters: Developers who use Claude Code unknowingly leak session URLs into shared git history visible to teammates and open-source contributors. With no opt-in prompt, suppression via `.claude/settings.json` is "completely undiscovered," and git hooks don't reliably fire in cloud environments — leaving most users exposed unless they dig through undocumented settings.
Ask SkimNews


