Install
Install with PiG
pig install npm:@agimon-ai/po-promptInstall with Pi
pi install npm:@agimon-ai/po-promptPackages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.
README
Written by the package's publisher, shown as published in version 0.0.0-alpha.197 (README.md). PiG does not review it.
@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
MIT. See LICENSE.