Favicon of Pi Subagents

Pi Subagents

An open-source pi extension that coordinates parallel AI agents, supports Claude Code workflows, and keeps resumable agent sessions on disk. MIT licensed.

Screenshot of Pi Subagents website

Pi Subagents adds specialized AI agents to pi for developers who want to split coding work across separate sessions. Each agent can have its own model, prompt and tool permissions. The extension runs within pi and is open source under the MIT license.

Agents work concurrently in the background, with queuing and completion notifications. You can inspect their full conversations, redirect work while it's running, or resume a finished session with its conversation intact. A live widget and FleetView show active work, tool activity and token usage without making you open every conversation.

For repeatable tasks, JavaScript workflows coordinate parallel jobs and pipelines rather than leaving every delegation decision to the model. Scripts written for Claude Code's Workflow tool run unchanged. Workflows can also check an agent's output by running a command, such as a test suite.

Custom agent definitions let you assign different roles, preload skills and restrict tools. Optional nested delegation lets an agent manage its own children within an explicit allowlist. Git worktree isolation gives agents separate repository copies and commits their changes to branches when they finish.

Agent sessions persist on disk, and memory can carry across sessions at project, machine or user scope. Agents without write tools can read memory but can't modify it. Other pi extensions can start, stop and collect agent work through an event interface, and scheduled agents support recurring or one-time tasks tied to a pi session.

Similar to Pi Subagents