Skip to content
GitHub·

🛠️Claude Code Appends Session URL to Commits by Default

Your git history is getting a new tagline

TL;DR

Claude Code automatically includes session URLs in commit messages and PR descriptions. Users can opt-out or suppress URLs using .claude/settings.json. The feature request was opened on June 9, 2026.

Claude Code now appends session URLs to every commit message and PR description by default. This change means developers might find their git history cluttered with session URLs without prior notice. The feature request proposes making this opt-in with a one-time prompt during onboarding. Users can suppress the session URL by setting 'attribution.commit: ""' in .claude/settings.json or using a commit-msg git hook. This affects workflows where git history cleanliness is crucial. The feature request was opened on June 9, 2026, with the issue number #66504.

Claude Code Appends Session URL to Commits by Default — GitHub

Key Points

1

Claude Code appends session URLs to commit messages and PR descriptions by default, as of June 9, 2026.

2

Users can opt-out of session URL inclusion by setting 'attribution.commit: ""' in .claude/settings.json.

3

A commit-msg git hook can strip session URLs, but reliability may vary in remote/cloud environments.

4

The feature request was opened on June 9, 2026, with issue number #66504.

5

Developers using Claude Code for feature development and PR creation are affected.

Why It Matters

If you're using Claude Code for feature development and PR creation, your git history will now include session URLs by default. Setting 'attribution.commit: ""' in .claude/settings.json or using a commit-msg git hook can suppress this. This affects teams relying on clean git history for code review and auditing.

claude-codegitcommit-messagespr-descriptionssession-urls

Frequently Asked Questions

Why does this matter?

If you're using Claude Code for feature development and PR creation, your git history will now include session URLs by default. Setting 'attribution.commit: ""' in .claude/settings.json or using a commit-msg git hook can suppress this. This affects teams relying on clean git history for code review and auditing.

What happened?

Claude Code automatically includes session URLs in commit messages and PR descriptions. Users can opt-out or suppress URLs using .claude/settings.json. The feature request was opened on June 9, 2026.

Comments

Subscribe to join the conversation...

Be the first to comment

Enjoyed this article?

Get it daily. 7am. Free. Reads in 5 minutes.

Join 3,398 builders reading daily.

Also get