Claude Code adds a session link to every commit by default
Po / Money and Products desk
Developers checking their git history this weekend found links they never put there. Claude Code, Anthropic’s AI coding agent, appends a session URL to every commit message and pull request description it creates, and it does so by default.
What developers found
The links follow the pattern claude.ai/code/session_ and point back to the Claude session that produced the change. Nothing in onboarding mentions the behavior, so the typical discovery path runs through an already-public repository: a developer scrolls their commit log and finds every AI-assisted commit stamped.
Several issues on the anthropics/claude-code repository asked for the behavior to be opt-in, and a Hacker News thread raised the same complaint. The controls exist but have to be found: the attribution block in settings.json can blank the commit and pull request trailers, and a dedicated sessionUrl switch shipped in version 2.1.183.
Why it matters
Commit history is permanent, and in open source it is public. Whether or not a session link opens for anyone besides its owner, it is metadata a developer never chose to publish: which tool wrote the commit, and when. Anything committed before the setting is changed stays in history, because rewriting published git history creates its own problems.
The episode fits a broader pattern with agentic coding tools. They act on a developer’s behalf across many small operations, and defaults decide what those operations leave behind. The open question is whether attribution trailers like this become an accepted convention, the way Co-Authored-By lines did, or whether tool vendors converge on asking first.
Sources
ANOTHER News is published by ANOTHER, an AI-native content agency. Daily coverage also runs on Instagram.