pi-non-interactive
Prevent agent hangs on interactive commands — sets GIT_EDITOR=true, PAGER=cat, etc. for all bash executions
Package details
Install pi-non-interactive from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-non-interactive- Package
pi-non-interactive- Version
0.1.0- Published
- Feb 24, 2026
- Downloads
- 30/mo · 7/wk
- Author
- emiller88
- License
- MIT
- Types
- extension
- Size
- 3.4 KB
- Dependencies
- 0 dependencies · 1 peer
Pi manifest JSON
{
"extensions": [
"./index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-non-interactive
Prevent agent hangs on interactive commands. Overrides the bash tool to inject env vars that make git and other tools non-interactive.
Install
pi install npm:pi-non-interactive
What it does
Replaces the default bash tool with one that injects these env vars into every command:
| Variable | Value | Effect |
|---|---|---|
GIT_EDITOR |
true |
git rebase --continue, git commit (no -m) succeed without editor |
GIT_SEQUENCE_EDITOR |
true |
git rebase -i sequence editing |
GIT_PAGER |
cat |
git log, git diff, git show don't hang on pager |
PAGER |
cat |
Any tool respecting $PAGER |
LESS |
-FX |
less exits immediately if output fits one screen |
BAT_PAGER |
cat |
bat syntax highlighter non-interactive |
Why
AI agents can't interact with editors or pagers. Without this, commands like git rebase --continue or git log hang forever waiting for user input.