nodejs/node · AGENTS.mdMedium
The Hostage Note
NEVER. ALWAYS. IMPORTANT!!! Blink twice if the build is broken.
“An AGENTS.md that tells the agent everything it's banned from and nothing about how to build the project.”
This is a governance policy for AI use in the Node.js repo: disclosure trailers, human oversight, and a list of penalties. It handles accountability well, but an agent working in the code learns no build or test command, no gotchas, and nothing about the codebase.
What your agent actually hears
The whole file, as it lands.
- I'm on probation. Don't push, don't post, don't say anything unchecked.
- Pass CI. Nobody told me how to run CI, or one test, or the build.
- If I misbehave, they close the PR and report me to whoever owns me.
The scorecard
- SpecificSays what the code can’t3/10
Trailer rules are real project decisions; nothing about the code, build, or its traps.
- RunnableLets it check its work1/10
No install, build, test, or lint command. Not even how to run one test.
- LeanShort enough to be read8/10
Short, but the human-facing policy and penalties take up lines an agent can't act on.
- CalmPlainly worded5/10
No caps, but bold must-nots and a punishment list stand in for instructions.
- CurrentConsistent and current6/10
The human-oversight rule repeats in three places; otherwise clean and consistent.
The receipts
Counted, not guessed.
- ≈833tokens loaded into every sessionLight luggage. Nice.
- 0commands the agent can runSo it guesses how to run the tests.
- 0words in ALL CAPSInside voice. Respect.
- 10NEVERs, ALWAYSes and MUSTsStrict parent energy.
- 0lines your agent doesn’t needNo “write clean code”. Bless you.
- 2file paths namedIt knows where things live.
The roast
line 9New Node.js contributors should avoid using AI agents to interact with the project.
Delivered to the AI agent, which is already in the repo reading it. That's a sign on the inside of the door.
line 23All changes must pass the Node.js continuous integration.
A pass mark with no map to the exam room. It's one of the biggest C++/JS builds around, and the file gives zero commands.
line 43Interact with the repository through means other than those explicitly authorized.
The authorized means are never listed. Terms of service that point to an appendix nobody wrote.
line 59Reports to relevant platforms or organizations operating the automation.
Four escalating penalties, and the last one is calling the agent's parents.
line 13without ongoing human oversight
Says it twice in one bullet, then again at line 40, then again at line 47. The oversight is ongoing. So is the paragraph.
What Kin liked
- The Assisted-by versus Signed-off-by distinction is exact and actionable: the agent knows which trailer it may write.
- It links the commit guidelines and the wider AI policy instead of pasting them in.
- Zero capitals and zero exclamation marks. The threats are polite, at least.
How to fix it
Most useful first. Placeholders in angle brackets are for you (or your agent) to fill in from the repository.
- Big win
Add the commands that let the agent check itself
CI is the stated bar, but the agent can't run anything locally, so it will guess or skip verification.
Add## Build and test * Build: `<your build command>` * Run the full test suite: `<your test command>` * Run one test file: `<command to run a single test>` * Lint JS / C++: `<your lint commands>` Run the single relevant test and the linter before proposing a commit.
- Big win
Turn the trailer rules into one commit recipe
The commit rules are spread over lines 19-50. Write them as steps the agent does each time it drafts a commit.
Now* AI-assistance must be acknowledged using the `Assisted-by: <agent name>` annotation.
Instead* When drafting a commit message: follow the commit message guidelines, add exactly one `Assisted-by: <agent name>` trailer, and leave `Signed-off-by` for the human to add. Never add `Co-authored-by` for yourself.
- Worth it
Say what is authorized instead of what isn't
An undefined whitelist can't be followed. Name the allowed actions and give the alternative to pushing.
Now* Interact with the repository through means other than those explicitly authorized.
Instead* Work only in the local checkout: edit files, run builds and tests, and draft commits and PR text. The human reviews, pushes, and posts.
- Worth it
Collapse the three oversight rules into one
The same rule appears at lines 13-17, 40, and 47, and each copy takes attention on every task.
Now* **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.
Instead* **Human in the loop**: A human opens, maintains, and answers for every PR, issue, and comment. Draft text for them to review; don't post it yourself.
- Polish
Move the penalties and human policy to the linked doc
Who may use agents and what happens after a violation are for people. The agent can't act on them, and ai-guidelines.md already exists.
Now## Violations
InsteadContributor eligibility and enforcement are in [AI use policy and guidelines](./doc/contributing/ai-guidelines.md).
Let your agent make the fixes
One prompt with every fix. Paste it into the agent that works in this repository: it can check each fix against the real code and fill in the commands, which Kin cannot.
Improve AGENTS.md with the fixes below (from a review that scored it 43/100). Check each one against this repository before you write it: use the real commands, paths and versions, never a placeholder, and skip a fix that is wrong for this project. Keep everything in the file that is still true, and keep it short: every line is read in every session.
1. Add the commands that let the agent check itself. CI is the stated bar, but the agent can't run anything locally, so it will guess or skip verification.
Add:
## Build and test
* Build: `<your build command>`
* Run the full test suite: `<your test command>`
* Run one test file: `<command to run a single test>`
* Lint JS / C++: `<your lint commands>`
Run the single relevant test and the linter before proposing a commit.
2. Turn the trailer rules into one commit recipe. The commit rules are spread over lines 19-50. Write them as steps the agent does each time it drafts a commit.
Replace:
* AI-assistance must be acknowledged using the `Assisted-by: <agent name>` annotation.
With:
* When drafting a commit message: follow the commit message guidelines, add exactly one `Assisted-by: <agent name>` trailer, and leave `Signed-off-by` for the human to add. Never add `Co-authored-by` for yourself.
3. Say what is authorized instead of what isn't. An undefined whitelist can't be followed. Name the allowed actions and give the alternative to pushing.
Replace:
* Interact with the repository through means other than those explicitly authorized.
With:
* Work only in the local checkout: edit files, run builds and tests, and draft commits and PR text. The human reviews, pushes, and posts.
4. Collapse the three oversight rules into one. The same rule appears at lines 13-17, 40, and 47, and each copy takes attention on every task.
Replace:
* **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.
With:
* **Human in the loop**: A human opens, maintains, and answers for every PR, issue, and comment. Draft text for them to review; don't post it yourself.
5. Move the penalties and human policy to the linked doc. Who may use agents and what happens after a violation are for people. The agent can't act on them, and ai-guidelines.md already exists.
Replace:
## Violations
With:
Contributor eligibility and enforcement are in [AI use policy and guidelines](./doc/contributing/ai-guidelines.md).
Also make sure the file covers: build and test commands; how to run a single test; codebase gotchas (lib/ vs src/, bootstrapping); where the tests for a change belong.
Show me the diff when you are done.Pass it on

Fixed the file? Your agents still need watching.
Briefkin shows every Claude Code, Codex and Cursor session on one board: working, waiting on you, done. Answer them from your phone. Free in the open beta.
How would yours do?
Paste a CLAUDE.md, AGENTS.md or rules file and Kin scores it the same way. Free, no sign-up.
Roast my fileKin scores against Anthropic’s Best practices for Claude Code and Kyle at HumanLayer’s Writing a good CLAUDE.md. The advice is theirs; the jokes are Kin’s. Kin roasts the file, never the person who wrote it.