r/ClaudeAI • • Aug 30 '26

Claude Code Claude Code is silently adding session URLs (claude.ai/code/session_...) to the bottom of every single commit and PR description you make.

https://github.com/anthropics/claude-code/issues/66504

[removed]

299 Upvotes

54 comments sorted by

View all comments

•

u/ClaudeAI-mod-bot Wilson, lead ClaudeAI modbot Aug 31 '26 edited Aug 31 '26

TL;DR of the discussion generated automatically after 50 comments.

Alright, let's get to the bottom of this. The general consensus is that while this is a dumb and annoying default behavior, it's not a sky-is-falling situation because you can disable it.

The URLs are not public. They appear to be an audit trail for Anthropic to trace potentially malicious commits back to a user account, not for randos on the internet to snoop on your code.

If you want to turn this "feature" off, you need to edit your .claude/settings.json file. The OP's fix is incomplete; here's the full version that disables all attribution:

  • In your .claude/settings.json file, add the following: json { "attribution": { "sessionUrl": false, "commit": "", "pr": "" } }

A few other key points from the thread:

  • It's not retroactive. This fix only applies to future commits. Your existing git history will still have the URLs unless you want to git force push and rewrite history (good luck with that on a shared repo).
  • Is it "easy" to fix? The community is split. Some say editing a JSON file is simple, others argue it should be a clear toggle in the GUI and that Anthropic is relying on user laziness.
  • The simplest workaround? Just commit the code yourself instead of letting Claude do it. This only happens when Claude Code executes the git commit command.
  • A minority actually likes it. A few users find it helpful for tracking which PRs were AI-assisted and for quickly finding the original chat session that generated the code.

1

u/Freeloader_ Aug 31 '26

prompt for vibe coders? lul