@teelicht/pi-superagents
Pi extension for Superpowers workflows: recon, research, implementation, review, and debug
Package details
Install @teelicht/pi-superagents from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@teelicht/pi-superagents- Package
@teelicht/pi-superagents- Version
0.8.2- Published
- May 4, 2026
- Downloads
- 1,099/mo · 329/wk
- Author
- teelicht
- License
- MIT
- Types
- extension
- Size
- 497.3 KB
- Dependencies
- 0 dependencies · 5 peers
Pi manifest JSON
{
"extensions": [
"./src/extension/index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
@teelicht/pi-superagents
Pi agent-harness extension to support superpowers workflows using subagents.
Features
- Superpowers Workflow: Proven pipeline for robust AI-assisted development.
- Role-Specific Agents: Thin agents-layer for every phase of the development lifecycle.
- Model Tiers & Command Settings: Abstract model selection (cheap, balanced, max) for each agent. One model can be configured per tier. Custom tiers are possible. Models and command-scoped behavior toggles can be changed through the
/sp-settingsTUI; slash-command metadata lives in entrypoint agent frontmatter. - Compact Inline Subagent Results: Subagent tool results render as collapsed single-line summaries with an expandable details view, keeping the Pi conversation readable during multi-step Superpowers workflows.
- Lineage-Only Sessions: Bounded Superpowers roles default to
sessionMode: lineage-only. Child sessions stay linked to the parent for session tree visibility, but do not inherit parent conversation turns. - Packet Handoffs: Work briefs are delivered through runtime-managed packet artifacts in the session artifact directory, automatically cleaned up after the child exits.
- Inline Agent Handoffs: Role outputs are returned through Pi tool results and session artefacts.
- Worktree Isolation: Optional git worktree creation for parallel tasks to prevent filesystem conflicts (setting).
- Entrypoint Lifecycle Skills: Superpowers entrypoint agents inject root lifecycle skills (verification, review-feedback, branch finishing) defined in frontmatter. Skill selection is trigger-driven via
using-superpowers; do not preload domain skills through command config. - Subagent Extension Allowlist: Subagents run with implicit Pi extension discovery disabled by default; configure
superagents.extensionswith local paths or Pi-esource specs such asnpm:@scope/packagefor extensions every subagent should receive. - Plannotator Integration: Optional event bridge to Plannotator for browser-based spec/plan review and approval (setting).
Installation
pi install npm:@teelicht/pi-superagents
[!NOTE] This tool requires the
superpowersskills to be installed. Easy installation via https://skills.sh/obra/superpowers.
On install, pi-superagents creates config.json from the bundled defaults:
~/.pi/agent/extensions/subagent/config.json
To remove:
pi remove npm:@teelicht/pi-superagents
Integrated Slash Commands
Superpowers slash commands are registered from interactive entrypoint agent frontmatter, not generated from config.json. config.json only changes runtime behavior for commands that already have a matching entrypoint agent.
| Command | Description |
|---|---|
/sp-brainstorm <task> |
Brainstorm a task and save a spec, optionally review it with Plannotator UI |
/sp-plan <task> |
Plan a task with optional Plannotator plan review |
/sp-implement <task> |
Run an implementation task through the Superpowers flow |
/subagents-status |
Open active and recent subagent run status, including resolved skills |
/sp-settings |
Open superagents settings |
Custom Commands
Create custom slash commands by adding an interactive entrypoint agent markdown file (e.g., ~/.pi/agent/agents/sp-mycommand.md) with the appropriate frontmatter. Optional behavior flags (e.g., useSubagents, usePlannotator) can be set in config.json under superagents.commands.<name>. Config blocks alone do not register commands.
See Configuration for the agent frontmatter schema and behavior flag reference.
Agents
The /sp-implement command activates a structured workflow for task execution with an interactive entrypoint agent, role-specific headless agents, model tiers, and built-in quality gates. The bundled agents/sp-implement.md entrypoint injects root lifecycle skills for verification, review-feedback handling, and branch finishing. The bundled sp-debug role injects systematic-debugging when delegated.
- Recon (
sp-recon): Initial codebase analysis and context gathering. - Research (
sp-research): Deep dive into specific APIs, libraries, or logic. - Implementation (
sp-implementer): Code changes guided by test-driven development (optional). - Review (
sp-code-review): Automated review of changes against project standards. - Debug (
sp-debug): Root cause analysis and fix verification for regressions.
Subagent-driven development keeps implementer and reviewer reports inline in the Pi conversation. Bounded roles default to lineage-only — they see a curated work brief rather than the full parent conversation history. The runtime does not create repo-root packet files such as implementer-report.md, spec-review.md, code-review.md, debug-brief.md, or task-brief.md; those names are ignored if an older prompt or manual run creates them.
Run history is persisted at ~/.pi/agent/run-history.jsonl for /subagents-status. Set PI_SUPERAGENTS_RUN_HISTORY_PATH to isolate that file for tests or sandboxed sessions.
Configuration & Documentation
- Configuration — Workflow, settings, model tiers, custom tiers, commands, and agent overrides.
- Worktree Isolation — Git worktree setup.
- Parameters API — Full parameter reference for the
subagenttool. - Skills Reference — Skill locations, injection, and frontmatter.
- Release Process — Maintainer steps for GitHub Releases and npm Trusted Publishing.
Credits
- This was originally a fork of pi-subagents, so thanks for all the ground-work. This repo however moved far off the original.
- pi-interactive-subagents for the session-mode implementation.
- @tintinweb/pi-subagents for UI inspiration.
- And of course Pi for the awesome foundation.