← Catalog

@gonrocca/zero-pi

zero-pi — an installable layer for pi (pi.dev): the zero spec-driven development workflow (clarify → explore → plan → analyze → build → veredicto) with automatic clarify/analyze gates, per-phase model autotune, and token-efficient batched …

Extension

Install

Install with PiG

pig install npm:@gonrocca/zero-pi

Install with Pi

pi install npm:@gonrocca/zero-pi
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "image": "https://raw.githubusercontent.com/gonzalonicolasr/zero-pi/main/assets/preview.png",
  "skills": [
    "./skills"
  ],
  "themes": [
    "./themes"
  ],
  "prompts": [
    "./prompts"
  ],
  "extensions": [
    "./extensions/zero-banner.ts",
    "./extensions/zero-hud.ts",
    "./extensions/zero-theme.ts",
    "./extensions/zero-pretty-code-fences.ts",
    "./extensions/zero-pretty-input-box.ts",
    "./extensions/zero-pretty-tool-cards.ts",
    "./extensions/zero-activity-panel.ts",
    "./extensions/working-phrases.ts",
    "./extensions/win-tree-kill.ts",
    "./extensions/sdd-agents.ts",
    "./extensions/conversation-resume.ts",
    "./extensions/zero-models.ts",
    "./extensions/autotune-extension.ts",
    "./extensions/spec-merge-extension.ts",
    "./extensions/zero-validate-extension.ts",
    "./extensions/zero-status-extension.ts",
    "./extensions/zero-doctor-extension.ts",
    "./extensions/zero-cost-extension.ts",
    "./extensions/zero-execution-extension.ts",
    "./extensions/zero-checkpoint-extension.ts",
    "./extensions/zero-rounds-extension.ts",
    "./extensions/zero-pr-extension.ts",
    "./extensions/zero-branch-extension.ts",
    "./extensions/zero-git-validate-extension.ts",
    "./extensions/zero-archive-extension.ts",
    "./extensions/zero-issue-extension.ts",
    "./extensions/zero-diff-extension.ts",
    "./extensions/provider-guard-extension.ts",
    "./extensions/scan-guard-extension.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.1.93 (README.md). PiG does not review it.

███████╗ ███████╗ ██████╗   ██████╗           ██████╗  ██╗
╚══███╔╝ ██╔════╝ ██╔══██╗ ██╔═══██╗          ██╔══██╗ ██║
  ███╔╝  █████╗   ██████╔╝ ██║   ██║  █████╗  ██████╔╝ ██║
 ███╔╝   ██╔══╝   ██╔══██╗ ██║   ██║  ╚════╝  ██╔═══╝  ██║
███████╗ ███████╗ ██║  ██║ ╚██████╔╝          ██║      ██║
╚══════╝ ╚══════╝ ╚═╝  ╚═╝  ╚═════╝           ╚═╝      ╚═╝

@gonrocca/zero-pi

The zero spec-driven development workflow, packaged for pi.

npm repo Discord license node


zero-pi is a package for pi that adds /forge: one command that takes a feature through a spec-driven pipeline, one sub-agent per phase, with a model and thinking level you choose for each phase. pi stays untouched.

clarify ─► explore ─► plan ─► analyze ─► build ─► veredicto ─► pasa (done)
                       ▲         │          ▲          │
                       └─ replan ┘          └─corregir─┤
                       ▲                               │
                       └───────── replantear ──────────┘
pi install npm:@gonrocca/zero-pi
pi install npm:pi-subagents        # required: every phase runs as a sub-agent
# restart pi, then inside pi:
/forge add a dark-mode toggle to the settings page

Install

Needs Node ≥ 20.6 and pi. Install both packages as above and restart pi so it regenerates the zero-* phase agents (do it again after every upgrade).

Then run /zero-doctor. It checks pi-subagents, generated agents, model config and gh auth before you spend tokens.

Quick use

  1. /forge <feature>. It asks for interactive or automatic mode, then runs the phases. The run is in Spanish and prints one short summary per phase.
  2. In interactive mode it pauses after each phase for your approval.
  3. At the end it prints a cost table and, if the verdict is pasa, asks you to run /zero-archive <slug>.
  4. /forge --continue [slug] resumes an interrupted run.

You can also write "hacelo con sdd" in a normal message: the sdd-routing skill sends it to /forge.

Phases

PhaseDoes
clarifyRecords assumptions; stops only on blocking ambiguity.
exploreReads the codebase (read-only) and writes findings.
planWrites requirements, design and an ordered task list.
analyzeChecks the plan after /zero-validate: continue or replan.
buildImplements the plan, test-first (strict TDD when a test runner exists).
veredictoReviews adversarially: pasa, corregir (back to build) or replantear (back to plan).

Clarify and analyze run on their own. A run that reaches the round cap (3 by default) without a pasa is reported as not verified. Everything lands in .sdd/<slug>/ (clarifications.md, findings.md, spec.md, design.md, tasks.md, checklist.md, ...). Details: docs/forge-pipeline.md.

Models and profiles

Each phase has its own model, provider and thinking level. Without config, the defaults are: Haiku 4.5 for clarify/explore, Opus 4.8 for plan/analyze/veredicto, Sonnet 4.6 for build. A profile is a named setup you can switch.

/zero-models                                       # picker (the main screen is the profile list)
/zero-models build=anthropic/claude-sonnet-4-6 thinking=high
/zero-models profile new barato                    # snapshot current setup and activate it
/zero-models profile use premium                   # switch, then restart pi
Profile commandDoes
profile listList profiles (* marks the active one).
profile new <name> [from <other>]Create and activate (from the current setup, or a clone).
profile use <name>Activate. Restart pi afterwards.
profile save [<name>]Save the current setup under <name> (create or update) and activate it. No name: update the active profile, e.g. to keep autotune changes.
profile delete <name>Delete.

zero-pi ships no ready-made profiles; you create them. More: docs/models-and-profiles.md.

Commands

CommandDoes
/forge <feature>Run the pipeline. --continue [slug] resumes.
/zero-models ...Show or set models, thinking and profiles.
/zero-doctorPreflight checks.
/zero-statusState of every run in .sdd/.
/zero-validate <slug>Validate a run's plan artifacts.
/zero-cost [<runId>|<slug>]Token and USD usage of a run's sub-agents.
/zero-checkpoint [<slug>]Patch checkpoint before risky build batches.
/zero-rounds [status|record|reset]Build/veredicto round ledger.
/zero-branch, /zero-issue, /zero-pr, /zero-git-validate <slug>Git branch, GitHub issue and PR for a run.
/zero-sync, /zero-diff, /zero-archive <slug>Merge a run's spec into .sdd/specs/ and archive it.
/zero-hud, /zero-themeFooter preset and theme.
/zero-resumeWrite the session handoff note now.

All flags and arguments: docs/commands.md.

Configuration

WhereWhat
~/.pi/zero.jsonPer-phase models, providers, thinking, autotune, profiles.
.sdd/config.jsonPer project: git, tdd.mode (strict or off), rounds.cap.
ZERO_HUD_PRESET, ZERO_HEADER=off, ZERO_RESUME=offHUD preset, startup banner, resume note.

Example .sdd/config.json to turn TDD off:

{ "tdd": { "mode": "off" } }

Full reference: docs/configuration.md.

Common problems

ProblemFix
/forge does nothing useful or phases fail to launchRun /zero-doctor. The usual cause is a missing pi-subagents.
Model or profile change has no effectRestart pi: the zero-* agents are regenerated when pi loads.
/zero-models build=... is rejectedThe provider/model is unknown or ambiguous in pi's registry. Use provider/model.
/zero-archive or /zero-branch says the worktree is dirtyCommit first, or pass --allow-dirty.
/zero-pr, /zero-issue failInstall gh and run gh auth login.
/zero-pr refuses to runThe run's latest verdict is not pasa.
Visuals look stale after an upgrade/reload, or restart pi.
Run stopped as "not verified"The round cap or the second analyze replan was hit. Read .sdd/<slug>/ and re-run /forge.

More docs

License

MIT © Gonzalo Rocca · github.com/gonzalonicolasr/zero-pi