Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

pi-mission-control

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pi-mission-control

Visual mission orchestration extension for pi with agent hierarchy and durable state

latest
Source
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

pi-mission-control

Visual mission orchestration extension for pi with agent hierarchy and durable state.

Overview

Mission Control provides a structured, visual approach to complex software development tasks. It orchestrates a hierarchy via the mission-orchestrator skill loaded into the main pi agent — the Orchestrator (Tech Lead/PM) delegates to Workers (Implementers) and Auditors (QA Reviewers) — to break down, execute, and verify work through durable file-based state.

Architecture Note: The Orchestrator is a skill representing the main user-facing pi agent behavior, not a standalone subagent. Only Worker and Auditor are spawned as subagents.

Features

  • Agent Hierarchy: Heavy-model Orchestrator delegates to light-model Workers and Auditors
  • Durable State: File-based state survives restarts and enables resume
  • Visual TUI: Real-time progress tracking with phases, tasks, and status
  • Quality Gates: Every task verified through Worker → Auditor PASS/FAIL cycle
  • Memory: Short-term per-run learnings distilled into long-term cross-run knowledge

Installation

Prerequisites

  • Install pi-subagents (required):

    pi install npm:pi-subagents
    
  • Install pi-ask-user (required for structured approvals and guided interviews):

    pi install npm:pi-ask-user
    

From npm (when published)

pi install npm:pi-mission-control

Usage

Starting a Mission

Once the extension is loaded, use the /mission command:

/mission

This will:

  • Scaffold worker/auditor agents and skills into .pi/ if first use
  • Show the Mission Control TUI (idle state with "Init new mission" button)
  • When initiated, the Orchestrator interviews you and produces requirements

Mission Lifecycle

/mission
  ├─ Scaffolds worker/auditor agents + skills (first run)
  ├─ Shows idle TUI with "Init new mission" button
  └─ When initiated:
       1. mission-orchestrator → Interview user, produce 00-requirements.md
       2. mission-tech-lead → Design system → 01-architecture.md + 02-validation.md
       3. mission-pm → Break work into phases/tasks via add_phase/add_task tools
       4. mission-orchestrator → Execute via Worker → Auditor cycle
       5. mission-memory → Distill learnings to long_term.md

Resuming a Mission

To resume a previous mission:

resume mission run-20260411-143022

The Orchestrator will load the previous state from run.json and continue.

Architecture

Agents

AgentModelRole
orchestratorheavy (skill)Tech Lead, PM, Interviewer. Main pi agent behavior via mission-orchestrator skill. Manages workflow and spawns subagents.
workerlight (subagent)Implementer. Executes tasks in isolated git worktrees. Spawned by orchestrator.
auditorlight (subagent)QA Reviewer. Verifies work against contracts with PASS/FAIL. Spawned by orchestrator.

Skills

SkillPurpose
mission-orchestratorPrimary orchestration skill representing the main pi agent behavior. Loaded first, routes between requirements, architecture, planning, execution, and closeout.
mission-researchDetailed requirements/interview workflow used by the orchestrator when requirements are missing or unclear.
mission-tech-leadDetailed architecture and validation workflow used by the orchestrator after requirements are approved.
mission-pmDetailed planning workflow used by the orchestrator to register phases/tasks.
mission-memoryCloseout and long-term memory distillation workflow.

Runtime Files

.pi/
├── agents/                      # Scaffolded subagent definitions
│   ├── worker.md
│   └── auditor.md
├── skills/                      # Scaffolded skill definitions
│   ├── mission-research/
│   ├── mission-tech-lead/
│   ├── mission-pm/
│   ├── mission-orchestrator/
│   └── mission-memory/
└── mission-control/
    ├── state.json               # Volatile: active_run_id, phase, status
    ├── memory/
    │   └── long_term.md         # Cross-run distilled knowledge
    └── runs/
        └── run-<timestamp>/
            ├── run.json         # Source of truth: phases, tasks, timestamps
            ├── 00-requirements.md
            ├── 01-architecture.md
            ├── 02-validation.md
            ├── short_term_memory.md
            └── tasks/
                └── <task-id>/
                    ├── contract.md
                    ├── worker-output.md
                    └── auditor-report.md

Development

Project Structure

pi-mission-control/
├── package.json              # Package manifest with pi configuration
├── tsconfig.json             # TypeScript configuration
├── src/
│   ├── index.ts              # Extension entry point
│   ├── state.ts              # State types and file helpers
│   ├── tools/                # Mission control tools
│   │   ├── scaffold.ts       # mission_scaffold (command-only)
│   │   ├── init.ts           # mission_init (command-only)
│   │   ├── add-phase.ts      # add_phase (agent tool)
│   │   ├── add-task.ts       # add_task (agent tool)
│   │   ├── update-phase.ts   # update_phase (agent tool)
│   │   ├── update-task.ts    # update_task (agent tool)
│   │   ├── mission-complete.ts
│   │   └── mission-resume.ts
│   └── tui/                  # TUI components (read-only observer)
│       ├── dashboard.ts
│       ├── header.ts
│       ├── phases-panel.ts
│       ├── tasks-panel.ts
│       ├── progress-bar.ts
│       ├── past-runs.ts
│       └── idle-view.ts
├── agents/                   # Worker/auditor templates (copied on scaffold)
├── skills/                   # Skill templates (copied on scaffold)
└── templates/
    └── state.json            # Initial state template

Scripts

npm run build      # Compile TypeScript to dist/
npm run dev        # Watch mode compilation
npm run typecheck  # Type-check without emitting

Testing Workflow

  • Make changes to source files in src/
  • Run npm run typecheck to validate TypeScript
  • Test with pi -e ./src/index.ts
  • Build with npm run build for production testing

Dependencies

Required Extensions

ExtensionRequiredPurpose
pi-subagentsRequiredSpawns Worker and Auditor subagents in isolated git worktrees
pi-ask-userRequiredStructured Q&A for user approvals, interviews, and ambiguity resolution

Peer Dependencies

These are provided by pi and should not be bundled:

  • @mariozechner/pi-agent-core
  • @mariozechner/pi-ai
  • @mariozechner/pi-coding-agent
  • @mariozechner/pi-tui
  • @sinclair/typebox

Dev Dependencies

  • typescript — TypeScript compiler
  • @types/node — Node.js type definitions

License

MIT

Keywords

pi-package

FAQs

Package last updated on 12 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts