$ cat ~/map/pi-nushell.md
pi-nushell
Nushell tool extension for pi: shell commands with streamed output, cancellation, and timeouts.
extensions✓ Sep 10
Facts
- repository
- github.com/grfwings/pi-nushell ↗
- GitHub Stars
- ★ 1
- Forks
- 1
- license
- Unlicense
- npm / mo
- —
- last push
- Oct 4, 2026
install
pi install npm:pi-nushell## TL;DR
A pi extension that adds a nu tool for executing nushell commands, mirroring the built-in bash tool: session working directory, streamed combined output, cancellation, optional timeouts, and nonzero exits reported as tool errors.
## Key points
- $Runs nushell's command-string mode from the current session working directory — configuration files like config.nu are never loaded.
- $Streams combined stdout and stderr, and supports cancellation plus optional per-call timeouts measured in seconds (no default timeout).
- $Reports nonzero exit codes as tool errors; output is capped at the last 2,000 lines or 50 KB, with the complete output saved to a temporary file when truncation happens.
- $Exposes PI_SESSION_ID, PI_SESSION_FILE, PI_PROVIDER, PI_MODEL, and PI_REASONING_LEVEL to the command, matching the built-in bash tool's conventions.
- $Tool input takes a required nushell-syntax command plus an optional timeout in seconds; for development, load the extension directly with pi -e ./index.ts.
## FAQ
Q Does the nu tool load my nushell configuration?
No — it uses nushell's command-string mode, so configuration files like config.nu are not loaded.
Q What does pi-nushell require?
A nushell installation; the extension wraps nushell commands and follows the same tool behavior as pi's built-in bash tool.
## References
## Related entries
$ big-pi
Model-driven compression that summarizes completed phases into tiered blocks while Pi's JSONL transcript stays authoritative and untouched.
$ dsh-pi-agent
DeepSeek Harness (DSH) AgentFactory that swaps DSH's native agent loop for a headless pi --mode rpc child, so DSH's web UI, sessions, hooks, and presets keep working with pi's minimal prompt and four tools.
$ Pi Taste
Local preference-learning extension that distills accepted and rejected turns into one readable taste.md.
## Guides
Last updated: Sep 10, 2026