@jdiamond/pi-git

Review-gated git/GitHub tools for pi. Every action that creates or publishes content shows a review UI before executing.

Packages

Package details

extension

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

$ pi install npm:@jdiamond/pi-git
Package
@jdiamond/pi-git
Version
0.2.0
Published
Jun 7, 2026
Downloads
245/mo · 245/wk
Author
jdiamond
License
MIT
Types
extension
Size
12.8 KB
Dependencies
0 dependencies · 2 peers
Pi manifest JSON
{
  "extensions": [
    "./src/index.ts"
  ]
}

Security note

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

README

pi-git

Review-gated git/GitHub tools for pi

Every action that publishes content shows a review overlay before executing: approve, edit, or cancel. No accidental commits or PRs.

Tools

Tool Description
git_commit Stage files and commit with a review step
git_create_pr Create a pull request with a review step

All tools use a git_ prefix to avoid conflicts.

Install

{
  "packages": ["npm:@jdiamond/pi-git"]
}

Usage

Commit

The agent stages files and commits in one call:

git_commit(message: "Fix: resolve race condition in pool shutdown", files: ["src/pool.ts"])

A review overlay shows the commit message and lets you **[a]**pprove, **[e]**dit, or **[c]**ancel before the commit executes.

Create PR

The agent creates a pull request with optional reviewers:

git_create_pr(
  title: "Fix connection pool shutdown",
  body: "The pool's close() could return before draining...",
  base: "main",
  draft: true,
  reviewers: ["copilot-pull-request-reviewer[bot]"]
)

Same review flow — approve, edit, or cancel before the PR is created.