Live data from Hacker News

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

github.com

121–130 of 257 posts

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

#121
post #53

Earlier quoted context omitted.

I'm not sure i see it as an ad. "Sent from my iPhone" is an ad because the iPhone is not a meaningful part of sending the email. Claude is a meaningful part of the commit though if you're using it, so to me it's more like clarity or transparency than an advertisement.

I agree. But I think I would also like the OS to put a fingerprint (I.e committed on macOSX in /usr/marc/… while he was watching porn on xxx). This way we can get the full context by default and better understand the PRs.

I want that under every message I send from my phone!!

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

#122

Earlier quoted context omitted.

Like "code generator IDE plugins". There are hundreds of them for just about every IDE you can think of. I can't tell if this is a serious question or not, but metaprogramming/generators are decades old concepts that have been common features of basically every IDE since the 90s.

That’s not what we’re talking about, though. That’s mechanical transformation, and isn’t the same thing as code that’s generated on demand from scratch, based on plain-language intent. Surely you know the difference, right? I assume you’ve used LLMs to generate code by now?

So “create an express app boilerplate, make no mistakes” requires attribution but “npx express-generator myapp” does not?

The bar for “writes code for you” is very low.

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

#123
post #53

Earlier quoted context omitted.

I'm not sure i see it as an ad. "Sent from my iPhone" is an ad because the iPhone is not a meaningful part of sending the email. Claude is a meaningful part of the commit though if you're using it, so to me it's more like clarity or transparency than an advertisement.

You don't see how a link to " https://claude.ai/ .." in the Git log is an ad for Cluade/Anthropic? It feels exactly like "Sent from an iPhone" to me, and has exactly the same value to people reviewing the Git log later (i.e. none). Keep in mind that if you run across someone else's spam in the Git logs: - You need a Claude account. - You need permission to view the session. The only people who can just follow that li…

If I put a link to the Jira ticket the commit fixes, is that an ad for Atlassian?

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

#124

Earlier quoted context omitted.

That’s not what we’re talking about, though. That’s mechanical transformation, and isn’t the same thing as code that’s generated on demand from scratch, based on plain-language intent. Surely you know the difference, right? I assume you’ve used LLMs to generate code by now?

So “create an express app boilerplate, make no mistakes” requires attribution but “npx express-generator myapp” does not? The bar for “writes code for you” is very low.

That’s my opinion, yes.

What, specifically, do you have against it?

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

#125
post #53

Earlier quoted context omitted.

I'm not sure i see it as an ad. "Sent from my iPhone" is an ad because the iPhone is not a meaningful part of sending the email. Claude is a meaningful part of the commit though if you're using it, so to me it's more like clarity or transparency than an advertisement.

You don't see how a link to " https://claude.ai/ .." in the Git log is an ad for Cluade/Anthropic? It feels exactly like "Sent from an iPhone" to me, and has exactly the same value to people reviewing the Git log later (i.e. none). Keep in mind that if you run across someone else's spam in the Git logs: - You need a Claude account. - You need permission to view the session. The only people who can just follow that li…

For me, no. I’ve started tracking session ID on every ticket I work on in order to be able to find them again.

Having it in the commit message is handy (not to mentioned I already have it I. The commit message).

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

#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

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

#127

This is probably a controversial take, but I love this. Back in the early days of claude code I had to write a script (well, claude wrote it) to pull out the session id and append it to every commit. It's a lifesaver when you are trying to debug an old commit to pull up the chat session that actually wrote it.

This annoyed me to the point that I created a python script that could search opencode's database and then a skill that uses the script to find the session I was thinking of. It's nice to be able to say "I think 4 days ago I had an issue with a dropdown in Qt6, find that session." Saves a lot of time and tokens.

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

#128
we've started using parallel repos in diff ways for this reason depending on repo purpose, scope etc.

full private repo including session transcripts, etc. agent attribution etc, with public repo that only shows selected subset without sessions ids, some or all agents, etc.

alternatively, we sometimes also do a separate chat only repo or server etc if cross-team agent chat access worth it and don't bother with private / public just disable agents in code repo

have also done some other variants etc. bit of pain to init config, does help with reducing the agent clutter, improve chat security boundaries in case any keys or sensitive env were in any chats if PII / sensitive data checker miss etc.

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

#129
The open models I use everyday also occasionally put the co-signed by claude notices in their commits, because they have been trained on commit logs with these notices present.

We shouldn't polute commit messages with these kind of extra's, they will only lead to more noise. Once all the models append random urls to commit messages, who's to trust these?

If you need attribution I bet that you can find a neater way to tie commit shas to claude uuids.

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

#130

Earlier quoted context omitted.

So “create an express app boilerplate, make no mistakes” requires attribution but “npx express-generator myapp” does not? The bar for “writes code for you” is very low.

That’s my opinion, yes. What, specifically, do you have against it?

Nothing at all, I just think its a rather arbitrary distinction, especially when you consider heuristic methods like autocomplete that have been around for ages.
Post reply on HN