omp packages

@ssh352/pi-profiles0.2.0

Named model, thinking, and provider presets for the Pi coding agent.

ssh352 Published 6 days ago MIT ~246 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

Pi Profiles

Select a configured Pi model and an optional thinking level by name. Requires Pi 1.6.0 or later.

pi install npm:@ssh352/pi-profiles

For development, use pi install /absolute/path/to/ssh352-pi-profiles.

Create profile-presets.json in your Pi agent directory (~/.pi/agent by default, or the directory in PI_CODING_AGENT_DIR).

{
  "gpt": { "model": "openai/gpt-6.2-sol" },
  "review": { "model": "openai/gpt-6.2-sol", "thinking": "high" },
  "local": { "model": "ollama/qwen2.5-coder:7b" }
}

Use model IDs from pi --list-models. Pi resolves models and credentials from its usual configuration. Omitting thinking leaves Pi's configured level in place, clamped to what the selected model supports.

An optional models array narrows the profile's provider to the listed model IDs. Each entry has an id without the provider prefix, thinkingLevels, and defaultThinking. The list must include the profile's startup model. Pi offers only the levels supported by both the list and the provider. ultra can be saved in thinkingLevels for catalogs that publish it, but Pi 1.6 cannot select it. A profile's thinking overrides defaultThinking for its startup model.

pi --profile gpt
pi --profile review -p 'Review this change'
pi --profile review --thinking low
pi --profile local --list-models

When you launch with --profile, Pi hides models from providers assigned to other profiles. This applies to built-in providers and providers defined in models.json. Profiles can share a provider, as gpt and review do above. Profiles must not name a provider supplied by another extension: hiding replaces that provider's model list, and switching profiles restores Pi's own catalog, not the extension's, so the provider stays missing until /reload.

In a running session, use /profile to pick a preset or /profile review to select one by name and update the provider scope of a profiled session. The launch profile stays authoritative: /new re-applies it, so a preset you picked with /profile does not survive /new. In a running session, /resume and /fork keep that session's own model and leave both its provider and the profile's provider visible; starting Pi with -c or --resume re-applies the launch profile instead.

--model must resolve to the profile's model at launch. Launching Pi without a profile uses its usual defaults.

Development

npm test runs integration tests against the pi binary on PATH (override with PI_BIN), using a local mock provider; they are skipped when no binary is found.