@teelicht/pi-superagents

Pi extension for Superpowers workflows: recon, research, implementation, review, and debug

Packages

Package details

extension

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.9.0
Published
May 20, 2026
Downloads
230/mo · 79/wk
Author
teelicht
License
MIT
Types
extension
Size
457.2 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 and optional thinking level can be configured per tier. Custom tiers are possible. Models, tier thinking, and command-scoped behavior toggles can be changed through the /sp-settings TUI; its model picker supports type-to-search filtering for large authenticated model lists. Slash-command metadata lives in entrypoint agent frontmatter.
  • Plannotator Integration: Optional event bridge to Plannotator for browser-based spec/plan review and approval (setting).
  • Worktree Isolation: Optional git worktree creation for parallel tasks to prevent filesystem conflicts. Worktree-backed parallel children are joined before cleanup; worktree policy is unchanged.
  • Entrypoint Lifecycle Skills: Superpowers entrypoint agents inject root lifecycle skills (verification, review-feedback, branch finishing) defined in frontmatter. .
  • Subagent Extension & Tool Defaults: Subagents run with implicit Pi extension discovery disabled by default; configure superagents.extensions with local paths or Pi -e source specs, and superagents.tools with shared tool names or tool extension paths. The bundled defaults provide the common read-only tools globally so agent frontmatter only lists role-specific extras.

Installation

pi install npm:@teelicht/pi-superagents

[!NOTE] This tool requires the superpowers skills 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

Execution Model

Subagent execution is synchronous and blocking. The subagent tool does not accept async, wait, collect, or cancel parameters. Lifecycle tools (subagent_done, caller_ping) are registered as internal child-only tools through policy; they are not general-purpose delegation tools.

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. Use superagents.tools to append shared tool names or tool extension paths to every subagent without repeating them in each agent frontmatter file.

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 runtime-confirmed models, thinking levels, and 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.

Subagent execution remains conservative and synchronous for ordinary Superpowers workflows. There is intentionally no user-facing async or blocking switch in agent frontmatter, config, or tool parameters. Internal result ownership prevents duplicate delivery and lifecycle sidecars let child agents report intentional completion or a parent-help request without changing the normal delegation flow.

  1. Recon (sp-recon): Initial codebase analysis and context gathering.
  2. Research (sp-research): Deep dive into specific APIs, libraries, or logic.
  3. Implementation (sp-implementer): Code changes guided by test-driven development (optional).
  4. Review (sp-code-review): Automated review of changes against project standards.
  5. 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. Inline subagent rows and the status overlay show the model reported by the child Pi execution loop and, when available, the effective thinking level used for that run. Set PI_SUPERAGENTS_RUN_HISTORY_PATH to isolate that file for tests or sandboxed sessions.

Configuration & Documentation

Credits