← Catalog

@tian.zuo/pi-repo-model

Per-repository default model and thinking level for the pi coding agent.

Extension

Install

Install with PiG

pig install npm:@tian.zuo/pi-repo-model

Install with Pi

pi install npm:@tian.zuo/pi-repo-model
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.1.2 (README.md). PiG does not review it.

@tian.zuo/pi-repo-model

Release notes: changelog · GitHub releases

Per-repository default model and thinking-level preferences for the pi coding agent.

pi install npm:@tian.zuo/pi-repo-model

How it works

Stores one model preference per repository in ~/.pi/repo-model/config.json and applies it at session start (default triggers: fresh start + new session). An explicit pi --model ... takes precedence on startup. Selections are keyed by git root, so each repository keeps its own preference without touching global settings or the repo's own .pi/ folder.

Commands

  • /repo-model — pick a model, then a thinking level, from dropdowns.
  • /repo-model provider/model[:thinking] — set directly, e.g. /repo-model cursor/composer-2.5:high.
  • /repo-model-unset — clear the current repo's default.
  • /repo-model-list — list every configured repo.

License

MIT © Tian Zuo