Skip to content

Add instructions for LLM agents - #160475

Closed
Zoxc wants to merge 1 commit into
rust-lang:mainfrom
Zoxc:agents-md
Closed

Add instructions for LLM agents#160475
Zoxc wants to merge 1 commit into
rust-lang:mainfrom
Zoxc:agents-md

Conversation

@Zoxc

@Zoxc Zoxc commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

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 cargo directly, as this repo looks like a cargo project and you need to dig into documentation to find out otherwise.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 4, 2026
@rustbot

rustbot commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

r? @Mark-Simulacrum

rustbot has assigned @Mark-Simulacrum.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Fallback group: @Mark-Simulacrum, @jieyouxu
  • @Mark-Simulacrum, @jieyouxu expanded to Mark-Simulacrum, jieyouxu

@rust-log-analyzer

This comment has been minimized.

@rustbot rustbot added the A-meta Area: Issues & PRs about the rust-lang/rust repository itself label Aug 4, 2026
@jyn514

jyn514 commented Aug 4, 2026

Copy link
Copy Markdown
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.

@Zoxc Zoxc closed this Aug 4, 2026
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-meta Area: Issues & PRs about the rust-lang/rust repository itself

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants