pi-agent-bus
Pi Extension to bridge pi-agent-bus-node agents with pi.tools and pi-link
Package details
Install pi-agent-bus from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-agent-bus- Package
pi-agent-bus- Version
0.1.4- Published
- Apr 26, 2026
- Downloads
- 570/mo · 570/wk
- Author
- kylebrodeur
- License
- MIT
- Types
- extension
- Size
- 25.3 KB
- Dependencies
- 2 dependencies · 1 peer
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
pi-agent-bus (Bridge Extension)
This package (internally known as pi-agent-bus-bridge in the monorepo) provides the Pi Extension bridge for the pi-agent-bus ecosystem. It connects isolated agent workflows running on pi-agent-bus-node to the main Pi execution environment via tools and messaging.
Features
- Tool Routing Logic: Proxies
pi.toolscalls from the isolated agents to the main Pi process. pi-linkIntegration: Allows sending orchestration commands and listening for broadcast agent states.- Runtime Configuration: Exposes interactive
/pi-agent-busslash commands to configure, onboard, and manage agents at runtime.
Installation
From NPM Registry
Install the extension directly using the pi CLI:
pi install npm:pi-agent-bus
From Source
If working within the monorepo, symlink or copy the built /dist directory to your .pi/extensions/ directory.
Troubleshooting Guide
Issue: The /pi-agent-bus slash commands are not appearing
- Check the Extension Path: Ensure the built extension is correctly linked or placed in
.pi/extensions/. - Check the Extension Output: Ensure
pnpm buildwas run in the monorepo root to buildpi-agent-bus-bridgeusingtsup. - Restart Pi: Extension metadata is often loaded at startup. You might need to restart Pi.
Issue: Agent tool calls are timing out
- Check the Bridge Topic: Ensure your agent is publishing to the correct topic (
pi_tool_bridge_requests) when callinginvokePiTool. - Verify Tool Permissions: If an agent requests a tool that is not allowed in
config.essential.json(or your active config), the bridge will reject it. Check the active configuration file inpackages/pi-agent-bus-bridge/.
Issue: Cannot find module pi-agent-bus-node
- Dependency Bundling:
pi-agent-bus-nodeis bundled into the bridge extension viatsup. If you encounter module resolution errors, ensuretsup.config.tshasnoExternal: ["pi-agent-bus-node"]configured and that the build succeeded.
Configurations
The bridge provides several configuration presets in the root of the package:
config.essential.jsonconfig.with-context.jsonconfig.with-link.jsonconfig.with-model-router.json
To switch configs, use:
/pi-agent-bus tools load <preset>