@tian.zuo/pi-repo-model

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

Packages

Package details

extension

Install @tian.zuo/pi-repo-model from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@tian.zuo/pi-repo-model
Package
@tian.zuo/pi-repo-model
Version
0.1.1
Published
Aug 29, 2026
Downloads
324/mo · 17/wk
Author
tian.zuo
License
MIT
Types
extension
Size
32.4 KB
Dependencies
1 dependency · 3 peers
Pi manifest JSON
{
  "extensions": [
    "./index.ts"
  ]
}

Security note

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

README

@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