Skip to content

AGENTS.md: watch your pull requests and fix reviews as they land - #211

Merged
fleon merged 2 commits into
mainfrom
agents/watch-pr-reviews
Nov 23, 2026
Merged

fleon merged 2 commits into
mainfrom
agents/watch-pr-reviews

Conversation

@fleon

@fleon fleon commented Nov 23, 2026

Copy link
Copy Markdown
Owner

The person asked that every session watch the pull requests it opens and fix review feedback without being asked. Until now the rules only covered this in the desktop app, through Auto-fix.

The new rule under Pull requests says to watch each pull request until it's merged or closed. That includes a runtime pull request a game's pull request waits on. Each new review, review comment, pull request comment and failed check gets a fix in that pull request with a reply naming the commit, or a reply saying why it stays as it is. A ready pull request goes back to draft while a fix is under way. Where Auto-fix isn't on, the session keeps a watch running that polls with gh about once a minute and re-arms it when it expires.

Documentation only.

Comment thread AGENTS.md Outdated
what lands without being asked: each new review, review comment, pull
request comment (Claude's review or the person's) and failed check. Fix it
in that pull request and reply to the comment naming the commit, or reply
why it stays as it is; a ready pull request goes back to draft while a fix

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sending a ready pull request back to draft for each fix and then marking it ready again fires ready_for_review, and .github/workflows/claude-review.yml runs both review jobs on that event (types: [opened, ready_for_review, reopened]). So every fix round starts a new full Claude review. That review can post new comments, which this rule says to fix the same way (draft, fix, ready, another review). Nothing here ends that loop, so a session could cycle through reviews (each one billed) until the person steps in. Either keep the pull request ready while you fix review comments (the draft rule at line 343 already covers work that isn't done), or say that a re-review after a fix round doesn't start the rule over.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 96dca4b. A ready pull request now stays ready while review fixes land, so a fix round doesn't start another full review. The draft rule still covers work that isn't done.

Comment thread AGENTS.md
Comment on lines +360 to +362
- Watch every pull request you open until it's merged or closed, and fix
what lands without being asked: each new review, review comment, pull
request comment (Claude's review or the person's) and failed check. Fix it

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This contradicts the rule at line 37: "When the person asks a question, answer it and change nothing … offer the change and wait for a yes." Here every comment from the person on a pull request gets fixed "without being asked", and the rule doesn't carve out questions. Take a comment like "why does this clamp at 0?". Under line 37 the session answers it and changes nothing. Under this rule the session pushes a fix. A session reading both can't tell which one wins. Add an exception here, e.g. "a question from the person gets an answer, not a change (see Working conventions)".

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 96dca4b: "A question from the person gets an answer, not a change (see Working conventions)."

@claude

claude Bot commented Nov 23, 2026

Copy link
Copy Markdown

Claude review (house rules)
Reviewed 1 file (AGENTS.md), checked against .github/workflows/claude-review.yml. Rules files read: AGENTS.md, CONTRIBUTING.md.
Left 2 inline comments.

@fleon
fleon merged commit 8862632 into main Nov 23, 2026
11 checks passed
@fleon
fleon deleted the agents/watch-pr-reviews branch November 23, 2026 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant