@joyanhui/pi-ext-float-term
Pi coding agent extension — floating terminal overlay (fish, lazygit, yazi) powered by node-pty
Package details
Install @joyanhui/pi-ext-float-term from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@joyanhui/pi-ext-float-term- Package
@joyanhui/pi-ext-float-term- Version
1.0.7- Published
- Oct 16, 2026
- Downloads
- 362/mo · 47/wk
- Author
- joyanhui
- License
- MIT
- Types
- extension
- Size
- 33 KB
- Dependencies
- 0 dependencies · 2 peers
Pi manifest JSON
{
"extensions": [
"./float-term.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
@joyanhui/pi-ext-float-term
A pi extension providing floating terminal overlays powered by node-pty. Similar to Neovim's <leader>ft floating terminal.
Features
- Floating system shell —
Ctrl+Alt+Sopens the system default shell in an overlay- Windows:
FLOAT_TERM_SHELL, thenComSpec/COMSPEC, finallycmd.exe - Unix:
FLOAT_TERM_SHELL, thenSHELL, finally/bin/sh
- Windows:
- Floating lazygit —
Ctrl+Alt+Gopens lazygit in a floating terminal - Floating yazi —
Ctrl+Alt+Yopens the yazi file manager - Exit gracefully —
exit/Ctrl+Dquits the shell and auto-closes;Ctrl+Spaceforce-closes
Installation
pi install npm:@joyanhui/pi-ext-float-term
Or for a single session:
pi -e npm:@joyanhui/pi-ext-float-term
Requirements
- pi coding agent (v0.x+)
node-ptyis an optional native dependency; Linux requirespython3,make, andg++.- Install it with
npm install -g --allow-scripts=node-pty node-gyp node-pty. - With pnpm, run
pnpm approve-builds, approvenode-pty, then runpnpm rebuild node-pty. - If needed, set
FLOAT_TERM_NODE_PTYto its package directory and restart pi:
export FLOAT_TERM_NODE_PTY="$(npm root -g)/node-pty"
Commands
| Command | Description |
|---|---|
/float-fish |
Open floating fish terminal |
/float-lazygit |
Open floating lazygit |
/float-yazi |
Open floating yazi file manager |
Shortcuts
| Shortcut | Action |
|---|---|
Ctrl+Alt+S |
Floating system default shell |
Ctrl+Alt+G |
Floating lazygit |
Ctrl+Alt+Y |
Floating yazi |
Documentation
For more information, visit dev.leiyanhui.com/ai/pi-float-term.
For source code, visit github.com/joyanhui/pi-extension.
License
MIT