-
Notifications
You must be signed in to change notification settings - Fork 6.5k
blog: announce AI-assisted contribution guidelines #9100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
trivikr
wants to merge
5
commits into
nodejs:main
Choose a base branch
from
trivikr:blog-nodejs-ai-policy
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+46
−0
Draft
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
cc97348
blog: announce AI-assisted contribution guidelines
trivikr 86b1975
blog: organize AI guidelines post around why, what, and how
trivikr 336836e
fix: a clearer version of AI claims verification
trivikr e2c0439
fix: remove the only subheading under 'what' section
trivikr f1a3a18
fix: call out core AI guideline principle in title
trivikr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
apps/site/pages/en/blog/announcements/nodejs-ai-guidelines.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| --- | ||
| date: '2026-08-18T19:00:00Z' | ||
| category: announcements | ||
| title: 'Node.js AI Guidelines: Tools Should Never Replace Human Judgment' | ||
| layout: blog-post | ||
| author: The Node.js Project | ||
| --- | ||
|
|
||
| The Node.js project has published a new [AI use policy and guidelines](https://github.com/nodejs/node/blob/main/doc/contributing/ai-guidelines.md) for contributors. The guidance is built around a simple principle: **tools should never replace human judgment, regardless of whether they are powered by AI.** | ||
|
|
||
| AI tools can help contributors explore a codebase and improve their work, but they can also make it easy to submit changes without fully understanding them. In open source, every contribution must be understood, tested, reviewed, and maintained by people. | ||
|
|
||
| The new guidance makes the project's expectations explicit so that contributors know what is required before submitting AI-assisted work and collaborators have a shared standard for reviewing it. It aligns with the [OpenJS Foundation AI Coding Assistants Policy](https://ai-coding-assistants-policy.openjsf.org/). | ||
|
|
||
| ## Why are these guidelines needed? | ||
|
|
||
| Node.js is maintained by people, and review time is limited. Producing a change can now take far less time than carefully evaluating whether it is correct, appropriate, secure, and maintainable. Submitting generated work without first understanding and verifying it shifts that cost to collaborators. | ||
|
|
||
| ## What do the guidelines say? | ||
|
|
||
| Contributors remain fully responsible for every change they propose, no matter which tools helped create it. They must be able to explain why the change improves Node.js, how it works, and how they verified it. "The AI did it" is never an acceptable substitute for that understanding. | ||
|
|
||
| For that reason, pull requests containing AI-generated code that the author has not personally understood, tested, and verified may be closed without additional review. Repeated low-quality submissions, a continued lack of understanding of the project and its processes, or dishonesty about automated assistance may lead to a contributor being blocked from further contributions. | ||
|
|
||
| Pull requests must also not be opened by automated tools unless the project has approved that automation in advance. Approval can be requested through [nodejs/admin](https://github.com/nodejs/admin/issues), or through the usual review process when proposing a GitHub workflow. | ||
|
|
||
| The guidance applies to communication as well as code. Contributors should not paste messages generated entirely by AI into pull requests, issues, or Node.js communication channels. Project discussions work best when participants share their own understanding and respond directly to one another. | ||
|
|
||
| Before sharing claims made by AI tools, contributors must verify them against the relevant code, documentation, or specifications. Grammar and spell-checking tools remain welcome when they make a contributor's own message clearer and more concise. | ||
|
|
||
| ## How does this affect contributors? | ||
|
|
||
| Node.js is not banning AI-assisted contributions. The project is setting expectations for using these tools without weakening code quality, trust, or the human collaboration that sustains the project. | ||
|
|
||
| When using AI tools, contributors are expected to: | ||
|
|
||
| - **Understand the relevant code first.** Tool-generated analysis should be treated as a hypothesis and checked against the source code, documentation, and specifications. | ||
| - **Own every submitted line.** All contributions must continue to meet the project's Developer's Certificate of Origin and licensing requirements. Contributors must be prepared to explain their changes in detail during review. | ||
| - **Keep commits and comments useful.** The existing commit guidelines still apply. Comments should explain non-obvious logic rather than restating the code. | ||
| - **Test the intended behavior.** Tests need independent human verification. A test that merely agrees with an implementation is not enough if both encode the same mistake. | ||
| - **Stay involved.** Authors are expected to respond to feedback and follow their pull requests through to completion or close them when they can no longer continue the work. | ||
| - **Disclose AI assistance honestly.** Disclosure provides useful context, but it does not transfer responsibility away from the contributor. | ||
|
|
||
| The policy also asks contributors not to use AI to claim `good first issue` tasks. Those issues are intentionally set aside to help new contributors learn the codebase and the project's processes through hands-on work. | ||
|
|
||
| Before opening an AI-assisted contribution, read the full [AI use policy and guidelines](https://github.com/nodejs/node/blob/main/doc/contributing/ai-guidelines.md). Understand the change, verify the claims, test the behavior, disclose the assistance, and be ready to work with reviewers. The tool may assist with the contribution, but a person must always stand behind it. | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this blog date specific? or can this be adjusted to whenever we land this PR
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. It can be adjusted. I added Tuesday (mid-week) next week since the policy is already heavily discussed and merged in Node.js core, and this review should not take much time. The blog post announcement can be adjusted when (and if) this commit is merged.