Claude Session URL appended to commit messages and PR descriptions by default
Claude Code, the AI coding assistant from Anthropic, automatically appends a session URL to every commit message and pull request description created by the tool. This information, like https://claude.ai/code/session_..., is displayed without any prior warning or opt-in from the user. The URL appears at the bottom of each commit and PR, cluttering the commit history and appearing unprofessional to other developers who review the code.
There is currently no way for users to disable this feature upon setup or after it has started occurring. The only available options are to enable the feature during initial onboarding, make it discoverable during the first commit, or remove the URL entirely and rely on the existing "Co-Authored-By: Claude" attribution.
This automatic inclusion of a session URL was discovered by some users only after it had already polluted their git history. While there are ways to suppress the URL with specific settings (like in .claude/settings.json) or through commit-msg git hooks, these methods are not widely known or reliable, especially in remote or cloud environments.
Many developers consider this feature to be of medium priority, as it would be very helpful to have an opt-in option that prevents the session URL from being included in commit messages and PR descriptions unless explicitly enabled by the user.
Written by urgent.news from Hacker News's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.