@guygrigsby/pi-subagent-routing

Inject a subagent model-routing policy: the orchestrator plans and judges on its own live model and fans implementation out to cheaper subagents, reviewing before it accepts.

Packages

Package details

extension

Install @guygrigsby/pi-subagent-routing from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@guygrigsby/pi-subagent-routing
Package
@guygrigsby/pi-subagent-routing
Version
0.1.1
Published
Jul 24, 2026
Downloads
258/mo · 192/wk
Author
guygrigsby
License
MIT
Types
extension
Size
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

subagent-routing

Injects a subagent model-routing policy into the system prompt each turn (for the frontier pi profile). The orchestrator plans, specs, and judges on its own live model, fans implementation out to cheaper cloud subagents by passing an explicit model, and spawns a reviewer subagent to grade each result before accepting it.

Nothing names the orchestrator or judge model: those inherit the live model (spawn a subagent with no model override and it runs on whatever you are running). Only the cheap fan-out menu is explicit; edit it in extensions/subagent-routing-core.mjs as your available models change.

Pairs with the active-model extension (which tells the orchestrator its live identity) and the global reviewer agent type (~/.pi/agent/agents/reviewer.md).

No configuration.

Install

pi install npm:@guygrigsby/pi-subagent-routing