pi-slim
Slim Pi's default system prompt by making Pi documentation guidance opt-in via /pi.
Package details
Install pi-slim from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-slim- Package
pi-slim- Version
0.2.0- Published
- May 17, 2026
- Downloads
- not available
- Author
- robzolkos
- License
- MIT
- Types
- extension
- Size
- 4.7 KB
- Dependencies
- 0 dependencies · 1 peer
Pi manifest JSON
{
"extensions": [
"./extensions"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-slim
A small Pi package that trims Pi's default system prompt by making the built-in Pi documentation guidance opt-in.
By default, Pi includes a documentation block telling the agent where to read Pi docs when asked about Pi itself, extensions, skills, themes, the SDK, TUI, packages, and related topics. pi-slim removes that block from normal turns and restores the original block only when you explicitly use /pi.
Features
- Removes the default
Pi documentation ...system-prompt block on normal turns. - Adds a
/picommand for one-off Pi documentation mode. /pipreserves Pi's original built-in documentation guidance for that turn instead of approximating it in a skill.- Keeps the rest of Pi's default prompt intact: tools, guidelines, context files, skills, date, and current working directory.
Install
pi install npm:pi-slim
For local development from this repository:
pi install ./
Or run temporarily without installing:
pi -e ./
Usage
Normal prompts use the slimmed system prompt.
For Pi-specific work, explicitly invoke Pi docs mode:
/pi how do I build a Pi extension command?
The text after /pi is sent as your request, and the original Pi documentation system-prompt block is preserved for that turn.
Package contents
extensions/remove-pi-docs.ts
Notes
- This package no longer uses a skill.
/piis an extension command. - The command does not recreate or duplicate Pi docs guidance. It simply skips removal for the next turn, preserving Pi's original prompt block exactly as Pi generated it.
- This package does not modify Pi internals; it only rewrites the per-turn system prompt through Pi's extension API.
License
MIT