feat(agent): remind the agent about unread AGENTS.md files - #50
Conversation
The instruction hierarchy loads once and only along the project-root to cwd chain, so a tool that reaches into a sibling directory operates there without ever seeing that directory's AGENTS.md. Hook onDidExecuteTool: when a tool touches a directory whose agent file was not injected, append a reminder naming it to that tool's result. Files are claimed before the reminder is attached, so two tools touching the same new directory in one step produce one reminder; failed results are skipped so a vetoed duplicate cannot swallow it. Off by default.
|
Warning Review limit reached
Next review available in: 17 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (6)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Related Issue
No linked issue.
Problem
The instruction hierarchy is loaded once, and only along the project-root to cwd chain. A tool that reaches into a sibling directory therefore works there without ever seeing that directory's
AGENTS.md— the rules exist and are silently ignored.What changed
Hook
onDidExecuteTool: when a tool touches a directory whose agent file was not part of the injected instructions, append a reminder naming it to that tool's result.Off by default — it adds a filesystem probe per newly touched directory. Enable under Feature controls or
ECHADRON_EXPERIMENTAL_AGENTS_MD_REMINDER=1.Testing
Seven cases: suggests an uncovered file, never suggests an injected one, suggests once per file, ignores but claims blank files, silent when the control is off, leaves failed results alone and keeps the file eligible, and per-tool argument extraction. Full suite 16,970 pass; lint and typecheck clean.
Checklist
pnpm changeset, or this PR needs no changeset.