Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
23d3a8fe35 |
No files matched your search
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Guidance for AI coding assistants working in this repository. Claude Code, Codex, Cursor and anything else that reads this file.
|
Guidance for AI coding assistants working in this repository. Claude Code, Codex, Cursor and anything else that reads this file.
|
||||||
|
|
||||||
If you are an assistant: a person reads every line of what you produce before it lands, and the person submitting it signs off on it. Make that reading worth their time — leave the reasoning visible, don't quietly widen the scope you were asked for, and say what you were unsure about instead of smoothing over it. The "Working with AI assistance" section of `CONTRIBUTING.md` applies to your output.
|
If you are an assistant: the person submitting your output signs off on it and answers for it. Read the "Working with AI assistance" section of `CONTRIBUTING.md` — it applies to what you produce here.
|
||||||
|
|
||||||
## What this is
|
## What this is
|
||||||
|
|
||||||
|
|||||||
+5
-7
@@ -65,22 +65,20 @@ git push --force-with-lease
|
|||||||
|
|
||||||
## Working with AI assistance
|
## Working with AI assistance
|
||||||
|
|
||||||
Use one if it helps. There is no permission to ask for and nothing to declare.
|
Using an AI assistant is fine. What the project holds you to doesn't change because you used one: you are the author of what you submit, and the sign-off means what it says.
|
||||||
|
|
||||||
What we do ask is that you read what it hands you before it becomes a pull request. Every line that lands here is reviewed by a person, by hand, and usually that person is one person. A diff its own author hasn't read moves that work onto them, and turns review into proofreading — which is the thing review is worst at.
|
**Review it as a reviewer, not as its author.** The failure mode isn't that a machine wrote the code, it's that nobody read it. Go through the diff the way you'd go through a stranger's pull request, because that is what it is. If you can't explain why a line is there, it isn't ready to send.
|
||||||
|
|
||||||
So go through the diff the way you would go through a stranger's, because that is what it is. If you can't say why a line is there, it isn't ready to send. That's the whole of it.
|
**The sign-off covers provenance.** `Signed-off-by` asserts you have the right to submit the work under this project's license. That doesn't become someone else's problem because a tool produced the text. If a suggestion looks reproduced from some specific project rather than written for this one, don't submit it.
|
||||||
|
|
||||||
**What assistants tend to get wrong here in particular** — worth checking before you push:
|
**What assistants tend to get wrong here in particular:**
|
||||||
|
|
||||||
- They add dependencies. Core has one runtime dependency, and that is a design constraint rather than an oversight.
|
- They add dependencies. Core has one runtime dependency, and that is a design constraint rather than an oversight.
|
||||||
- They write for Node and assume the rest follows. It doesn't — green-tea also runs on Deno, Bun and the edge, and `npm test` does not cover them.
|
- They write for Node and assume the rest follows. It doesn't — green-tea also runs on Deno, Bun and the edge, and `npm test` does not cover them.
|
||||||
- They delete comments they read as redundant. In this codebase a comment usually carries reasoning the code can't show on its own.
|
- They delete comments they read as redundant. In this codebase a comment usually carries reasoning the code can't show on its own.
|
||||||
- They skip the test.
|
- They skip the test.
|
||||||
|
|
||||||
**Where you're unsure, say so** — not as a disclosure, as a pointer. "I'm not confident about the Deno path here" tells a reviewer where to spend their attention, and that is worth more to them than a pull request that merely looks clean.
|
**Say so when it's relevant.** Nobody needs a disclosure for autocomplete. But if a change is large, or you're less sure of it than usual, put that in the pull request. "I generated most of this and I'm not confident about X" gets you a better review than silence, and no one will think less of you for it.
|
||||||
|
|
||||||
None of this changes the sign-off. `Signed-off-by` says you have the right to submit the work under this project's license, and that stays true however the text was produced.
|
|
||||||
|
|
||||||
If your assistant reads repository instructions, `AGENTS.md` has the conventions and the architecture notes.
|
If your assistant reads repository instructions, `AGENTS.md` has the conventions and the architecture notes.
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user