$ cat ~/map/pi-extensions-zhenhuanglab.md
pi-extensions (ZhenHuangLab)
Seven npm-published pi extensions in one workspace: context recall, per-model prompts, X search, LaTeX math, tool-call folding.
extensions✓ Oct 16
Facts
- repository
- github.com/ZhenHuangLab/pi-extensions ↗
- GitHub Stars
- ★ 0
- Forks
- 0
- license
- MIT
- npm / mo
- —
- last push
- Oct 15, 2026
install
Each package installs separately: pi install npm:pi-pleat, pi install npm:strip-pi-docs, pi install npm:prompt-per-model, pi install npm:pi-better-explore, pi install npm:@zhenhuang/pi-xai-search, pi install npm:pi-better-math, pi install npm:pi-tool-fold## TL;DR
A single npm workspace publishing seven pi extensions: pi-pleat for context and tool-output recall, strip-pi-docs, prompt-per-model, pi-better-explore, pi-xai-search, pi-better-math for Unicode math rendering, and pi-tool-fold for folding completed tool calls.
## Key points
- $Context and prompts: pi-pleat manages context and recalls old tool output; strip-pi-docs removes Pi's documentation pointer from the system prompt; prompt-per-model adds Markdown system prompts for each model.
- $Search and exploration: pi-better-explore routes code searches through sift-light and enforces tool limits; @zhenhuang/pi-xai-search searches X with xAI's native search tool.
- $Transcript and terminal: pi-better-math renders LaTeX math as Unicode in Pi's terminal UI; pi-tool-fold folds completed tool calls in the transcript.
- $Independent packages: each keeps its own npm name, version, and release cycle; the seven repositories were imported as non-squashed Git subtrees preserving each original main branch's history, and the originals retain their historical releases.
- $Development: Node.js 22.19.0 or later and npm 11.5.1 or later, a single root lockfile, npm run check per workspace, and PI_CONTEXT_LIVE=0 npm test as the local and CI mode; releases run through Changesets with npm Trusted Publishing.
## FAQ
Q Is there one package that installs all seven?
No — the README lists a separate pi install npm:<package> command per package; the private workspace root exists for development and release tooling.
Q What does PI_CONTEXT_LIVE do in the test commands?
Keep PI_CONTEXT_LIVE=0 for local and CI tests; the README states live provider tests require explicit permission and can incur charges.
Q Were the original repositories preserved in the move?
Yes — the seven repositories were imported using non-squashed Git subtrees preserving each original main branch's complete history; historical tags sit under namespaced refs, are never republished, and new releases begin at patch-bumped versions.
## References
## Related entries
$ pi-extensions (milanglacier)
Eight independently installable pi extensions in one monorepo: plan mode, dynamic subagent workflows, background tasks, per-session model switching.
$ pi-extensions (narumiruna)
TypeScript monorepo of pi coding agent extensions for planning, browser control, Git workflows, and observability.
$ pi-extensions (nicknisi)
Nick Nisi's pnpm monorepo of independently installable pi coding agent packages.
## Guides
Last updated: Oct 16, 2026