Address PR Comments Across a Graphite Stack
Walk an entire Graphite stack bottom-to-top, addressing PR review comments on each branch autonomously.
Context
We are working in a Graphite stack. Changes that appear "reverted" in a given branch are not actually reverted — they are isolated in upstack PRs. Do not treat upstack diffs as regressions or missing code. Each branch only contains the changes relevant to its own PR.
Workflow
- Navigate to the bottom of the stack:
gt bottom
On the current branch, read each PR comment via
ghand address it. Do not prompt the user for approval — evaluate each comment and take the action you believe is best.After addressing all comments on the current branch, absorb changes and move up. Only amend if files were actually modified — skip
gt m -awhen no changes were made to avoid unnecessary hash rewrites and CI churn:
# If changes were made:
gt m -a && gt up
# If no changes were made:
gt up
Repeat steps 2–3 until
gt upreports that you are already at the top of the stack (no more upstack branches).When done with all branches, submit the full stack:
gt ss
Addressing comments on a single branch
For each branch:
- Read the full diff of the current branch's PR.
- Fetch unresolved comments using
gh. - If there are no unresolved comments, skip to the next branch.
- For each comment, read the referenced code and evaluate:
- Is this problem already handled elsewhere (possibly in an upstack PR)?
- Is this comment overkill for this context?
- Is it a valid concern that needs fixing?
- Take action autonomously for each comment — do ONE of:
- Valid concern: make the fix, then resolve the thread.
- Already handled upstack: reply explaining which upstack PR handles it, then resolve.
- Not valid / non-blocking: resolve.
Response style
Keep replies short and direct. No fluff.