Live data from Hacker News

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

github.com

241–250 of 257 posts

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

#241
post #198

Earlier quoted context omitted.

It’s not meant for saying “this change was done by Claude” it’s meant to connect commits back to the session. Makes it way easier to jump back into a follow up change between sessions as the agent can reload parts of the context. Anyone thinking this is about tagging AI generated changes and not just making the experience in Claude better is missing the point of the feature.

I get that. However, given that sessions are local and personal why tag it into the public source tree when it can keep a catalogue within the local session metadata with the exact branch, tags and refs. Sounds like easier less intrusive thing to do.

Generally just very useful to have it clickable or copyable from the commit is the thing?

Along with models being much better and more direct to follow something if it’s there. An agent will always read commits to look at a change, force it to look at commits and check another index just in case it exists is slower and pays more tokens, now you can just grab it.

But also mostly because who would actually care about this. It’s a sentence on the end of a git commit, in what way does this annoy people other than their prior feelings about AI tech.

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

#242
According to https://gist.github.com/unkn0wncode/f87295d055dd0f0e8082358a... among many, the environment variable

  CLAUDE_CODE_SUPPRESS_SESSION_ATTRIBUTION
was added in CC version 2.1.202 on July 8, 2026. Setting it to value 1 will suppresses session-URL attribution (returns null instead of the session attribution info). I will set it, as suggested in this July 18 comment https://github.com/anthropics/claude-code/issues/66504#issue...

And in ~/.claude/CLAUDE.md this 'git rule' which works fine:

  Never add a Co-Authored-By line or any other reference to Claude in commit messages.

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

#243
post #236

Earlier quoted context omitted.

> If your entire product is LLM generated you sure as hell have no right to place any license on there Something you’ve created from nothing because of the tool you’ve used to create it should not be allowed to be licensed?

By that very definition you did not create it. Yes it’s the same as using a stock drum pattern in a drum machine, it is not copyrightable because no human was involved in any part of it. If you have an idea and want rights to it then do it the old fashion way and pay a developer to do a commissioned work and you can have your copyright, heres the catch, that will cost a hell of a lot more than 100usd a month

And when that developer copies and pastes useful code snippets from the internet into this product you’ve commissioned them to create? Also not copyrightable?

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

#244

Earlier quoted context omitted.

Deletes off your computer. I'm don't know what else they might be doing with it. They keep slimmed down summaries (on your comptuer) I believe but not the full context.

Then just copy the files into another directory, or maybe include it in a VCS?

Extend the cleanup period to 2 years in ~/.claude/settings.json with

  "cleanupPeriodDays": 720
and for personal projects move all Claude Code memory to the repo, then add a symlink eg

  PROJ="$HOME/.claude/projects/-$(echo "${PWD#/}" | tr '/' '-')"
  DST="$PWD/.claude/memory"

  [ -d "$PROJ" ] || { echo "No project dir: $PROJ" >&2; exit 1; }; mkdir -p "$DST"
  if [ -d "$PROJ/memory" ] && [ ! -L "$PROJ/memory" ]; then mv "$PROJ/memory"/* "$DST"/; rmdir "$PROJ/memory"; fi
  ln -sfn "$DST" "$PROJ/memory"

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

#245
post #126

I may be missing something, but this is exactly what I want as a default. I want the session links there. I see PRs from my coworkers with session links. I still get to control whether other people can see the session, but I don’t lose it. I don’t get the “unprofessional” argument. This is attribution. Attribution is professional. If you don’t want it, you turn it off or rewrite the commit messages. If you are having…

I talk to Claude like no one is going to read it. full of typos, often via voice where I am literally just thinking out loud. I don’t think anyone will find it valuable and I don’t want anyone to read it

ai has been an excuse for people to shove into pr's all kinds of shit that would never be tolerated otherwise; from super long descriptions to annoying emojis in commit messages and overly verbose comments and code that has the mpg of a broken scooter...

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

#246

I may be missing something, but this is exactly what I want as a default. I want the session links there. I see PRs from my coworkers with session links. I still get to control whether other people can see the session, but I don’t lose it. I don’t get the “unprofessional” argument. This is attribution. Attribution is professional. If you don’t want it, you turn it off or rewrite the commit messages. If you are having…

hard disagree. I'm not gonna read the session log, and I don't care for it at all. as for the commit message: if it's the usual verbose Claude style, I'm also not going to read it. to be honest, probably if it's not verbose, I'm still not reading it. I'll ask my review agent anyway to summarize your code. My review agent will read your commit message.

Curious to know, do you read the code first or the summary? How much value do you think AI generated summaries are adding to the review process?

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

#247

Earlier quoted context omitted.

hard disagree. I'm not gonna read the session log, and I don't care for it at all. as for the commit message: if it's the usual verbose Claude style, I'm also not going to read it. to be honest, probably if it's not verbose, I'm still not reading it. I'll ask my review agent anyway to summarize your code. My review agent will read your commit message.

Curious to know, do you read the code first or the summary? How much value do you think AI generated summaries are adding to the review process?

I read the summary which for me focuses on intent: What's the current state, why it's not good, what is being changed and how, and then look at performance numbers.

Then I read the code but only after it got scrutinized by pr review skills on multiple models and those feedback got marked completed by the author.

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

#248
post #239
post #108

Eh, I don't want the tools I use to stamp their names on everything. It's also not uncommon for me to switch between GPT and Claude or different models in the harness if one of them isn't doing well. GPT-5.6 Terra has been doing a significantly better job at writing concise PR bodies and commit messages than Claude's usual multi paragraph word soup. I don't need "Created by Claude Code 1.2.3, Opus 4.8 inside tmux ins…

I found both models produce word salad for PR bodies by default. Same thing with commits messages. I had to create hooks that invoke skills when pushing new commit and open PR body text.

I made a skill which is maybe why GPT is doing okay but Claude seems to straight up ignore it (it invokes/reads it but doesn't follow the directions)

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

#249

Earlier quoted context omitted.

If _you_ choose to do it, no. If the tool auto-does it, yes.

You still choose to configure the tool. "It's the default" is only an excuse for the very first time you notice it.

You're missing the pattern of behavior from Anthropic. They constantly market like this: the session link, the Co-Authored by Claude, the unwillingness to adopt AGENTS.md. Hell, on workflows on 2.1.246 Claude's been ignoring the "attribution" block in settings.json and gone right back to coauthoring every commit.

What's the odds on them fixing that bug anytime soon.

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

#250
post #228

For now you can choose whether to share the sessions, but we all know that from now on the session transcript must be kept clean and presentable in case at some later time it is made public. The session is from now on a stage on which to display virtues and send approved signals. All that rambling and ranting, those explorative impulses, they will soon have to be explained and defended.

Thankfully, one can still ramble and rant and explore in one’s own mind (assuming one has retained the ability).

Not if your boss tells you to generate code like your life depended on it.
Post reply on HN