@sreetej510/pi-prompt-manager
Pi extension to quickly save, manage, and paste reusable prompts without retyping.
Package details
Install @sreetej510/pi-prompt-manager from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@sreetej510/pi-prompt-manager- Package
@sreetej510/pi-prompt-manager- Version
0.1.16- Published
- Jul 16, 2026
- Downloads
- 484/mo · 484/wk
- Author
- sreetej510
- License
- MIT
- Types
- extension
- Size
- 8.4 KB
- Dependencies
- 0 dependencies · 0 peers
Pi manifest JSON
{
"extensions": [
"./dist/index.js"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
@sreetej510/pi-prompt-manager
A pi coding agent extension to quickly save, manage, and paste reusable prompts without retyping them.
Commands
| Command | Effect |
|---|---|
/prompt |
Open the prompt manager (select · edit · delete · add) |
/prompt add [name] |
Create a new saved prompt directly (opens a multi-line editor) |
Keyboard shortcuts (inside /prompt)
| Key | Action |
|---|---|
↑ / ↓ / j / k |
Navigate the list |
Enter |
Paste the selected prompt into the editor |
e |
Edit the selected prompt |
d |
Delete the selected prompt (with confirmation) |
a |
Add a new prompt |
Esc |
Close without action |
Storage
Saved prompts are stored as JSON at <pi-agent-dir>/prompt-manager.json:
{
"prompts": [
{ "id": "...", "name": "...", "content": "...", "createdAt": 0, "updatedAt": 0 }
]
}
Install
npm install -g @sreetej510/pi-prompt-manager
Then add it to your pi settings.json:
{
"packages": ["npm:@sreetej510/pi-prompt-manager"]
}
Or, for local development, point at the file directly:
{
"extensions": ["/absolute/path/to/pi-extensions/extensions/pi-prompt-manager/src/index.ts"]
}
File layout
| File | Responsibility |
|---|---|
src/index.ts |
Extension entry point |
src/command.ts |
/prompt command handler + add/edit/delete flow |
src/component.ts |
List-manager TUI component |
src/storage.ts |
prompt-manager.json load/save helpers |
src/types.ts |
Shared TypeScript types |
Development
npm install
npm run --workspace @sreetej510/pi-prompt-manager check # biome + typecheck
npm run --workspace @sreetej510/pi-prompt-manager format