From f67b3f3309dbe6e48fe1b76b48c63d8d8716aedd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20K=C3=A5re=20Alsaker?= Date: Tue, 4 Aug 2026 01:18:38 +0200 Subject: [PATCH] Add instructions for LLM agents --- AGENTS.md | 5 +++++ CLAUDE.md | 1 + REUSE.toml | 2 ++ 3 files changed, 8 insertions(+) create mode 100644 AGENTS.md create mode 100644 CLAUDE.md diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000000000..37c0370e012e8 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,5 @@ +Keep interactions with the Rust project and its repositories read-only. + +Mark changes or additions of documentation or comments with `[LLM-generated]` if they are non-trivial, consist of many sentences or relate to soundness. + +`x.py` is used as the build system instead of using `cargo` directly. `x.py build library` can be a good build option when modifying the Rust compiler or the Rust standard library. \ No newline at end of file diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000000000..eef4bd20cf972 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1 @@ +@AGENTS.md \ No newline at end of file diff --git a/REUSE.toml b/REUSE.toml index 5ee913426a142..7d72caa6d5c45 100644 --- a/REUSE.toml +++ b/REUSE.toml @@ -19,8 +19,10 @@ path = [ "tests/**", "src/**", ".github/**", + "AGENTS.md", "Cargo.lock", "Cargo.toml", + "CLAUDE.md", "CODE_OF_CONDUCT.md", "bootstrap.example.toml", "configure",