| name | addressing-pr-reviews |
| description | Responds to PR review comments. Use when addressing reviewer feedback, replying to diff comments, or checking for unaddressed reviews. |
Addressing PR Reviews
Reply to PR review comments from human reviewers or automated bots.
Check for Review Comments
gh api repos/{owner}/{repo}/pulls/{pr}/comments \
--paginate \
--jq '.[] | {id, user: .user.login, path, line, body: .body[0:100]}'
gh api repos/{owner}/{repo}/pulls/comments/{comment_id} --jq '.body'
gh api repos/{owner}/{repo}/pulls/{pr}/reviews \
--paginate \
--jq '.[] | select(.body != "") | {id, user: .user.login, state, body: .body[0:200]}'
gh api repos/{owner}/{repo}/pulls/{pr}/reviews/{review_id} --jq '.body'
Reply to Diff Comments
Always reply inline to the specific comment.
For all reviewers (human or bot), use a normal inline reply without @codex:
gh api repos/{owner}/{repo}/pulls/{pr}/comments \
-f body="Fixed in {commit}: {explanation}" \
-F in_reply_to={comment_id}
Use @codex only when you explicitly want to trigger a Codex action.
Reply to Top-Level Reviews
For top-level review comments (not on specific lines), use a normal PR comment:
gh pr comment {pr} --body "Fixed in {commit}: {explanation}"
Add Reactions
Acknowledge valid feedback with a thumbs up:
gh api repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions \
-f content="+1"
For inaccurate Codex feedback, use thumbs down:
gh api repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions \
-f content="-1"
Request Re-review
For human reviewers:
gh pr edit {pr} --add-reviewer {username}
For Codex, trigger exactly one explicit review request after batching fixes:
gh pr comment {pr} --body "@codex review"
Note: reviewer account names can vary by setup; do not hard-code a single bot username.
Known Failure Mode (Codex Task-Mode Noise)
Codex GitHub behaviour is:
@codex review requests a review run.
@codex with anything else starts a Codex cloud task.
Do not post routine fix replies like:
@codex Fixed in {commit}: {explanation}
That can create noisy task-output comments (for example, "Summary", "committed on branch", "opened follow-up PR") that do not reflect actual repo state.
Use this instead for routine updates:
Fixed in {commit}: {explanation}
Then, after batching fixes, post exactly one:
@codex review
Workflow
- Check comments: List unaddressed review comments
- Fix each issue: Make code changes
- Commit & push: Include the fix
- Reply inline: Reference the commit hash in your reply
- React: Add 👍 to acknowledge the feedback
- Request re-review: Add reviewer back or post a single
@codex review
- Avoid task-mode noise: Never use
@codex in routine "fixed" replies
Important: Don't amend commits after replying - the referenced commit hash becomes invalid.