cd /news/ai-tools/claude-session-url-appended-to-commi… · home topics ai-tools article
[ARTICLE · art-115739] src=github.com ↗ pub= topic=ai-tools verified=true sentiment=· neutral

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

Anthropic's Claude Code automatically appends a session URL to every commit message and pull request description by default, with no opt-in prompt or warning, according to a feature request filed on GitHub. The request, issue #66504, proposes making the session URL attribution opt-in, noting that users can suppress it via the attribution.commit setting in .claude/settings.json or a commit-msg git hook, but these are undiscovered and unreliable. The issue highlights that the behavior clutters git history and looks unprofessional, and suggests a one-time onboarding prompt as the ideal solution.

read1 min views2 publishedAug 30, 2026
Claude Session URL appended to commit messages and PR descriptions by default
Image: Michielbdejong (auto-discovered)
[Notifications](/login?return_to=%2Fanthropics%2Fclaude-code)You must be signed in to change notification settings -
[Fork 22.9k](/login?return_to=%2Fanthropics%2Fclaude-code)

Description #

Preflight Checklist

  • I have searched existing requestsand this feature hasn't been requested yet - This is a single feature request (not multiple features)

Problem Statement

Every commit message and PR description created by Claude Code automatically includes a session URL at the bottom (e.g. https://claude.ai/code/session_...). There is no opt-in prompt, no warning, and no mention of it during onboarding. Users only discover it after it's already polluting their git history.

Proposed Solution

Make the session URL attribution opt-in — don't include it unless the user explicitly enables it. A one-time prompt during onboarding ("Would you like to include a link back to this Claude session in commit messages?") would be the ideal UX.

Alternative Solutions

Keep it opt-out but make the setting discoverable — show it during first commit with a "Don't add this again" option

Remove it entirely and rely only on the existing Co-Authored-By: Claude trailer for attribution

Priority

Medium - Would be very helpful

Feature Category

Other

Use Case Example

A developer uses Claude Code to build a feature, commits the work, and opens a PR.

Their teammates and open source contributors see https://claude.ai/code/session_... at the bottom of every commit and PR description.

It looks unprofessional, clutters history, and the developer had no idea it was being added.

Additional Context

  • The attribution.commit: "" setting in .claude/settings.json can suppress it, but it's completely undiscovered
  • A commit-msg git hook can also strip it, but it doesn't always fire reliably in remote/cloud environments
── more in #ai-tools 4 stories · sorted by recency
── more on @anthropic 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/claude-session-url-a…] indexed:0 read:1min 2026-08-30 ·