@agimon-ai/po-prompt
Staged recent prompts and saved prompt templates for Po
Package details
Install @agimon-ai/po-prompt from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@agimon-ai/po-prompt- Package
@agimon-ai/po-prompt- Version
0.0.0-alpha.183- Published
- Nov 22, 2026
- Downloads
- 31.2K/mo · 5,031/wk
- Author
- agiflow-ai
- License
- BUSL-1.1
- Types
- extension
- Size
- 276.4 KB
- Dependencies
- 6 dependencies · 1 peer
Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
@agimon-ai/po-prompt
Saved prompt templates and staged recent prompts for Po.
Select @agimon-ai/po-prompt in .po/presets.yaml. It requires Node.js 24 or newer; optional Pi peer compatibility is declared in package.json.
Use
The cockpit's Prompt template composer action opens saved prompts. Choosing one sends it to the focused session. The picker also creates, edits, and removes templates, with confirmation before replacement or removal. A user message's save as prompt action opens the editor with that message's text.
Saved templates live under the host-admitted agent directory's prompts folder. They are not conversation history. Recent staged prompts remain in the session's memory and are not exposed by the saved-template API.
API and storage
The routed API declares the prompts mount. Use the generated API client to select host, workspace, or session scope instead of constructing URLs by hand. These paths are relative to that mount:
| Method | Path | Purpose |
|---|---|---|
| GET | /prompts |
List saved templates by name |
| PUT | /prompts/:name |
Create or replace a template with a JSON { "text": "..." } body |
| DELETE | /prompts/:name |
Remove a template |
Names must satisfy the store's name rules. Writes reject empty text and content above 65,536 UTF-8 bytes. Filesystem failures are reported, not treated as an empty library. On Node, saves write a private temporary file before renaming it into place.
Help and integration
In Help mode, load the package's help-how-to-prompt guide. The root exports createNodeSavedPromptStore and createRecentPrompts for hosts that need the underlying stores.
Development
Run this package's build, typecheck, test, and lint scripts from its directory.
License
Business Source License 1.1: free for personal use, organisations under USD 1M revenue, non-profits and education. See LICENSE and https://agimon.ai/licensing.