@saifymatteo/pi-model-go

/model-go: cost-aware model picker with Go-plan pricing and intelligence scores.

Packages

Package details

extension

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

$ pi install npm:@saifymatteo/pi-model-go
Package
@saifymatteo/pi-model-go
Version
0.1.5
Published
Nov 8, 2026
Downloads
946/mo · 946/wk
Author
saifymatteo
License
AGPL-3.0-only
Types
extension
Size
61 KB
Dependencies
0 dependencies · 2 peers
Pi manifest JSON
{
  "image": "https://raw.githubusercontent.com/saifymatteo/pi-extensions/main/packages/pi-model-go/screenshot.png",
  "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-go

/model-go picker sorted by effective price with credit multipliers and intelligence scores

/model-go lists OpenCode Go models sorted by effective price (input ÷ plan credit), with context size, intelligence score and credit multiplier.

Cost-aware model picker showing registry prices/context, OpenCode Go credit multipliers and stencil.so intelligence scores. Source describes it as a port of rizal72/oc-models-pro.

Running locally

From the monorepo root:

pi -e ./packages/pi-model-go

Warning: this extension uses your existing Pi resources and settings unless you load it in an isolated home (see the root README). Do not load two copies of the same extension (for example an older standalone file alongside this package): commands and hooks can duplicate. The package never installs or relocates personal settings.

Commands and shortcuts

  • /model-go [query] — opens the picker; Enter switches the selected model.
  • Up/Down or PageUp/PageDown to move; Ctrl+O cycles sort; Ctrl+S cycles Go/with-key/all scopes; Ctrl+U clears search.
  • Escape clears a nonempty search, then closes; Ctrl+C closes immediately.

Settings and storage

Uses Pi's model registry and existing credentials (OPENCODE_API_KEY or /login for OpenCode Go). Caches data in <agent-dir>/state/model-go/{go-plan,bench}.json; <agent-dir> is PI_CODING_AGENT_DIR or ~/.pi/agent. Go data is cached for one day, benchmark data for six hours; stale data can be used with warnings.

Privacy and operations

On command, fetches https://opencode.ai/v2/docs/console/go/ and https://catalog.stencil.so/models.json with 20-second request timeouts and writes cache files. These fetches request public data, not conversation content. Picking changes the active model; later prompts may have different cost/provider privacy. No model completion is requested by the picker.

Compatibility

Node.js >=24 for development checks; run extensions through Pi's TypeScript loader. Host imports are wildcard peers, not bundled runtime copies. Interactive TUI only; other modes are told to use /model. Remote HTML/catalog formats and intelligence/price matching may change; figures are estimates, not billing guarantees. No token-per-second metric is supplied. Source helper retains its optional offline/live self-check; no live check is run by tests.

See NOTICE.md for provenance. Tests use the monorepo's TypeScript dev dependency and VM loader; they do not contact services or write to user-home resources.