@spences10/pi-git-ui

Focused in-Pi Git staging, diff review, and commit modal for agent-assisted coding workflows

Packages

Package details

extension

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

$ pi install npm:@spences10/pi-git-ui
Package
@spences10/pi-git-ui
Version
0.0.12
Published
May 23, 2026
Downloads
1,995/mo · 88/wk
Author
spences10
License
MIT
Types
extension
Size
134.5 KB
Dependencies
1 dependency · 2 peers
Pi manifest JSON
{
  "extensions": [
    "./dist/index.js"
  ],
  "image": "https://raw.githubusercontent.com/spences10/my-pi/main/assets/pi-package-preview.png"
}

Security note

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

README

@spences10/pi-git-ui

built with Vite+ tested with Vitest npm version license

my-pi package preview

Review and commit changes from inside Pi without context-switching to a separate Git client. pi-git-ui provides a focused staging, diff review, and commit modal designed for agent-assisted coding workflows.

Usage

pi install npm:@spences10/pi-git-ui

Then run:

/git-ui

Controls:

  • / or j/k — move file selection
  • / — filter files by path, state, or status code
  • enter — open contextual actions for the selected file
  • ? — show grouped keyboard help
  • / or h/l — scroll the diff preview
  • n/p — move between diff hunks
  • [/] — move between changed lines
  • space — safely stage/unstage selected file; disabled for partial/conflicted files
  • s — stage selected file explicitly
  • x — unstage selected file explicitly
  • S — stage selected hunk
  • X — unstage selected hunk
  • + — stage selected changed line
  • - — unstage selected changed line
  • c — commit staged changes with a Conventional Commit helper or raw message
  • m — amend the last commit with staged changes
  • g — show repository overview with branches, recent commits, stashes, and remotes
  • a — safely stage all; blocked if partial/conflicted files exist
  • A — force stage all
  • u — unstage all
  • actions menu → discard file — confirm and discard unstaged file changes
  • r — refresh
  • esc/q — close

Development

Package scripts build transitive workspace dependencies first, then run local tools through Vite+ with vp exec.

pnpm --filter @spences10/pi-git-ui run check
pnpm --filter @spences10/pi-git-ui run test
pnpm --filter @spences10/pi-git-ui run build