@agimon-ai/po-prompt

Staged recent prompts and saved prompt templates for Po

Packages

Package details

extension

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.40
Published
Oct 21, 2026
Downloads
3,573/mo · 3,573/wk
Author
agiflow-ai
License
BUSL-1.1
Types
extension
Size
257 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

Staged recent prompts and saved prompt templates for Po.

This package is a composable Po subsystem.

Requirements

  • Node.js 24 or newer
  • @earendil-works/pi-coding-agent 0.85.0

Install

Po users can add @agimon-ai/po-prompt to default.packages or a selected layer's packages list in .po/modes.yaml.

Cockpit

The package contributes a Prompt template entry to the composer's + menu, beside File Upload, backed by a hub-scoped API at /api/plugin/prompts. The entry opens a list-first dialog over the conversation, and picking one sends it immediately to the focused session. The same dialog creates and edits entries, confirms replacements and removals, and refreshes the list after writes. Every text-bearing user message also offers save as prompt, opening the editor with that message text ready to name or edit. The dialog itself is a cockpit overlay rather than part of the menu, so the message action reaches it without the menu being open.

Route Purpose
GET /prompts Every saved prompt, sorted by name
PUT /prompts/:name Create or replace one, deriving its description from the first line
DELETE /prompts/:name Remove one

The API is hub-scoped because saved prompts belong to the agent directory rather than to a session. Staged prompts are not exposed there: they live in the memory of the session that received them.

The cockpit hub mounts package APIs from the route table po sync generates. After installing or changing this package, run a build and po sync, then restart the hub, or its routes answer 404.

Help

The published package includes llms.txt and the package-owned src/prompts/help-how-to-prompt/SKILL.md. When the Po Help minor mode is active, the extension contributes help-how-to-prompt to its live Help catalog. The contribution follows Help provider replacement and is withdrawn when the extension shuts down.

Public API

import { createNodeSavedPromptStore, createRecentPrompts } from '@agimon-ai/po-prompt';

Development

pnpm build
pnpm typecheck
pnpm test
pnpm lint
pnpm exec vibe-lint check .
npm pack --dry-run

Maintained by Agimon.

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.