Git utilities extension for pi-coding-agent.
Provides slash commands to automate and streamline git workflows within pi.
pi install @335g/pi-gitOr add to your project's package.json:
{
"dependencies": {
"@335g/pi-git": "^0.0.1"
}
}pi -e ./src/index.tspi install /path/to/pi-git| 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 |
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>]
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]
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]
Manages git branches: list, switch, create, and delete.
/git-branch [<branch>] [-c|--create] [-d|--delete] [--list] [--help]
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>]
Displays git log in oneline format with branch names and HEAD position.
/git-log [-n <count>] [--all] [--graph]
For detailed usage, options, keybindings, and behavior specifications, see:
- pi-coding-agent
- Git repository
- Active AI model with API key configured (for hunk analysis)
MIT