AI Weekly Malaysia

Back to items Summaries

Claude Session URL appended to commit messages and PR descriptions by default

ID
19673
Status
summarized
Published
30 Aug 2026, 8:50 PM
Fetched
01 Sep 2026, 8:41 PM
Provider
Hacker News
Category
dev-community
Original URL
https://github.com/anthropics/claude-code/issues/66504
Source URL
https://hnrss.org/best

Summary

Score
7.5
Created
01 Sep 2026, 8:42 PM
Tags
Audience
developersvibe_coders

What happened

Claude Code automatically appends a session URL (e.g. https://claude.ai/code/session_...) to every commit message and PR description it creates, with no opt-in prompt or onboarding warning. Users only discover it after it has already polluted their git history. The setting can be suppressed via attribution.commit: "" in .claude/settings.json, or stripped via a commit-msg git hook, though the hook is unreliable in remote/cloud environments.

Why it matters

If you use Claude Code, check your recent git log right now for session URLs you didn't know were being added. To stop it, set attribution.commit to an empty string in .claude/settings.json — don't rely on a git hook if you work in cloud or remote environments where hooks may not fire.

Discussion angle

How many AI coding assistants silently modify your git artifacts, and what's the right default — attribution that's opt-in, opt-out, or always-on with clear onboarding?

Top