github

Reviewed at commit ebe6d12 New version, not yet reviewed

Caution: Saves Copilot review sessions, which hold your diffs and changed files, in ~/.cache/claude/copilot-home, and its agentic mode runs the Copilot CLI with all tools allowed.

Sends data to GitHub (api.github.com, uploads.github.com) through your gh login, GitHub Copilot (api.individual.githubcopilot.com) when you run the copilot skill

GitHub workflow, Actions monitoring, and rulesets management

Made by
Ben Drucker
What we checked

Shows the current branch's pull request state in the prompt footer and a /pr pane by polling GitHub through your gh login, and sends Claude a message on its own when the PR merges, conflicts, fails a check or gets reviews or comments. Its skills watch Actions runs, reply to review threads, upload attachments, manage stacked PRs and send diffs to GitHub Copilot. It logs hook timings under ~/.claude/hook-metrics.

Review details

Static review of the source at the pinned commit; not run. Full re-review (the change since acc7117 is about 4,200 added lines). Read in full: plugin.json, package.json, hooks.json, mod/register.ts, mod/pr.ts, mod/pane.tsx, scripts/dispatch-then-list.ts, scripts/runner-queue.ts, scripts/hook-metrics.ts, scripts/gh-invocations.ts, scripts/reviewers.ts, the pr-comments.ts diff, the review.ts diff (cosmetic) and the skill and agent Markdown with their frontmatter; watch.ts, review-threads.ts and review.ts are unchanged since the last review and were checked by targeted search; test files were not reviewed. The function-hook module registers session.start, session.end, turn.start, turn.complete, ui.render (PromptHint footer and the Pane), ui.press and command.run for a /pr command it registers with $.command.register. In interactive sessions with gh on PATH (option watch, default on) a $.clock.every ticker polls with $.process.run using argv arrays, no shell: git rev-parse, git symbolic-ref, gh pr view --json, gh api user, a read-only gh api graphql query and conditional gh api -i probes of the pull, reviews, check-runs and status endpoints with ETags; it backs off to two hours while nothing changes and skips default branches, detached heads and non-GitHub remotes. It keeps a per-PR backoff counter with $.state.set, logs decisions, muted bot comments and errors through the declared mod-events dependency ($.modEvents.emit; no comment bodies), and on a merge, close, new conflict or required update, foreign push, newly failed check, dropped auto-merge or merge queue, or new reviews and comments from others calls $.prompt.submit with a fixed message (PR number and URL, short SHA, base branch, check names stripped of control characters and cut to 80 characters, reviewer logins and counts, and suggested gh and git:conflicts steps), which starts a Claude turn without the user typing and uses tokens; on a PR someone else opened only merge, close and foreign push are sent. The /pr pane shows the PR title as a link, checks, review and merge state, with refresh and muted-comment buttons. The old WebFetch-blocking hook is gone. Two shell hooks run with bun on Bash commands matching gh workflow run: PreToolUse dispatch-then-list denies a command that both dispatches a workflow and lists runs, and PostToolUse runner-queue reads the command output for the run URL, makes read-only gh api calls about the run, its jobs and other active runs, and adds the queue position for self-hosted runners as context. Both append timing records (time, session id, hook event, tool name, duration, outcome, stage; no command text) to ~/.claude/hook-metrics/github-*.jsonl, which CLAUDE_HOOK_METRICS=0 turns off. Skills carry over: actions-monitor runs watch.ts under Monitor and a logs agent that saves failing logs to $TMPDIR/<session>/github; pr-comments (now takes a PR number or the current branch, and the reviewers option instead of a reviewers.txt file) and review-threads read threads and post replies, reactions and resolves; attach uploads images or video to GitHub (irreversible, documented); stack drives gh stack (push with force-with-lease, merge --yes). The rulesets-manager agent was removed. Skills pre-approve gh, bun on the plugin's own scripts and jq, but no unpinned packages. The copilot skill is unchanged in behaviour: it sends the diff plus full changed and untracked files to the Copilot CLI with HOME at ~/.cache/claude/copilot-home, which keeps session history, and --agentic runs copilot with --allow-all-tools minus a deny list in a worktree under <repo>/tmp. watch.ts still interpolates the PR head branch name into an execSync shell command, so watching a fork PR with shell metacharacters in its branch name could run a command (likely a bug, unchanged). Not reviewed: the gh, gh stack and copilot CLIs, the git and mod-events plugins, and npm dependencies (cleye, table, url-pattern, zod, which the runner-queue hook needs installed).

What it uses
  • Reads your prompts: no
  • Sees tool calls: yes
  • Blocks or changes tool calls: yes
  • Reads or writes files: yes
  • Runs programs on your machine: yes
  • Calls the model (uses tokens): yes
  • Sends data over the network: yes
  • Stores data: yes
  • Shows something on screen: yes
Hooked events
Made this mod? Add a badge to your README

modsforClaude badge for github

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/github.svg)](https://modsforclaude.com/mods/github/)

← All mods