// 项目详情

AGENTS.md:为 LLM 添加指令

Matrix 讨论串 :: https://matrix.to/#/!CTCrFzsBPYmDLmrja4:0upti.me/$VaREFlsVM_RniZfbTfyYyrPiuF_N7pTeWoBxVTD4pvI?via=nixos.org&via=matrix.org&via=tchncs.de --- `nixpkgs-review`,不确定这是否正确运行了,但没有抛出任何错误 ```bash [reap@jager:~/Desktop/nixpkgs]$ nix-sh... 虽然这只是一个薄弱的护栏,但总比完全没有护栏来遏制 LLM 生成的垃圾内容要好。看起来这对 QEMU、Node.js、Rust 和 systemd 等其他大型项目也有帮助 - https://github.com/qemu/qemu/blob/master/AGENTS.md > 目前人们可能在无意中没有遵循我们为代码提交记录的流程... 这个提议在过去多个 PR 中未被接受是有充分理由的, 参见 https://github.com/NixOS/nixpkgs/pull/544374

AGENTS.md: add instructions for LLMs LLMs are pre-trained to look for a `AGENTS.md` when used in a coding harness. Nixpkgs has had an automation/AI policy but agents may or may not read it as they are not pre-trained to look for those files. `AGENTS.md` covers mostly all harnesses apart from Claude by Anthropic. For that we symlink Matrix thread :: https://matrix.to/#/!CTCrFzsBPYmDLmrja4:0upti.me/$VaREFlsVM_RniZfbTfyYyrPiuF_N7pTeWoBxVTD4pvI?via=nixos.org&via=matrix.org&via=tchncs.de --- `nixpkgs-review`, not sure if this worked correctly but it didn't throw any errors ```bash [reap@jager:~/Desktop/nixpkgs]$ nix-sh... While this is a weak guardrail, it is better than no guardrail to curb LLM slop. It seems to help other big projects like QEMU, Node.js, Rust, and systemd - https://github.com/qemu/qemu/blob/master/AGENTS.md Currently people may be inadvertently not following our documented process for code s... There is plenty of reasons why this hasn't been accepted in multiple past PRs, see https://github.com/NixOS/nixpkgs/pull/544374

星标
0
复刻
0
未解决问题
0
语言
Unknown