frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Stop Advertising in Your Commits

https://akselmo.dev/posts/stop-advertising-in-your-commits/
96•speckx•1h ago

Comments

teaearlgraycold•55m ago
I have to assume these aren’t just ads, but also a critical RLHF avenue for Anthropic. I imagine they scrape these commits from GitHub and compare them against what Claude provided to the user. If the diff that is pushed is different it means the human had to refine the LLM output and that can be fed back in as training data. Presumably semantic search could enable you to find the matching Claude Code session.
bpodgursky•53m ago
I really doubt they bother.

99% of people don't edit the commits by hand, they review and then tell Claude how to edit the commits (or leave a PR comment it reads), that's far easier to ingest than the tiny exhaust of manual edits.

teaearlgraycold•45m ago
LLM providers ask for RLHF feedback in terms of thumbs up/down in their Web UI. That's just one bit of information, given only at the user's whim. The hand-refined code is gold by comparison. They're already scraping all of GitHub. They have the technology and resources to semantic search. I would be shocked if they haven't at least tried.
nextaccountic•18m ago
they already have enough data to make this correlation almost 100% accurate

they know things like your git author line, your github handle, and the exact codebase you were working on

the general shape of commits

even if you change extensively, they will probably be able to match this with claude code sessions

sure the atribution at the end of commits is a signal, but I doubt it's much valuable

if anything it's more valuable to anthropic competitors, that don't have claude code session data to match to open source contributors, and will have to guess if any given code is AI generated, and by how much

lifis•54m ago
Huh? It's not advertising, it's disclosure that the code was not fully (or at all) written by you.
ellyagg•53m ago
It’s both
mbreese•49m ago
> Sent from my iPhone.

I agree. It's both an ad and a useful signal of where the code came from or how it was created.

Just like the default iPhone email signature, it's an ad and a hint that the author was typing with their thumbs, so it's probably a brief auto-corrected message for that reason.

amarant•41m ago
The iPhone analogy is very apt and accurate: it's ~95% advertising and ~5% useful signal.

Which for my repositories means I want ~95% less of it in my commit history. I'm prepared to round up for simplicity. But to each their own.

0123456789ABCDE•34m ago
it absolutely is advertising, you can even call it a growth hack if you want to feel good about it

co-authorship implies ability to hold author rights, which afaik an algorithm can't do.

are folks adding speakeasy/stainless co-authorship lines to their commits? should i add alembic as a co-author after making some changes to the database schema?

  Co-authored-by: buf generate <noreply@github.com>
cobbal•12m ago
If co-authorship implies holding rights, then what gives the "primary author" who just prompted for the code the right to add their own name?
layer8•9m ago
You could do that without naming the AI product.
aleda145•53m ago
I don't know, it is a useful signal that the person did not think deeply about their code changes, and should be treated as such.
Galanwe•26m ago
Reminds me of 25 years ago, the default BitchX config on most distributions contained something that would crash the client with a message "I did not read the configuration".

If someone remembers what it was actually, that would really bring back memories

giancarlostoro•11m ago
I'm too lame to read BitchX.doc

https://www.irchelp.org/clients/unix/bitchx.html

eastbound•25m ago
Working alone, I often look at the Git Blame and wonder “Wait, did I write that or did AI write that?”
conradludgate•24m ago
It's a signal, and probably a high success signal in open source slop discovery, but it's more of a correlation than a causation. I've seen lots of changes that bear the co-authored tag that have had a lot of thought behind the code changes.
bluGill•10m ago
You are responsible, it doesn't matter if a LLM wrote it. Sometimes someone will touch my code and I got wish git blame still had my name. (That is they fixed the spelling of some variables - I'm a bad speller but know the codes are better)
ishan0102•52m ago
I much prefer this over the alternative where people use AI to code without anyone knowing.
deepsun•48m ago
No, the post doesn't say about hiding that, you can write "created by AI" or "helped by LLM". The post is about advertising for commercial products.
mbreese•44m ago
Their rant was about any and all AI notices in commits. They specifically state that merge requests is where that belongs.

I personally disagree and think commit messages makes the most sense. But I also think it's up to the personal preference of whoever owns the repository.

jonnyasmar•42m ago
Who really cares, though? AI is just a tool. If the code is good, the code is good.
john_strinlai•36m ago
>Who really cares, though?

some people certainly do, to the extent of not caring at all about the outcome, only being concerned with the fact that the process was 'tainted' by ai.

the fervor for/against ai can approach the level of religion for some people.

jonnyasmar•34m ago
Oh, I know -- people need to get over it, IMO. Judge the outcome, not the process.
jadar•33m ago
it is a religion for some people. idolatry is idolatry.
vovavili•19m ago
Ideologues always get outcompeted by people with a pragmatic outlook.
elpocko•10m ago
Imagine using software tools on a computer to make a computer do work without telling anybody that you used software tools on a computer to make the computer do the work. That's just disgusting. Matrix multiplication was invented by the devil.
StableAlkyne•8m ago
I can at least see where those people are coming from

AI can be a phenomenal tool for development when used correctly...

... But there is also now a trend on GitHub of low to no-skill individuals going around spamming garbage work in order to play the numbers game for their resume. When asked why they did something or to change it, they just act as a middleman for the robot and show no understanding or initiative.

So I can understand how it's become a turnoff for some people. I used to think it was a dumb rule until a project I work on started being spammed with said junk PRs

layer8•17m ago
Bad AI code can look superficially good in a way that bad human code doesn’t. That’s why AI attribution is useful. That’s before you know whether the code is actually good.
SpicyLemonZest•14m ago
I don't agree. The process that produced the code is an essential part of code review. I frequently run into hacks that I'll approve if, and only if, I trust that some competent human being has explored the alternatives and judged they're the best way forward.
pkamb•49m ago
Sent from my iPhone
doubled112•39m ago
Please excuse my brevity
reaperducer•35m ago
* Ubuntu Pro delivers the most comprehensive open source security and compliance features.
pavon•8m ago
Not the same. What email client you chose doesn't fundamentally change how you wrote the email, or require any additional context that people reading the email should keep in mind. AI codegen does. It should be disclosed, and co-authored-by is good convention for doing so.
jeroenhd•46m ago
I want to know when things are slop or not. At least programmers are willing to admit they're generating slop, unlike social media and blog posts.

Also, if I publish something online, you don't get to tell me what I can and can't put there (except for reasonable exemptions for hate speech and such, of course). If you don't like repos that tag their slop, go read someone else's code. Feel free to write a filter in your adblocker for the dozen AI tools you usually find.

arikrahman•44m ago
Same for stars on repositories, it just incentivizes botting for startups.
nikhilpareek13•41m ago
if disclosure is the goal, git already has the Co-Authored-By trailer convention for this. I add it manually when I want to flag that an AI was meaningfully involved in a commit, and it shows up properly in Github's UI as a co-author. The claude and cursor footers being default-on rather than opt-in is what makes them feel more advertising than disclosure to me.
mcpherrinm•37m ago
The post seems to be down so I am not quite sure what it says, but Co-Authored-By trailer is what Claude does. I'm not quite clear what you're suggested that's different from what Claude does - just default to off instead of default on?

> Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

SoftTalker•25m ago
Is it more than advertising even, and setting the stage for future claims of ownership by Anthropic (or whichever AI company)?
sestep•38m ago
I mean, sure, except that many large open-source projects (e.g. Linux [1], Nixpkgs [2], etc) require this as part of their AI policy. Omit attribution in your own projects if you want, but the maintainers of these projects are owed at least that level of transparency for contributions.

[1] https://docs.kernel.org/process/coding-assistants.html

[2] https://github.com/NixOS/nixpkgs/commit/d18b8f3238abdb2cd878...

lifthrasiir•32m ago
Notably though, Linux's requirement (Assisted-by) is different from what Claude Code actually does (Co-Authored-By). I'm not sure, but it might be intentional (to make the signaling explicit).
sestep•26m ago
For sure, and in the PR description for the Nixpkgs AI policy, they explicitly mentioned this as a "brown M&M test" [1]. I read the blog post as being against including this information in commit messages at all, not just about tools adding it automatically.

[1] https://en.wikipedia.org/wiki/Van_Halen_test

kazinator•37m ago
I don't agree. Who/what wrote the commit is definitely part of the commit.

If Git commits formally had a co-authored header, it would go there. As it stands, there is one author and one committer. If something was pair programmed, whether with a human or machine, you need a commit message trailer if you want to show that. Commit message trailers are a formal mechanism in git, supported by tooling; there are git commands to add and remove them.

Totally agree about "sent from my fartphone", of course.

Disclosing things in the pull request is not enough; pull requests get lost in the sands of time. Years down the road, all that some downstream consumer has is the git history, not any CI-related metadata.

AlfredBarnes•33m ago
I was gobsmacked when the Amazon share sheet put "or ask Alexa, your shopping assistant for more ideas"
JeremyHerrman•33m ago
Is AI responsible for the committed code? Should AI be blamed when services go down due to the change?

The answer is absolutely not - the developer is responsible whether the code was AI assisted or not, and the dev's name should be attached to it just like any change.

The OP is right: these are ads, plain and simple, and it's a dark pattern for these companies to have attribution enabled by default

lacewing•28m ago
"Sent from my iPhone"

But of course, owning an iPhone early on was seen as prestigious. Using an LLM is... not? Many people really don't want the world to know. For blogs in particular, the urge to have an LLM generate the entire thing and then post it under your name seems to be really difficult to resist.

intentfy•23m ago
If you're turning commit attribution off, you're definitely turning iphone signatures off too.
SpicyLemonZest•22m ago
I don't agree at all. I think it was a dark pattern when attribution was not enabled by default and angrily demanded it from everyone who sent me AI-generated code. It's not OK to declare sole authorship of something that you did not in fact author simply because you're volunteering to take responsibility for it.
cautiouscat•14m ago
The dark pattern was adding the name of the product. An acceptable pattern would be “Written with the help of an LLM”.
neilv•10m ago
I disagree. Imagine a human co-author on a work. "Written with a co-author" would not be sufficient attribution.
cautiouscat•6m ago
That’s Apples to Oranges. Me saying “Co-authored by Joe Smith” gives the human, Joe Smith, possible exposure and definite credit.

“Co-authored by Copilot” gives a multi billion dollar corp free advertising. I don’t care about them. I do care about Joe though.

SpicyLemonZest•9m ago
I get the opposition to product names, but as someone who's trying hard to make an OpenAI boycott work, I personally value being told which LLM in particular is responsible.
add-sub-mul-div•11m ago
It's not the gun's responsibility when you shoot it but we still need to have discussion and rules about guns. Enough with this tired, worthless semantics argument.
awesome_dude•7m ago
When a paper is submitted to a reputable publication references are demanded.

You have to let people know where your ideas are supported, or even come from.

To do anything else is plagiarism.

AI isn't a co-contributer - but it should be referenced - just like a link to a Stack Overflow comment when that's the source of code.

Having AI referenced in the commit is (IMO) best practice - but only co-contributer attributes are available (for now)

intentfy•29m ago
I turned it off so future agents aren't biased in favor/against a piece of work depending on the author.
epistasis•23m ago
I have to ask Claude to stop doing this about every two days, and usually I don't see it until after a push to a remote repo.

So annoying. Just stop, Anthropic, please. And pay attention to the request to stop, instead of silently turning it back on again all the time.

Latest thing was linking to the Claude session that generated some of the PR. Put in somewhere that a commit had LLM assistance, fine, but don't spam everybody please, ESPECIALLY in all the icons all over the GitHub interface. Sheesh.

It's already obvious that it's coming from an LLM because it's been overdocumented with excessive prose, and the code is overly verbose.

Tomte•10m ago
You don‘t ask, you configure it: https://code.claude.com/docs/en/settings#attribution-setting...
victorkulla•23m ago
https://fshot.org/techzone/hacker-news.php
knorker•23m ago
When I read commit history I want to see the reasons. Commit messages are for extra context.

It's very useful if it says AI/LLM was used, then I know that there may not actually be a reason for the choice in the commit, so per Chesterton's fence I can then tear down that fence.

Now, do I need to know which brand of LLM? No. And fair enough, I'll stop being specific.

fishbacon•20m ago
I was hoping for a kind of joke. Like saying "idiot" as the last thing in your post and getting "Please don't sign your posts" as a reply.
zetanor•14m ago

    commit 85cd835e5923cddc1882e74354eac8dba6a925c1 (HEAD -> master, origin/master, origin/HEAD)
    Author:     John
    AuthorDate: Fri May 22 13:25:33 2026 -0000
    
    Merged PR #197
    
    Tired of planning for dinner every day? FoodDrop™ is the premier ready-to-cook meal-by-drone delivery service in the greater Vancouver area and Belize. Get one month of food dropped onto your driveway by FoodDrop™ for only $12.95 when you use this commit's hash as a coupon code! Offer expires Fri May 25 13:25:33 2026 -0000.
gib444•4m ago
[delayed]
benced•11m ago
I think this is more of a corporate metrics tracking than advertising. Decision makers aren't seeing these ads in commits but they certainly are seeing a report from Anthropic that "75% of your commits last quarter are from Claude code".
p0w3n3d•8m ago
This is a small "getting used to" technique to let people "be grateful" to the "ai friend"
cerved•7m ago
Fwiw you can create your own trailers

    Yolo-Slopped-By: Sonnet-4.5 <claude@anthropic.com>
https://git-scm.com/docs/git-interpret-trailers
munchler•6m ago
> Disclose your "AI" tools in a merge request if needed but leave them out of the damn commits, those are for technical information and not for advertising.

I think this is very poor advice. Knowing who/what changed the code is often crucial for understanding why it changed.

Svoka•5m ago
I am confused. Do AI agents reword your commits and force push or something?

Last time I checked nobody was adding anything to my commits. Did I miss something?

6c696e7578•4m ago
https://archive.ph/jR2LF

A few interesting modern pixel fonts

https://unsung.aresluna.org/a-few-interesting-modern-pixel-fonts/
77•zdw•23h ago•19 comments

Stop Advertising in Your Commits

https://akselmo.dev/posts/stop-advertising-in-your-commits/
104•speckx•1h ago•78 comments

I Bypassed Adobe and Microsoft to Build a Git-Tracked Book Production Pipeline

https://www.djspeckhals.com/posts/2026-05-22-how-i-bypassed-adobe-and-microsoft-to-build-a-git-tr...
39•dustin1114•4d ago•15 comments

The Ballad of TIGIT

https://www.owlposting.com/p/the-ballad-of-tigit
71•crescit_eundo•4h ago•12 comments

Rosalind: A genomics toolkit in Rust running whole-genome pipelines on a laptop

https://github.com/logannye/rosalind
56•samuell•5d ago•10 comments

Spain blocks prediction markets Polymarket, Kalshi over lack of gambling licence

https://www.reuters.com/business/spain-blocks-prediction-markets-polymarket-kalshi-over-lack-gamb...
536•thm•6h ago•249 comments

Launch HN: Minicor (YC P26) – Windows desktop automations at scale

https://www.minicor.com/
55•fchishtie•5h ago•41 comments

C64 Basic: Game Map Overhead "Camera View"

https://retrogamecoders.com/overhead-camera-view/
53•ibobev•6h ago•7 comments

Dropbox CEO Drew Houston to step down

https://www.cnbc.com/2026/05/26/dropbox-ceo-drew-houston-ashraf-alkarmi.html
160•aghuang•6h ago•160 comments

Outsourcing plus local AI will soon become more economical vs. frontier labs

https://www.signalbloom.ai/posts/outsourcing-plus-localai-will-soon-become-more-economical-vs-fro...
175•GodelNumbering•7h ago•192 comments

DynIP – Dynamic DNS with RFC 2136, IPv6, DNSSEC, and BYOD

https://dynip.dev/
280•dynip•12h ago•114 comments

Sage Care (YC S24) Is Hiring Software Engineers

https://www.ycombinator.com/companies/sagecare/jobs/xtloH8r-senior-software-engineer
1•ian-gillis•3h ago

Language Models Need Sleep

https://arxiv.org/abs/2605.26099
145•juxtapose•4h ago•113 comments

The real cost of owning a home

https://ericturner.dev/posts/cost-of-home-ownership/
117•ggcr•4h ago•320 comments

Are we self-sovereign PKI yet?

https://buffrr.dev/blog/are-we-self-sovereign-pki-yet/
46•ca98am79•4d ago•15 comments

U.S. is using more of its resources to defend Israel than Israel is itself

https://truthout.org/articles/us-military-using-more-missiles-to-defend-israel-than-israel-itself/
25•root-parent•15m ago•2 comments

Opaque Types in Python

https://blog.glyph.im/2026/05/opaque-types-in-python.html
87•lumpa•3d ago•35 comments

Netherlands blocks US takeover of vital digital supplier

https://www.politico.eu/article/netherlands-blocks-us-takeover-vital-digital-supplier/
432•vrganj•8h ago•168 comments

Performance of Rust Language [pdf]

https://github.com/yugr/rust-slides/
100•tanelpoder•20h ago•77 comments

Use boring languages with LLMs

https://jry.io/writing/use-boring-languages-with-llms/
104•evakhoury•4d ago•82 comments

Phantasy Star IV – 1993 Developer Interviews

https://shmuplations.com/phantasystariv/
120•speckx•4d ago•47 comments

Is "colorectal cancer" rising in "young people"?

https://dynomight.net/crc-rates/
106•surprisetalk•4h ago•108 comments

The user is visibly frustrated

https://pscanf.com/s/354/
244•croes•15h ago•213 comments

Extending MySQL with VillageSQL

https://maxdemarzi.com/2026/05/21/extending-mysql-with-villagesql/
8•maxdemarzi•2d ago•1 comments

How Shamir's Secret Sharing Works

https://ente.com/blog/how-shamirs-secret-sharing-works/
349•subract•21h ago•65 comments

Uber, Lyft drivers in Massachusetts form first US ride-share union

https://www.reuters.com/business/world-at-work/uber-lyft-drivers-massachusetts-form-first-us-ride...
224•onemoresoop•4h ago•120 comments

How do you build a semiconductor company on something that's free?

https://www.siliconimist.com/p/the-open-source-silicon-business
72•johncole•4d ago•28 comments

Using AI to write better code more slowly

https://nolanlawson.com/2026/05/25/using-ai-to-write-better-code-more-slowly/
1096•signa11•20h ago•405 comments

Incident with Actions and Pages

https://www.githubstatus.com/incidents/gnftqj9htp0g
79•hakube•8h ago•25 comments

What color is your function? (2015)

https://journal.stuffwithstuff.com/2015/02/01/what-color-is-your-function/
59•tosh•4h ago•48 comments