Claude Code silently stamps session URLs into commits — users want it opt-in
Original source
Claude Session URL appended to commit messages and PR descriptions by default
Hacker News →A GitHub issue filed against Claude Code takes aim at a default behavior: every commit message and PR description the tool generates ends with a link back to the originating chat session (a claude.ai/code/session_… URL). The attribution is added automatically, with no onboarding prompt, warning, or acknowledgment. Developers typically notice only after the links have already accumulated across their git history and pull requests.
The reporter frames this as both a professionalism and a hygiene problem. Teammates and open-source contributors end up seeing the session links scattered through project history, and the person who ran the tool never consented to publishing them. The request is to flip the default to opt-in — ideally with a one-time onboarding question — or, failing that, to at least surface the setting on the first commit or drop the URL entirely and lean on the existing Co-Authored-By: Claude trailer for attribution.
Workarounds exist but are effectively hidden: an attribution.commit setting in .claude/settings.json suppresses the link, and a commit-msg git hook can strip it, though the hook reportedly fires unreliably in remote and cloud environments. The broader point is a familiar one for AI dev tooling — defaults that quietly emit metadata into shared, permanent artifacts, without a clear disclosure or consent step, tend to surprise users and erode trust.
Read the full article
Continue reading at Hacker News →This is an AI-generated summary. Read the original for the full story.