@e9n/pi-github

GitHub integration for pi — PR management, issue tracking, and review feedback commands

Package details

extensionprompt

Install @e9n/pi-github from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@e9n/pi-github
Package
@e9n/pi-github
Version
0.2.0
Published
Mar 7, 2026
Downloads
46/mo · 9/wk
Author
e9n
License
MIT
Types
extension, prompt
Size
67.5 KB
Dependencies
0 dependencies · 1 peer
Pi manifest JSON
{
  "extensions": [
    "./src/index.ts"
  ],
  "prompts": [
    "./prompts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

@e9n/pi-github

GitHub integration for pi via the gh CLI — PR management, issue tracking, CI status, and automated review resolution.

Features

  • List and manage PRs, issues, and notifications
  • Create and merge PRs from the current branch
  • Automated PR review fix flow: fetch unresolved threads → fix → resolve on GitHub
  • All commands available as both /gh-* and /github-* variants

Requirements

  • gh CLI installed and authenticated (gh auth login)
  • Git repository with a GitHub remote

Commands

Command Description
/gh-prs [mine|review-requested|all] List open pull requests
/gh-issues [mine|label:name|all] List open issues
/gh-status Repo status: open PRs, issues, CI, current branch PR
/gh-notifications [all] Show unread GitHub notifications
/gh-pr-create [title] Create a PR for the current branch (pushes first)
/gh-pr-review [pr-number] Show PR review feedback and decision
/gh-pr-fix [pr-number] Fetch unresolved review threads and send to agent for fixing; run again with thread numbers to push, resolve, and post summary
/gh-pr-merge [pr-number] Merge a PR, delete remote branch, pull base, clean up local branch
/gh-actions [branch] List recent workflow runs

PR fix workflow

  1. /gh-pr-fix [pr-number] — fetches unresolved review threads, checks out the PR branch, and sends a structured prompt to the agent
  2. Agent reads the feedback, fixes the code, and commits
  3. /gh-pr-fix 1 2 3 (with thread numbers) — pushes, resolves the listed threads on GitHub via GraphQL, and posts a summary comment

Install

pi install npm:@e9n/pi-github

License

MIT