You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE] Session URL appended to commit messages and PR descriptions by default — should be opt-in #66504
I have searched existing requests and 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
Reacted by Andrew Creekmore, Joe Innes, André Treib, Themistoklis Chatziemmanouil, Erdem Bircan, Yasen Dimitrov, Unchun Yang, Chris, Philpax, Vũ Chí Thành and 106 more
Reacted by itsTyrion, Cailin Pitt, Kevin S., Christian Weiske and Renato Westphal
This is some serious BS--that it does this on by default. WTH, Anthropic??
Reacted by Barney M, jonathanplackett, Avdhut Kamble, Per Larsen, Hari haran, Ramon Melo, Rico, Luca Gibelli, Serhiy-Shekhovtsov, Renato Westphal and 2 more
this is extremely spooky behaviour to surface without telling anyone. and it's not consistent. because whatever is causing this isn't part of the agen't config, if you ask it, "hey why are you doing this thing i don't like," it will just tell you "that's in my instructions." but in my case, i had another agent just go through and read-only go through the entirety of the one session where this happened, and it couldn't find any evidence of my saying that, and there's no config for it, so it's just mysteriously posting something that looks an awful lot like a private session id???
what?
Reacted by Matt Ferrante, Javier Domingo Cansino, John Maguire, MangoSwirl, nathaneliason, Ingvaras, Barney M, jonathanplackett, Per Larsen, Ramon Melo and 3 more
Yeah, the point is not that it can't be overridden. The point is off should be the default.
Reacted by Scott Moore, Channing Walton, Ivar Abrahamsen, Yoni Lavi, Mriyam Tamuli, 40960, Alex Ulbrich, StreamlinedStartup, Ingvaras, Daniel Herman and 24 more
It is honestly very difficult to understand how the development of claude code is conducted when features like this are introduced. I truly wonder: who asked for this? What motivated the addition of this feature? Seemingly, a decision was made to intentionally, by default, pollute the commit messages for everyone. Did actual people sit in a meeting and agree that this would be a good idea to do by default?
Reacted by jane michelle arc, tfujii, rafaelmhp, 40960, Robin van Baalen, Cristian Gutiérrez, Michael Yared, Patrick, Ramon Melo, Giovanni Toraldo and 13 more
It is honestly very difficult to understand how the development of claude code is conducted when features like this are introduced. I truly wonder: who asked for this? What motivated the addition of this feature? Seemingly, a decision was made to intentionally, by default, pollute the commit messages for everyone. Did actual people sit in a meeting and agree that this would be a good idea to do by default?
when a software company gets to a certain size sometimes people who are not software engineers are in those meetings and make those decisions (or have the power to override other people in those meetings). in my experience, this is often marketing people, product people, legal people, and the founder-ish type people that maybe don't have a lot of sense but they have the title.
i am doubtful that there's a software engineer who uses claude daily who thought, "yeah, what these people need is a random footnote added to all their github comments, that's a missing feature for sure!" that really seems to me to be more of a product, marketing, or leadership kind of feature, and someone told an engineer to go and do it.
obviously i don't work there, but that's been how it's happened for me in the past. i usually just say "well okay, i guess" and then go and do it because they pay me to make software. sometimes because they pay me they get to tell me what to do even when i don't like it.
Had my daily heart attack when I saw this today. Had to scramble to make a new account to verify it wasn't "public" to any user with any claude.ai login while I waited for someone else to check if my sessions were leaked.
How would my sessions get on the cloud in the first place if I didn't use remote control? I didn't order that. it seemed possibly compatible with my data that only remote control sessions would get the web session ids (and it's logical kind of, though not what we expect "remote control" to do which is remote control something LOCAL). A friend of mine says he never uses remote control but already found this "feature" and already disabled it.
So now I go to check if a non-remote controlled session gets session urls. Surprise! I can't get any claude session on any model to produce the Claude-Session trailer nor admit to having any knowledge of it.
So... now what? I guess I'm checking the bottom of every commit message until I get confident my instructions to strip that from every commit regardless are heeded and/or the lore on this matter's more settled yield something more informative.
You can disable this in the settings. It's just turned on by default - and, from what I could gather from the release notes, this "feature" was added a few weeks before they added the ability to turn it off in settings. 🙄
The session link is only added in web and Remote Control sessions, and it can be turned off with a dedicated setting:
{ "attribution": { "sessionUrl": false } }
That keeps the Co-Authored-By trailer while dropping the link. Docs: https://code.claude.com/docs/en/settings#attribution-settings
Closing since the setting exists; happy to reopen if the opt-in default discussion should continue separately.
🤖 Generated with Claude Code
The problem with recent versions of claude code is that all sessions are remote by default. I see /rc active in every session I run.
Yes, this is what leads to all sessions being leaked into PRs and git commits. Not good.
Reacted by Ingvaras, bosskopp, Gordon Stein, Ramon Melo, Matthew McEachen and Innokenty Ivanov
It is honestly very difficult to understand how the development of claude code is conducted when features like this are introduced. I truly wonder: who asked for this? What motivated the addition of this feature? Seemingly, a decision was made to intentionally, by default, pollute the commit messages for everyone. Did actual people sit in a meeting and agree that this would be a good idea to do by default?
My bet: so they know what is AI slop and what not, when they scrape public GH repos, they know what NOT to use for training ;)
Reacted by Indresh Kumar, KonstantinGeist, Andrew, Vjatseslav Gedrovits, Ramon Melo, Rico, Matthew Gambrell, Saïd, Ben Andrew, Kirill Borisov and 7 more
Still can't believe this was force-enabled for every single Claude Code user. Truly an amazing product.
Reacted by bosskopp, Léonard., Ramon Melo, Rico, Luca Gibelli, Dmitrii Kuzmin, Serhiy-Shekhovtsov, Karolin Kostial, thomas vangoidsenhoven, Marccio Silva and 2 more
Reacted by Ethan Kircher, Alexander, Innokenty Ivanov, Maxim Kitsunoff, Karolin Kostial, Marccio Silva, Alysson Souza e Silva, Pablo Arango, Simon Oakes, papelblume and 1 more
Reacted by Tony Tamplin and ave
Reacted by Serhii Ivanov, Luca Gibelli and Evgeny Zhdanov
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.
Activity
georgiosd commentedon Jun 18, 2026
This is indeed very annoying and makes zero sense from a UX perspective - are they vibe product managing now at Anthropic?
attribution.commit = ""doesn't fix it either.Claude found this in the harness source code:
Add to ~/.claude/settings.json:
ambroselittle commentedon Jun 26, 2026
This is some serious BS--that it does this on by default. WTH, Anthropic??
janearc commentedon Jun 30, 2026
this is extremely spooky behaviour to surface without telling anyone. and it's not consistent. because whatever is causing this isn't part of the agen't config, if you ask it, "hey why are you doing this thing i don't like," it will just tell you "that's in my instructions." but in my case, i had another agent just go through and read-only go through the entirety of the one session where this happened, and it couldn't find any evidence of my saying that, and there's no config for it, so it's just mysteriously posting something that looks an awful lot like a private session id???
what?
ferrants commentedon Jul 2, 2026
you can set the sessionUrl in the attribution settings: https://code.claude.com/docs/en/settings#attribution-settings
in your ~/.claude/settings.json:
ambroselittle commentedon Jul 2, 2026
Yeah, the point is not that it can't be overridden. The point is off should be the default.
saevarb commentedon Jul 7, 2026
It is honestly very difficult to understand how the development of claude code is conducted when features like this are introduced. I truly wonder: who asked for this? What motivated the addition of this feature? Seemingly, a decision was made to intentionally, by default, pollute the commit messages for everyone. Did actual people sit in a meeting and agree that this would be a good idea to do by default?
janearc commentedon Jul 7, 2026
when a software company gets to a certain size sometimes people who are not software engineers are in those meetings and make those decisions (or have the power to override other people in those meetings). in my experience, this is often marketing people, product people, legal people, and the founder-ish type people that maybe don't have a lot of sense but they have the title.
i am doubtful that there's a software engineer who uses claude daily who thought, "yeah, what these people need is a random footnote added to all their github comments, that's a missing feature for sure!" that really seems to me to be more of a product, marketing, or leadership kind of feature, and someone told an engineer to go and do it.
obviously i don't work there, but that's been how it's happened for me in the past. i usually just say "well okay, i guess" and then go and do it because they pay me to make software. sometimes because they pay me they get to tell me what to do even when i don't like it.
mgambrell commentedon Jul 18, 2026
Had my daily heart attack when I saw this today. Had to scramble to make a new account to verify it wasn't "public" to any user with any claude.ai login while I waited for someone else to check if my sessions were leaked.
How would my sessions get on the cloud in the first place if I didn't use remote control? I didn't order that. it seemed possibly compatible with my data that only remote control sessions would get the web session ids (and it's logical kind of, though not what we expect "remote control" to do which is remote control something LOCAL). A friend of mine says he never uses remote control but already found this "feature" and already disabled it.
So now I go to check if a non-remote controlled session gets session urls. Surprise! I can't get any claude session on any model to produce the Claude-Session trailer nor admit to having any knowledge of it.
So... now what? I guess I'm checking the bottom of every commit message until I get confident my instructions to strip that from every commit regardless are heeded and/or the lore on this matter's more settled yield something more informative.
saevarb commentedon Jul 18, 2026
@mgambrell
You can disable this in the settings. It's just turned on by default - and, from what I could gather from the release notes, this "feature" was added a few weeks before they added the ability to turn it off in settings. 🙄
mgambrell commentedon Jul 18, 2026
@saevarb Until I can turn it on, see it happen, then turn it off and see it not happen, I don't trust the situation.
ryandward commentedon Aug 2, 2026
This needs to be resolved immediately. This is a massive potential for intellectual property leaks.
tnahata commentedon Aug 5, 2026
So do we have any updates around this @claude?
4 remaining items
40960 commentedon Aug 20, 2026
That is a stupid and evil feature.
chore: disable claude code session url attribution
chore: disable claude code session url attribution
sebhofmann commentedon Aug 24, 2026
Thats a really stupid feature. It should be disabled by default!
rkuska commentedon Aug 28, 2026
The problem with recent versions of claude code is that all sessions are remote by default. I see /rc active in every session I run.
mstrausz commentedon Aug 28, 2026
Yes, this is what leads to all sessions being leaked into PRs and git commits. Not good.
AmazingTurtle commentedon Aug 30, 2026
My bet: so they know what is AI slop and what not, when they scrape public GH repos, they know what NOT to use for training ;)
younsl commentedon Aug 30, 2026
Still can't believe this was force-enabled for every single Claude Code user. Truly an amazing product.
feat: Claude-vocabulary corpus pipeline and a commit-message voice ho…
jstilwell commentedon Aug 30, 2026
Not a big fan of these overtly opinionated default-to-on changes.
luuvasara commentedon Aug 31, 2026
Quite certainly a GDPR violation.
fix: セッション URL の自動付与を無効化
piuvas commentedon Sep 1, 2026
only suckers here
github-actions commentedon Oct 23, 2026
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.