@mohammedhammoud/pi-local-model-options

Pi extension for per-model local model options.

Packages

Package details

extension

Install @mohammedhammoud/pi-local-model-options from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@mohammedhammoud/pi-local-model-options
Package
@mohammedhammoud/pi-local-model-options
Version
0.4.3
Published
May 26, 2026
Downloads
755/mo · 7/wk
Author
mohammedhammoud
License
MIT
Types
extension
Size
55.9 KB
Dependencies
0 dependencies · 2 peers
Pi manifest JSON
{
  "extensions": [
    "./dist/index.mjs"
  ]
}

Security note

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

README

@mohammedhammoud/pi-local-model-options

Per-model configuration for local LLM providers (Ollama, LM Studio, etc.). Lets you set temperature, top_p, and context window per model, with 3 built-in presets (Precise, Balanced, Exploratory). Options persist to ~/.pi/agent/local-options.json and are automatically applied when that model is active.

Why useful

Local providers often need different settings for different tasks — a coding model needs lower temperature than a brainstorming model. This extension lets you tune each model independently without touching config files, and the status indicator in the UI shows at a glance which models have custom options.

Built with limited context windows in mind. Different models, different needs.

Usage

  • /local — open the options panel for the active model
  • Presets: Precise (low temp, deterministic), Balanced (default), Exploratory (high temp, creative)
  • Manual: set enabled, temperature (0–2), top_p (0–1), num_ctx (≥1024)