Claude Session URL appended to commit messages and PR descriptions by default
Article URL: https://github.com/anthropics/claude-code/issues/66504 Comments URL: https://news.ycombinator.com/item?id=49498201 Points: 174 # Comments: 198
When a developer uses Claude Code to build a feature and commits their work, a session URL automatically appears at the bottom of every commit and pull request description. This inclusion occurs without any opt-in prompt, warning, or mention during onboarding, making it discoverable only after it has already polluted the git history.
The solution proposed is to make the session URL attribution an opt-in feature rather than an automatic inclusion. During onboarding, a prompt asking if the user would like to include a link back to the Claude session in commit messages would provide a better user experience. Another alternative is to keep the feature opt-out but make its presence discoverable, such as showing it during the first commit with a "Don't add this again" option.
Lastly, removing the session URL entirely and relying solely on the existing "Co-Authored-By: Claude" trailer for attribution could also be considered.
Written by urgent.news from Hacker News Best's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.
This story
This is one outlet's version. Read the fullest account.