@guygrigsby/pi-active-model
Inject a live call-out of the currently-active model into the system prompt each turn, so the orchestrator knows which model it is running and can route accordingly.
Package details
Install @guygrigsby/pi-active-model from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@guygrigsby/pi-active-model- Package
@guygrigsby/pi-active-model- Version
0.1.2- Published
- Aug 7, 2026
- Downloads
- 121/mo · 18/wk
- Author
- guygrigsby
- License
- MIT
- Types
- extension
- Size
- 4.6 KB
- Dependencies
- 0 dependencies · 1 peer
Pi manifest JSON
{
"extensions": [
"./extensions/index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
active-model
Injects a one-line <active-model> call-out into the system prompt each turn,
read live from ctx.model. It tells the orchestrator which model it is running
and updates on a mid-session /model switch.
Purpose: let orchestration adapt to the live model. When the active model is
strong, fan work out to cheaper subagents; when it is already cheap or local,
do the work directly. Pairs with the subagent-routing extension, which reads
this identity when deciding how to route and escalate.
No configuration.
Install
pi install npm:@guygrigsby/pi-active-model