Add instructions for LLM agents - #160475
Closed
Zoxc wants to merge 1 commit into
Closed
Conversation
Collaborator
|
rustbot has assigned @Mark-Simulacrum. Use Why was this reviewer chosen?The reviewer was selected based on:
|
This comment has been minimized.
This comment has been minimized.
Member
|
@Zoxc I do not think we should merge this PR. I have been carefully coordinating the communication strategy for the new policy; this is a sensitive topic and this PR is going to affect how people perceive it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds instructions for LLM agents to help comply with the upcoming rust-lang/rust-forge#1040.
These instructions are intentionally not written with explanations or justifications for humans as that could end up confusing LLMs. They are also written to be minimal again to avoid confusing LLMs.
Unfortunately Claude Code ignores the standard AGENTS.md so CLAUDE.md is added to include it. I tested that Claude Code does mark such comments with
[LLM-generated]with these changes.Agents are asked to mark non-trivial documentation / comments with
[LLM-generated]as these are explicitly not allowed by the policy, to help avoid accidentally leaving these in PRs.It also instructs them to avoid the trap of using
cargodirectly, as this repo looks like a cargo project and you need to dig into documentation to find out otherwise.