@joelazar/lazygit
Open lazygit from inside pi with /lazygit or ctrl+shift+g
Package details
Install @joelazar/lazygit from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@joelazar/lazygit- Package
@joelazar/lazygit- Version
1.0.2- Published
- Aug 25, 2026
- Downloads
- 437/mo · 10/wk
- Author
- joelazar
- License
- MIT
- Types
- extension
- Size
- 4.9 KB
- Dependencies
- 0 dependencies · 2 peers
Pi manifest JSON
{
"extensions": [
"./index.ts"
],
"image": "https://raw.githubusercontent.com/joelazar/pi-lazygit/main/assets/demo.gif"
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-lazygit
Open lazygit from inside pi without leaving your session.

Running /lazygit suspends pi's TUI, clears the screen, and gives lazygit the whole terminal. When you quit lazygit, pi comes back exactly where you left it. Handy when pi has staged a pile of changes and you want to stage, split, or discard hunks yourself before telling it to continue.
Install
pi install npm:@joelazar/lazygit
Usage
| Trigger | What it does |
|---|---|
/lazygit |
Opens lazygit in cwd |
ctrl+shift+g |
Same, without typing |
lazygit runs in pi's current working directory, so it picks up whichever repo the session is pointed at.
The command only works in interactive TUI mode. In print, json, or rpc mode it reports an error instead of hanging on a terminal that isn't there.
Rebinding the shortcut
ctrl+shift+g is registered by the extension, and you can remap it in ~/.pi/agent/keybindings.json like any other pi shortcut.
License
MIT