pull-request-pane


A Claude Code plugin (a mod) that shows the GitHub pull requests
related to the current session in a pane beside the transcript.
- Drag over an entry's title or description to leave a comment on that span.
Add as many as you like, across either field, plus one comment on the
entry as a whole, then press Submit to send them all as one prompt.
- While the pane is open, each pull request's checks, review decision and
mergeability refresh on a timer.
Issues that a pull request closes, and issues the transcript mentions, appear
as entries too, with a line between a run of pull requests and a run of
issues so the two do not read as one list of the same kind of thing.
Requirements
- Claude Code 2.1.273 or later. Claude Code 2.1.287 and later load mods by default. On an older version, set
CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1.
- A terminal session, or the Code tab of Claude Code Desktop. Print mode (
-p) has no pane.
gh logged in to GitHub
Install
claude plugin marketplace add meganemura/pull-request-pane
claude plugin install pull-request-pane@pull-request-pane
Type /pull-request-pane to show or hide the pane.
To develop against a checkout instead, run the plugin straight from its working tree:
claude --plugin-dir /path/to/pull-request-pane/plugin
Claude Code Desktop
The pane also draws in the Code tab of Claude Code Desktop. A plugin installed at the user
scope with the commands above loads there too. /plugin does not run in the desktop app: to
install from the app, click + beside the prompt box, then Plugins, then Add marketplace with
meganemura/pull-request-pane, then Add plugin.
The desktop app takes no --plugin-dir. To develop against a checkout there, set these in the
env of ~/.claude/settings.json:
{
"env": {
"CLAUDE_CODE_PLUGIN_DIRS": "/path/to/pull-request-pane/plugin",
"CLAUDE_CODE_PLUGIN_DIR_WATCH": "1"
}
}
Refresh
A ↻ refreshed <time> button sits above the entries (↻ reading… before the first one lands).
Press it to refetch every entry's title, description and checks right now, instead of waiting
for the next automatic refresh or the 60-second poll — the poll's own schedule restarts from the
press. An entry with review activity in progress (see below) is protected from this, the same
way it is protected from the automatic refresh a turn or a gh command triggers.
Leave review comments
Each entry shows its identifier (#<n> PR <state> for a pull request, #<n> Issue <state> for
an issue) as a link to it on GitHub — hover it and it highlights — then a blank line, its
bold title, another blank line, its checks (a pull request only, its status word bold too),
another blank line, then its full description. Drag over the title or the description to open a
comment box for that span: the covered text highlights as you drag, and releasing opens a
comment field under the entry with the span quoted above it. Type a comment and press Enter to
add it — the field is dropped, and the comment appears in a list under the entry, with an x
button to remove it. Press Enter with an empty field to drop the span with no comment. Repeat as
many times as you like, over either field; an always-present overall field takes one comment
on the entry as a whole, the same way.
Press Submit to send every comment for that entry as one prompt: a header naming the entry, then
each comment with the text it was about quoted above it, the overall comment last. Submit
refuses — the status line says why — while a comment field still holds text Enter has not added,
or with nothing to send at all.
An entry's title and description stop refreshing while it has any review activity (a pending
selection, a committed comment, or unsent text in a comment field), so nothing a comment quotes
changes out from under it before you press Submit. Checks, review decision and mergeability keep
updating live on their own 60-second poll regardless — they have nothing to do with the text.
Checks, review and mergeability