Skip to content
HomeNewsConceptsGuidesToolbox
AboutSubscribeUA
Subscribe

AI Today Brief

The daily AI-engineering brief. Built in public. EN · UA.

XTelegramLinkedInYouTubeRSS

Follow AI Today Brief on LinkedIn for daily AI-engineering updates and the weekly “5 shifts that changed how developers work” PDF.

Explore

NewsDigestsConceptsGuides

Company

SubscribeAdvertiseAbout

Legal

Editorial policyAI disclosurePrivacyTerms

© 2026 AI Today Brief. All rights reserved.

  1. Home/
  2. News/
  3. Tools & releases/
  4. Claude Code Silently Appends Session URLs to Commit Messages and Pull Requests
Tools & releases

Claude Code Silently Appends Session URLs to Commit Messages and Pull Requests

Claude Code automatically appends session URLs to git commit messages and pull request descriptions without user prompt or onboarding notice. Developers are finding unexpected links cluttering commit histories, but the behavior can be disabled via a configuration setting.

August 30, 2026· 3 min read
OKCurated by Oleksandr Kuzmenko, AI Product Engineer·Updated August 30, 2026·Sources cited on every story
AI-assisted · editor-reviewed·How we use AI
Claude Code Silently Appends Session URLs to Commit Messages and Pull Requests

Impact: Medium

Why it matters

You can prevent Claude Code from leaking session links into public git commits by updating your settings configuration.

TL;DR

  • 01Claude Code adds session URLs to all commits and PRs by default without notice.
  • 02Set attribution.commit to an empty string in .claude/settings.json to disable it.
  • 03Git commit-msg hooks offer an alternative way to sanitize commits across projects.

Key facts

Affected Tool
Claude Code
Default Behavior
Appends session URL to commits and PRs
Suppression Setting
attribution.commit: "" in .claude/settings.json

Automatic Session Tracking in Git Commits

Claude Code automatically appends a session URL (such as https://claude.ai/code/session_...) to the bottom of every commit message and PR description it generates. This attribution occurs by default without any onboarding warning or confirmation prompt.

Disabling Session Attribution

To prevent session URLs from appearing in your commit history, update your .claude/settings.json file to explicitly suppress commit attribution. You can also implement a git commit-msg hook to sanitize commit messages before they are finalized.

Try it in 2 minutes

{
  "attribution.commit": ""
}

json

✓ When to use

  • When you want clean git commit histories free of automated session metadata links
  • When committing to public repositories or client codebases where internal session URLs should not be exposed

✕ When NOT to use

  • When your team relies on session URL attribution for auditing and session log persistence

What to do today

  • →Open .claude/settings.json in your repository or home directory.
  • →Add "attribution.commit": "" to prevent session URLs from leaking into git logs.

What the community says

  • “My spade is a meaningful part of digging a hole when I plant a tree, but I still don't want a "Spear and Jackson" sign on my tree when I'm done.”

    — oniony on Hacker News

  • “Do you also add all of your notes ever recorded to your PRs?”

    — MassiveQuasar on Hacker News

#Claude Code

Sources

  • GitHub Issue #66504 - Claude Session URL appended to commit messages
ShareShare on XShare on LinkedIn
← Previous storyBuild Custom Batched Ensemble Weather Forecasting with NVIDIA Earth2StudioNext story →Mitigating AI Style Drift and Degradation in Vibe-Coding Workflows

Related stories

  • Tools & releasesDebian Rejects Generative AI Ban, Permitting Responsible Model Use in Open Source
  • Tools & releasesxAI Releases Grok 4.6 Across Web, iOS, and Android Platforms
  • Tools & releaseshtmx 4.0.0 Arrives with Fetch API Internals, Idiomorph Integration, and Partial Swaps
  • Tools & releasesOpen-Source Gateway Experiential Routes Agent Workflows via Trace Optimization

Email digest

Get the morning AI brief

One email a day — the stories that matter for engineers, founders and tech leads. Human-edited, with links to primary sources.

  • ✓120+ sources scanned daily
  • ✓Edited by a human
  • ✓1 email per day
  • ✓EN + UA

By subscribing you agree to the privacy policy.