Try “Claude Code skills”, “MCP servers for Cursor” or “Codex” · Esc to close

Pi Subagents 🤖 Agent Open source

Claude Code-style background subagents and scripted multi-agent workflows for pi

Agent workflows & frameworks · Open source ★ 1.2k · +28 this week · MIT · updated 2026-09-03

6.8editor score
View on GitHub ↗
GitHub stars
1.2k
Stars this week
+28
Forks
298
Licence
MIT
Last push
2026-09-03
Maintainer
tintinweb
Installpi install npm:@tintinweb/pi-subagents

Third-party subagents & agents run with your permissions. Read the source before installing, and prefer pinned versions.

Works with

Not mapped to an app yet.

About Pi Subagents

What it does

pi-subagents is an extension for the pi coding agent that adds Claude Code-style subagents and scripted orchestration. The main agent gets an Agent tool that spawns specialised agents in isolated sessions, each with its own system prompt, model, thinking level and tool set. Agents run in the background by default and report back when they finish, and you can watch, steer or resume them from the terminal interface. Tool names and calling conventions deliberately mirror Claude Code, so prompts and habits transfer easily.

What is inside

  • Tools: Agent for spawning or scheduling agents, get_subagent_result, steer_subagent for mid-run instructions, and SubagentWorkflow, which runs a JavaScript script with agent(), parallel() and pipeline() helpers for deterministic multi-agent flows
  • Custom agents: Markdown files with YAML frontmatter in .pi/agents/ or .agents/agents/, with model choice, tool allow and deny lists, skill preloading and optional nested subagents
  • Interface: a live widget, a FleetView list of running agents, a conversation viewer and @agent mentions that send a message straight to a subagent
  • Isolation and memory: optional git worktrees per agent with automatic branch commits, and persistent memory at project, local or user scope
  • Control: concurrency limits, graceful turn limits, model-scope enforcement, cron-style scheduling, and events plus RPC so other pi extensions can drive subagents

Works with

It is built and tested for pi only. pi is not one of the apps listed in this directory, and the README mentions a third-party adapter for another harness that the author does not test.

How to install

pi install npm:@tintinweb/pi-subagents

It requires a recent pi release, which the package declares as a peer dependency.

Maintenance and safety

The extension is MIT-licensed and actively maintained, with detailed documentation of every setting. Background agents run with the tools you allow, so restrict tools for untrusted tasks and review worktree branches before merging. Parallel agents multiply token use; the concurrency limit helps keep that in check.

Who should use it

pi users who want to delegate exploration, review or implementation to parallel background agents, or script repeatable multi-agent pipelines. People who do not use pi have no use for it.

pi-extension subagents orchestration worktrees parallel-agents

Pros

  • Parallel background agents with steering, resume and FleetView
  • Scripted workflows via SubagentWorkflow
  • Worktree isolation and per-agent tool scoping

Cons

  • Only works with pi, which is not an app in this directory

Similar subagents & agents

All agent workflows & frameworks →

Spec Kit 🤖 AgentFree

GitHub's toolkit for spec-driven development with AI coding agents

★ 140k · +898 this week

8.5 Visit ↗

Task Master 🤖 AgentFree

AI task management that turns a PRD into tasks your coding agent works through

★ 28k · +39 this week

Fast Agent 🤖 AgentOpen source

Python framework for building, orchestrating and evaluating MCP-native AI agents

★ 3.9k · +9 this week

8.0 Visit ↗

OpenSpec 🤖 AgentFree

Lightweight spec-driven development: agree on changes before the agent codes

★ 71k · +564 this week

7.9 Visit ↗

CC Safety Net 🤖 AgentOpen source

Pre-execution guard that blocks destructive commands and secret access for coding agents

★ 1.6k · +11 this week

7.9 Visit ↗

BMAD Method 🤖 AgentFree

Agile AI-driven development with analyst, PM, architect, developer and UX agents

★ 54k · +269 this week

7.8 Visit ↗

Popular searches