tintinweb/pi-subagents
Claude Code like Sub-Agents & Workflow Orchestration for Pi — parallel execution, live widget, fleet view, custom agent types, mid-run steering, claude compatible dynamic workflows and more ...
What it solves
pi-subagents is an extension for the pi platform that enables the creation and orchestration of autonomous sub-agents. It allows users to move beyond a single-model conversation by spawning specialized agents that can run in the background, work in parallel, or follow deterministic scripted workflows, reducing the cognitive load on the main agent and improving the efficiency of complex tasks.
How it works
The project implements a system where a parent agent can spawn child agents using an Agent tool. These sub-agents can be configured with their own system prompts, models, and tool restrictions. The extension provides several orchestration methods:
- Autonomous Spawning: Agents can be run in the background (asynchronous) or foreground (blocking).
- Scripted Workflows: A
SubagentWorkflowtool allows for deterministic JavaScript scripts to orchestrate multiple agents using patterns likeparallel(),pipeline(), andphase(). - Agent Mentions: Users can interact with agents directly via
@handlesyntax at the prompt, allowing them to steer, resume, or start agents without adding turns to the main conversation. - Isolation: Agents can run in isolated Git worktrees to ensure changes are committed to branches upon completion.
Who it’s for
Developers using the pi platform who need to manage complex, multi-step AI agent workflows, specifically those who want a "Claude Code-style" experience with autonomous sub-agents and background task management.
Highlights
- Claude Code-style UI: Includes a persistent widget for active agents, a "FleetView" for navigating running sub-agents, and a live conversation viewer.
- Parallel Execution: Supports concurrent background agents with configurable concurrency limits and smart group notifications.
- Nested Sub-agents: Allows agents to spawn their own children (opt-in) with depth-capped delegation.
- Deterministic Workflows: Supports JavaScript-based orchestration scripts that are compatible with Claude Code's
Workflowtool. - Scheduling: Ability to register agents to fire based on cron expressions, intervals, or one-shot timestamps.
- Cross-extension RPC: An event bus enabling other pi extensions to spawn, stop, and join sub-agents.
Related
- Project
- Project
- Project
- Project
- Project