@richardgill/pi-preset

Pi extension for named presets that can set model, thinking level, tools, and per-preset system prompt instructions.

Package details

extension

Install @richardgill/pi-preset from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@richardgill/pi-preset
Package
@richardgill/pi-preset
Version
0.0.4
Published
Apr 30, 2026
Downloads
152/mo · 152/wk
Author
richardgill
License
unknown
Types
extension
Size
11.7 KB
Dependencies
2 dependencies · 3 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

preset

Pi extension for named presets that can set model, thinking level, tools, and per-preset system prompt instructions.

Part of pi-extensions.

Install with pi

pi install npm:@richardgill/pi-preset

or locally

pi install ~/code/pi-extensions/main/extensions/preset

Configure

Create preset.jsonc in your pi agent config folder:

{
  "presets": {
    "plan": {
      "provider": "openai-codex",
      "model": "gpt-5.2-codex",
      "thinkingLevel": "high",
      "tools": ["read", "bash"],
      "instructions": "Planning mode. Do not edit files."
    },
    "implement": {
      "provider": "anthropic",
      "model": "claude-sonnet-4-5",
      "thinkingLevel": "high",
      "tools": ["read", "bash", "edit", "write"],
      "instructions": "Implementation mode. Make focused changes."
    }
  }
}

Usage

pi --preset plan
  • /preset opens the selector
  • /preset implement activates a preset directly
  • ctrl+shift+u cycles presets