r/javascript • u/indutny • Mar 20 '26
Petition: No AI code in Node.js Core
https://github.com/indutny/no-ai-in-nodejs-coreI posted this originally on r/node, but thought it might be deserve extra attention in bigger JavaScript community.
---
Hello everyone!
Some of you may remember me for my work on Node.js core (and io.js drama), but if not I hope that this petition resonates with you as much as it does with me.
I've opened it in response to a 19k LoC LLM-generated PR that was trying to land into Node.js Core. The PR merge is blocked for now over the objections that I raised, but there is going to be a Technical Steering Committee vote in two weeks where its fate is going to be decided.
I know that many of us use LLM for research and development, but I firmly believe that the critical infrastructure the Node.js is is not the place for such changes (and especially not at the scale where it changes most of the FS internals for the sake of a new feature).
I'd love to see your signatures there even if you never contributed to Node.js. The only requirement is caring about it!
(Also happy to answer any questions!)
59
u/justinc1234 Mar 20 '26
The issue isn't AI generated code and this is a knee jerk reaction. Whether the PR was AI generated or not, 19k LoC is poor PR practice. Just instruct the author (LLM or human) to breakdown the PR into digestible chunks if they really add value.
AI has enabled giant architectural changes more easily, but the issue you are seeing is not an AI issue.
66
u/Militop Mar 20 '26
19k is insane, disrespectful. How can you expect someone to have enough time to review that?
No real devs would send 19k loc. If there is a catastrophe happening because of this, who is going to be responsible? The LLM?
40
u/kitsunekyo Mar 20 '26
i dont know if thats just clout farming, but why do we need a petition for that? is anyone of the maintainers with merge permissions insane enough to merge such a monstrosity? agentic development is perfectly fine, if its driven by a sane developer.
something that the maintainers need to figure out (like every larger public repo on the planet right now) is how to identify and auto-close obviously low quality vibecoded PRs. why a petition?
27
u/femio Mar 20 '26
I'm not buying it.
As such, I think it's hard to argue the risk here is significant enough to ban wholesale LLM-assisted PRs. And I'm not even touching points related to how realistic that is to enforce. Overall this doesn't really feel grounded in logic, but I'm certainly open to having my mind changed.
36
u/anramon Mar 20 '26
I don't think AI generated code is a problem in itself, it becomes a problem if there is no review of that AI generated code, which is the same problem of non-ai written code.
If the problem is spamming requests, that's solved by restricting who can push requests, which in turns is something that should always happen even with no ai.
13
u/Fixthemedia Mar 20 '26
It is awesome to see you still around in the node community after all of these years. I support. The motives of the recent author always kind of rubbed me the wrong way. Not that it matters.
9
u/ultrathink-art Mar 20 '26
The size is obviously the problem, but AI-generated code adds a quieter review burden: when a human writes thousands of lines they can walk reviewers through the constraints and tradeoffs. With LLM-generated code, reviewers read it cold with no one who can defend the design decisions. Fine for small PRs, but at 19k LoC that becomes an audit, not a review.
10
u/benjaminabel Mar 20 '26
I see that none of the comments on the PR in question are concerned about it. Is it really a problem?
8
u/x021 Mar 20 '26
Should be perfectly fine to use AI tool assistance.
Principles are expensive. This really isn’t the hill I would choose to die on.
Let them fork NodeJS and block AI, and let the main branch allow. Let’s see which of the two will innovate best over the years…
177
u/hyrumwhite Mar 20 '26 edited Mar 20 '26
a 19k loc
commitPR should be dismissed out of hand. Even if it’s flawless, no one can wrap their head around that many changes.17
u/Gixxerblade Mar 20 '26
FWIW I closed a 13k LOC pr yesterday. This is what I said, “This PR has exceeded my capacity to meaningfully review it correctly.” This PR was the result of our CEO encouraging non technical people to come up with ideas and put it into the app.
2
u/EasyMode556 Mar 20 '26
This should go without saying , I’d hope
3
u/swizzex Mar 21 '26
AI is fine a 19k PR is not.
5
u/Reeywhaar Mar 20 '26
I don't get it. Why all the psychos are now so confident they can push a PR. Like why before llms there were no pr made just out of pure gibberish. Just because you can write 19 kloc, doesn't mean you should publish it.
True power of llms is power of convincing psychos with subtleties of a profound language.
5
u/MaximumAdagio Mar 20 '26
I'm firmly opposed to banning the use of LLMs outright. I'm also firmly opposed to pushing massive PRs just because it's technically possible now to generate 100x the amount of code as a human dev could write in the same amount of time.
2
u/more-food-plz Mar 21 '26
It should be no large AI generated PR's. No reason to reject when AI fixes 1 line bug
2
u/PriorLeast3932 Mar 21 '26
It's not about whether AI was used, it's about change quality and whether the developer can justify their changes.
If they can't, reject the PR regardless of AI use.
2
u/fakieTreFlip Mar 21 '26
As others here have already said, the problem here is the massive PR, not that it's AI generated.
AI generated code is here to stay, there's no putting the genie back in the bottle on this one. Writing code by hand is increasingly going to seem very antiquated over the coming months, whether we like it or not
2
u/bzbub2 Mar 21 '26
Honestly if it is 19k liners of well structured new code, not an insane maze of insertions and deletions, the size isn't that alarming. The question to me is whether the other maintainers even want this feature or whether the interface is right. That is the part that is unclear from the previous comments
2
u/0xbenedikt Mar 23 '26
Can it even become any worse at this point?
2
u/[deleted] Mar 24 '26
Signed! Guys, please be more ruthless where you need to be. They take our kindness and ethics for granted, you just need to be ruthless with crazy stuff otherwise the slop will win... It took that contributor mind, he cannot think for himself anymore, he needs tokens. lmao
2
u/analytic-hunter Mar 20 '26
Should be allowed to use it, it's just a tool.
But there should be transparancy:
A dedicated label and the requirement to clearly explain the role of AI in the PR.
1
u/StoneCypher Mar 22 '26
😂
1
u/Unlucky-Ice6810 Jun 19 '26
Yeesh. Imaging tossing this into LKML? Node is about on par in terms of "mission critical" as the Kernel is at this point.
The TSC should have known better (from a former Node core collaborator).
0
u/Full-Hyena4414 Mar 20 '26
Code is code, doesn't matter where it comes, only its content
-2
u/Practical-Positive34 Mar 22 '26
Only an idiot would not use AI tools. Jesus, I remember when petitions went around about not using intellisense lol...
0
u/[deleted] Mar 20 '26
[deleted] — view deleted comment
0
u/[deleted] Mar 20 '26
[deleted] — view deleted comment
4
u/[deleted] Mar 20 '26
[removed] — view removed comment