Claude Session URL appended to commit messages and PR descriptions by default

204 points · 226 comments on HN · read original →

Points and comments are a snapshot, not live.

Claude Code appends session URLs to commits and PR descriptions by default with no opt-in prompt.

A GitHub issue requests that Claude Code's session URL attribution in commit messages and PR descriptions be opt-in rather than on by default. The feature adds a link like claude.ai/code/session_... to every commit and PR body without warning or onboarding disclosure. Users find it unprofessional, cluttering git history, and potentially leaking private session identifiers. Workarounds exist but are undiscoverable: setting attribution.commit and attribution.sessionUrl to false in ~/.claude/settings.json, or the env var CLAUDE_CODE_SUPPRESS_SESSION_ATTRIBUTION=1. Related issues track this as a bug and privacy concern.

What commenters are saying

Commenters are split. Many find the default-on behavior hostile, unprofessional, and a privacy leak, with some cancelling subscriptions over it. Others defend the feature as useful for jumping back to the session that generated a commit, making it easier to resume context. A counterargument holds that AI-generated content lacks copyright protection, so failing to attribute AI authorship could constitute copyfraud. Workarounds shared include using the attribution.sessionUrl setting or filtering via git hooks, but these require discovery.