Debian Codegraph @

AGENTS.md

raw
1 # AGENTS.md
2
3 Writing this file is not a statement for or against using AI coding agents.
4 People are using them on this repository either way, so this file exists to make
5 sure that when they do, the rules of the project are actually followed.
6
7 If you are driving an agent here, you are responsible for its output. Read the
8 diff before you send it.
9
10 Answers to the reviewers should be done by a human, not a agent.
11
12 ## 1. Never read or copy GNU code
13
14 GNU coreutils is GPLv3; this project is MIT. Any code derived from it - even a
15 few lines, a helper structure, a test fixture or a comment - cannot be accepted.
16
17 ## 2. A PR needs tests
18
19 New behavior or a bug fix comes with a test, in `tests/by-util/test_<util>.rs`
20 or as a unit test next to the code. If a GNU test used to fail and now passes,
21 add a Rust test so it cannot silently regress.
22
23 No tests, no merge.
24
25 ## 3. Keep the PR description short
26
27 Describe the problem being solved and what changed. That is all.
28
29 - No generated walls of text, no bullet-point summaries of every hunk, no
30 emoji-headed sections.
31 - Title: `<util>: <what changed>`, e.g. `ls: fix version sort order`.
32 - Write issue reports, PR descriptions and replies to reviewers in your own
33 words. The point of review is to check that a human understands the change.
34
35 ## 4. Read the docs already in this repo
36
37 Before changing anything, look at the Markdown files here - they are the actual
38 rules, this file is only a pointer:
39
40 - `CONTRIBUTING.md` - licensing, commit hygiene, what a PR must contain
41 - `DEVELOPMENT.md` - build, test and environment setup
42 - `README.md`, `SECURITY.md`, `CODE_OF_CONDUCT.md`
43 - `docs/src/*.md` - platforms, performance, l10n, multicall, test coverage
44 - the per-utility `README.md` / `locales/*.ftl` files when touching a utility