// HACKER NEWS — CYBERSECURITY
Claude Session URL appended to commit messages and PR descriptions by default
There was an error while loading. Please reload this page.
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.
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.
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
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.