Repeated PR comments as AGENTS.md rules
A reviewer keeps flagging the same things: 50 recent PRs scanned, issues ranked by count, your picks written into AGENTS.md.
1.6K saves on X, as of Posted
Prompt
Use gh to scan the 50 most recent PRs in each GitHub repo under [CODE DIRECTORY]. Find the issues [REVIEWER GITHUB USERNAME] keeps flagging. Rank them by frequency and link the relevant PRs. Wait for my approval, then add only the rules I choose to ~/.codex/AGENTS.md.Next Send it to Codex, then choose which rules to add.
Run this in Codex. Codex reads ~/.codex/AGENTS.md at the start of every run, so those rules no longer depend on the reviewer repeating them.
