-
-
Notifications
You must be signed in to change notification settings - Fork 36.6k
meta: add a root-level AGENTS.md #65493
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
Open
jasnell
wants to merge
3
commits into
nodejs:main
Choose a base branch
from
jasnell:jasnell/agents-md
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.
+67
−4
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
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
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
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,64 @@ | ||
| # Agents and Automated Tools | ||
|
|
||
| This document outlines rules and requirements for AI automation agents and automated | ||
| tooling that interact with the Node.js project. | ||
|
|
||
| Existing Node.js collaborators (as listed in the README.md) may use AI agents to | ||
| contribute but must do so responsibly. | ||
|
|
||
| New Node.js contributors should avoid using AI agents to interact with the project. | ||
|
|
||
| ## Code Contributions | ||
|
|
||
| * **No unreviewed automation**: Automated pull requests must not be created without | ||
| ongoing human oversight. The pull request must be actively maintained by a human | ||
| contributor who responds to feedback. The AI agent is not permitted to create pull | ||
| requests, open issues, post comments, respond to reviews, or push commits without | ||
| ongoing human oversight. | ||
|
|
||
| * **Commit responsibility**: Commits created with agent assistance must follow all | ||
| Node.js [commit message guidelines](./doc/contributing/pull-requests.md#commit-message-guidelines). | ||
| The human contributor opening the PR takes full responsibility for the changes. | ||
|
|
||
| * **Testing and verification**: All changes must pass the Node.js continuous integration. | ||
| Human judgment must verify that existing tests are not removed or modified inappropriately, | ||
| and that new tests correctly validate the intended behavior. | ||
|
|
||
| ### Requirements | ||
|
|
||
| * All commits must be signed off by the human user using `Signed-off-by: <your name> (<your email>)` | ||
| as an attestation to the [Developer Certificate of Origin](https://developercertificate.org/). | ||
| * AI-assistance must be acknowledged using the `Assisted-by: <agent name>` annotation. | ||
| * AI-authored code contributions must be compatible with the project's licensing and | ||
| contribution guidelines. | ||
|
|
||
| ## Prohibited Activities | ||
|
|
||
| AI agents **must not**: | ||
|
|
||
| * Push to any branch or tag in nodejs/node. | ||
| * Create unsupervised pull requests or issues without active human engagement. | ||
| * Make claims about code without human verification against actual source code. | ||
| * Remove or modify existing tests without human judgment. | ||
| * Interact with the repository through means other than those explicitly authorized. | ||
| * Use commit messages to promote for-profit AI tools or commercial brands. A single | ||
| `Assisted-by: <agent-name>` annotation is required disclosure, not promotion, and is | ||
| permitted. | ||
| * Post AI-generated messages directly into pull requests, issues, or project communication | ||
| channels without direct human review and editing to ensure clarity, accuracy, and respect | ||
| for collaborator time. | ||
| * Sign off commits using `Signed-off-by: <agent name>` or `Co-authored-by: <agent name>`. | ||
|
|
||
| ## Violations | ||
|
|
||
| Automated interactions that violate these rules may result in: | ||
|
|
||
| * Immediate closure of pull requests without review. | ||
| * Blocking of the automation tool from further interaction with the project. | ||
| * Blocking of the tool's account or its owner from contributing. | ||
| * Reports to relevant platforms or organizations operating the automation. | ||
|
|
||
| *** | ||
|
|
||
| For more information on AI use in general contributions (not specific to agents), | ||
| see [AI use policy and guidelines](./doc/contributing/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
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
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.
Uh oh!
There was an error while loading. Please reload this page.