@onlinechefgroep/pi-agent-orchestrator
v0.17.1
Published
Pi extension for orchestrating autonomous coding agents with TUI dashboard, scheduling, swarms, handoffs, and prompt compression.
Downloads
300
Maintainers
Readme
@onlinechefgroep/pi-agent-orchestrator
Multi-agent orchestrator for Pi coding agents -- sub-agents, handoffs, prompt compression, scheduling, and an interactive TUI dashboard.
What is this?
A Pi extension that adds autonomous sub-agent orchestration to Pi coding agents. Spawn specialized agents (Explore, Plan, Analysis, general-purpose, or custom), chain them via structured handoffs, schedule recurring jobs, and coordinate multi-agent swarms -- all from a vim-style interactive TUI dashboard.
Dashboard Preview
Installation
Prerequisites: A working Pi host environment with @earendil-works/pi-coding-agent.
Install the extension globally into your Pi environment:
pi install npm:@onlinechefgroep/pi-agent-orchestratorOr install it locally for the current project only:
pi install npm:@onlinechefgroep/pi-agent-orchestrator -lQuick Start
After installation, start a Pi session and type /agents to open the dashboard.
- Press
tfor the resource top view,?for the help overlay,zfor daemon schedules. - Navigate the agent list with
j/kor the arrow keys. - Create a custom agent by creating
.pi/agents/my-agent.mdwith frontmatter (see Custom Agents for details).
Keyboard Cheatsheet
| Key | Action |
|-----|--------|
| j/k or Up/Down | Navigate agent list |
| t | Toggle top/resource view |
| z | Toggle schedule view |
| ? | Help overlay |
| /perf | Performance metrics |
| Shift+K | Kill selected agent(s) |
| Space | Multi-select |
| g/G | Jump to first/last |
| Esc/q | Close overlay or dashboard |
Features
- Interactive TUI Dashboard -- 6 views: agent list, resource top, daemon schedules, performance metrics, help overlay, and settings.
- Sub-agent System -- Spawn specialized agents (Explore, Plan, Analysis, general-purpose, custom) with permission inheritance and partition filtering.
- Prompt Compression -- Three tiers (minimal, balanced, aggressive) with global defaults and per-agent overrides to reduce token usage.
- Cron Scheduling -- Schedule recurring autonomous agent jobs with a persistent store and daemon schedule view.
- Handoff Protocol -- JSON-based handoff system enabling chain-of-agents workflows.
- Custom Agents -- Define agents via Markdown frontmatter in
.pi/agents/*.mdfiles. - Swarm Coordination -- Dynamic multi-agent swarm join/leave with real-time dashboard status.
- Cross-extension RPC -- Peer extension integration for composable tool chains.
Custom Agents Example
Create .pi/agents/typescript-reviewer.md:
---
display_name: "TypeScript Reviewer"
description: "Read-only reviewer for TypeScript changes"
tools: read, grep, find, ls, bash
disallowed_tools: write, edit
extensions: false
skills: true
max_turns: 20
prompt_mode: replace
---
You are a senior TypeScript code reviewer.
Focus on type safety, error handling, async control flow, and maintainability.
Report findings with severity, exact file paths, and actionable fixes.
Never modify files.See Custom Agents for the full authoring guide.
Development
npm install
npm run setup:hooks # git hooks (opt-in)
npm test
npm run lint:fix
npm run typecheckLicense
MIT (c) OnlineChefGroep
