# superpowers Background subagents and explicit workflow discipline for Pi. ## Activation ```bash pi -e ./extensions/superpowers/index.ts pi -e ./extensions/superpowers/index.ts --superpowers ``` `/superpowers` toggles strict upstream-style workflow discipline for the current session. `--superpowers` starts with that mode already enabled. Strict mode means future non-trivial coding turns must pick and follow the smallest applicable Superpowers workflow, then verify before claiming completion. Prompts/skills remain installed and manually callable when off. Off only disables automatic methodology pressure. No always-on activation unless you opt in. No hidden agents. ## Commands ```text /superpowers # toggle workflow discipline /superpowers on /superpowers off /superpowers run [args] /superpowers open /superpowers branch /superpowers return /superpowers abort /superpowers status [id] # workflow aliases → background workers /superpowers design # brainstorming /superpowers plan # writing-plans /superpowers execute # executing-plans /superpowers parallel # dispatching-parallel-agents /superpowers review # requesting-code-review /superpowers deslop # requesting-code-review, focused on slop /superpowers compress # requesting-code-review, focused on DRY/design compression /superpowers debug # systematic-debugging /superpowers git # using-git-worktrees /superpowers meta # writing-skills /superpowers verify # verification-before-completion # visual brainstorming companion /superpowers visual start /superpowers visual status /superpowers visual stop ``` Agents are normal Pi prompt templates: ```text .pi/prompts/*.md ~/.pi/agent/prompts/*.md ``` Use the same file either way: ```text /review ... /superpowers run review ... ``` Supported frontmatter: ```yaml tools: [read, grep] extensions: ["*", "-superpowers"] thinking: off model: provider/model ``` Bundled workflow skills + prompt entrypoints: ```text /using-superpowers /brainstorming /writing-plans /executing-plans /dispatching-parallel-agents /subagent-driven-development /requesting-code-review /receiving-code-review /test-driven-development /systematic-debugging /verification-before-completion /using-git-worktrees /finishing-a-development-branch /writing-skills ``` `skills/*/SKILL.md` holds the methodology. `prompts/*.md` are normal Pi slash prompt wrappers around those skills. Same prompts work as background workers: ```text /superpowers run systematic-debugging flaky test /superpowers run requesting-code-review current diff ``` Runtime state lives in the platform state dir, per project: ```text Linux: ${XDG_STATE_HOME:-~/.local/state}/pi/superpowers// macOS: ~/Library/Application Support/pi/superpowers// Windows: %LOCALAPPDATA%\\pi\\superpowers\\\\ ``` Project/VCS state is only written by workflows that intentionally create docs/specs, e.g. `docs/superpowers/specs/...`. `status` is optimized for tmux supervision: summaries include id, state, elapsed time, agent name, tool count, and first result line. `status ` shows prompt, parent/child sessions, and latest result without opening an editor. ## Shape From `/tmp/pi-superpowers-proto/DESIGN.md`: ```text run = background SDK agent open = inspect checkpoint/log branch = stop/promote into ctx.newSession({ parentSession }) return = ctx.switchSession(parent) ``` No Pi subprocesses. Uses Pi SDK sessions/resource loading directly.