pi-gstack-bridge
Pi-native agent bridge for gstack review and specialist workflows.
Package details
Install pi-gstack-bridge from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-gstack-bridge- Package
pi-gstack-bridge- Version
0.1.1- Published
- Aug 29, 2026
- Downloads
- 132/mo · 132/wk
- Author
- eiei114
- License
- MIT
- Types
- extension, skill
- Size
- 49.6 KB
- Dependencies
- 1 dependency · 5 peers
Pi manifest JSON
{
"extensions": [
"./extensions/index.ts"
],
"skills": [
"./skills"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-gstack-bridge
Pi-native agent bridge for gstack. Routes review, challenge, design, and second-opinion work through child Pi sessions instead of directly launching Codex, Claude, or Gemini CLIs.
What this is
pi-gstack-bridge is the routing and safety boundary for pi-gstack. It embeds pi-gstack's skills, safety hooks, compatibility helpers, and commands while filtering its legacy Agent/Task registrations. The bridge then supplies Pi-routed replacements for those tools. Codex can remain the selected provider/model (openai-codex/...), while Pi owns the child launch, authentication, timeout, cancellation, tool allowlist, and Windows executable resolution.
Features
- Pi-routed
AgentandTaskcompatibility tools gstack_pi_agentfor specialist workgstack_pi_reviewfor independent read-only review- gstack skills, safety hooks, compatibility helpers, and commands without a second gstack extension
- Direct
codex,claude, andgeminiCLI blocking - Windows npm-shim-safe Pi CLI resolution
- Local run artifacts and diagnostics
Install
pi install npm:pi-gstack-bridge
Do not load npm:pi-gstack separately in the same settings file. The bridge loads its gstack surface internally and removes the duplicate Agent/Task registrations before Pi validates extension tools. This avoids the startup error Tool "Agent" conflicts with ....
Quick start
/gstack-bridge:status
/gstack-bridge:doctor
The tools are available to gstack workflows automatically:
{
"task": "Review this branch for production regressions and security issues.",
"mode": "review",
"readOnly": true
}
Configuration
| Variable | Purpose |
|---|---|
PI_GSTACK_BRIDGE_CLI |
Explicit pi-coding-agent/dist/cli.js path |
PI_GSTACK_BRIDGE_PI_BIN |
Explicit Pi executable or npm shim |
GSTACK_PI_BRIDGE_MODEL |
Default child model when the parent has none |
GSTACK_PI_BRIDGE_RUN_DIR |
Override local run-artifact directory |
Package contents
extensions/index.ts— Pi tools, routing prompt, guardrails, commandspi-gstackdependency — gstack skills, safety hooks, compatibility helpers, and commands, loaded through the bridgelib/pi-launcher.ts— cross-platform Pi launch-plan resolverlib/runner.ts— child Pi runner and artifactslib/policy.ts— direct-model-CLI and read-only shell policyskills/gstack-pi-bridge/SKILL.md— gstack routing instructions
Development
npm ci
npm run ci
pi -e .
Release
See docs/release.md. Publishing uses npm Trusted Publishing; long-lived npm tokens are not supported.
Security
This package executes Pi child processes with local-user permissions. Read SECURITY.md before installing it in an untrusted repository.
Links
License
MIT