Prompt agents to read project instruction files during reviews#636
Prompt agents to read project instruction files during reviews#636shoyer wants to merge 2 commits intoroborev-dev:mainfrom
Conversation
Agents running in print mode often skip reading project instruction files because they focus on the provided prompt rather than exploring the filesystem. Add an explicit instruction to noSkillsInstruction telling agents to read CLAUDE.md and AGENTS.md from the repo root and from directories containing changed files before reviewing. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
roborev: Combined Review (
|
|
Aside from the spurious security concerns, does this actually improve behavior conformance? I would think that |
|
I think the problem is that reviewer agents will see diffs, but not necessarily read CLAUDE.md files that cover the files in those diffs. I haven't tested this new prompt enough yet to know if it works. But certainly I've found it really annoying to be working on a project where my CLAUDE.md says "this is experimental code, don't worry about backwards compatibility" and every roborev review says "add backwards compat!" |
Summary
noSkillsInstruction) telling agents to read project instruction files (e.g., CLAUDE.md, AGENTS.md) from the repo root and from directories containing changed files before reviewing.-p), agents focus on responding to the provided prompt and don't proactively explore the filesystem for instruction files the way they would in an interactive session. This is the simplest fix I could think of — just tell them to look. Open to other approaches if there's a better way.🤖 Generated with Claude Code