Skip to content

335g/pi-git

Repository files navigation

pi-git

Git utilities extension for pi-coding-agent.

Provides slash commands to automate and streamline git workflows within pi.


Installation

From npm (recommended)

pi install @335g/pi-git

Or add to your project's package.json:

{
  "dependencies": {
    "@335g/pi-git": "^0.0.1"
  }
}

As a local extension (development)

pi -e ./src/index.ts

From local package (development)

pi install /path/to/pi-git

Commands

Command Description
/git-agg-commit Auto stage and commit changes with AI-generated Conventional Commits messages
/git-auto-agg-commit Toggle automatic git-agg-commit after assistant responses
/git-config Get, set, or list pi-git configuration values
/git-branch Manage git branches: list, switch, create, and delete
/git-diff Interactively review AI-generated hunks and commit approved ones
/git-log Display git log in oneline format

/git-agg-commit

Automatically analyzes the working tree diff, splits changes into logical hunks, generates Conventional Commits style messages, stages files, and creates commits — all in one shot.

/git-agg-commit [--lang=<code>]

/git-auto-agg-commit

Toggles automatic git-agg-commit after assistant responses. When enabled, uncommitted changes are automatically committed when the assistant finishes responding.

/git-auto-agg-commit [on|off|toggle]

/git-config

Gets, sets, or lists pi-git configuration values. Supports global (~/.config/pi-git/settings.json) and local (<repo-root>/.pi-git/settings.json) scopes.

/git-config <key> [value] [--global] [--list] [--show-origin]

/git-branch

Manages git branches: list, switch, create, and delete.

/git-branch [<branch>] [-c|--create] [-d|--delete] [--list] [--help]

/git-diff

Interactive diff review with AI-assisted hunk decomposition. Displays a file tree and unified diff side-by-side, letting you review, adjust, and commit changes one logical hunk at a time.

/git-diff [--lang=<code>]

/git-log

Displays git log in oneline format with branch names and HEAD position.

/git-log [-n <count>] [--all] [--graph]

Documentation

For detailed usage, options, keybindings, and behavior specifications, see:


Requirements

  • pi-coding-agent
  • Git repository
  • Active AI model with API key configured (for hunk analysis)

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors