@lukemelnik/pi-model-prompt

A Pi extension for global per-model prompt addenda and model prompt tools.

Package details

extension

Install @lukemelnik/pi-model-prompt from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@lukemelnik/pi-model-prompt
Package
@lukemelnik/pi-model-prompt
Version
0.1.0
Published
Apr 24, 2026
Downloads
130/mo · 130/wk
Author
lukemelnik
License
MIT
Types
extension
Size
20.1 KB
Dependencies
0 dependencies · 4 peers
Pi manifest JSON
{
  "extensions": [
    "./src/index.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

pi-model-prompt

A Pi extension for global per-model prompt addenda.

Features:

  • Stores prompt addenda per provider/model under ~/.pi/agent/model-prompts/
  • Adds /model-prompt show|edit|clear
  • Opens the standard Pi editor for bare /model-prompt
  • Adds model_prompt_show and model_prompt_edit tools
  • Appends the current model's addendum on the next prompt

Install locally:

  • pi install /path/to/pi-model-prompt

Install from GitHub:

  • pi install git:github.com/lukemelnik/pi-model-prompt

After publishing:

  • pi install npm:@lukemelnik/pi-model-prompt

Release:

  • npm run release:patch or npm run release:minor or npm run release:major
  • git push origin HEAD --follow-tags
  • npm run publish:release

npm version is the source of truth for releases here: it updates package.json, updates package-lock.json, creates a release commit, and creates a vX.Y.Z git tag.

No build step is required. Pi loads src/index.ts directly.