Structured AI planning with cross-model critique — a native pi extension.
Gigaplan coordinates multiple AI agents through a rigorous planning loop:
- Clarify — Agent clarifies ambiguous intent
- Plan — Agent produces a concrete implementation plan
- Critique — Different agent independently raises flags
- Evaluate — Decision engine scores flags → CONTINUE/SKIP/ESCALATE/ABORT
- Integrate — Planner addresses flags, revises plan (loops back to critique)
- Gate — Preflight checks before execution
- Execute — Agent implements the approved plan
- Review — Agent validates against success criteria
Each step runs as an autonomous subagent in a visible cmux terminal pane. You can watch agents work in real-time.
pi install git:github.com/umgbhalla/pi-gigaplan/gigaplan build a rate limiter for the API endpoints
This will:
- Ask for robustness level (light/standard/thorough) and auto-approve preference
- Initialize a
.gigaplan/directory with plan artifacts - Enter gigaplan mode — orchestrating subagents through the full loop
- Pause at gate for your approval (unless auto-approve)
- Execute and review
For agent-driven startup, use gigaplan_init instead of trying to self-trigger /gigaplan through execute_command.
| Tool | Description |
|---|---|
gigaplan_init |
Initialize a plan directly, with optional orchestration follow-up |
gigaplan_doctor |
Validate plan state, repair common JSON/output issues, and return recovery handoff |
gigaplan_step |
Get subagent config for a step |
gigaplan_advance |
Process output and advance state machine |
gigaplan_status |
Show plan status |
gigaplan_override |
Manual intervention (add-note, abort, force-proceed, skip) |
All state lives in .gigaplan/plans/<plan-name>/:
.gigaplan/plans/rate-limiter/
├── state.json # Mutable plan state
├── faults.json # Flag registry
├── plan_v1.md # Versioned plan (markdown)
├── plan_v1.meta.json # Plan metadata (criteria, assumptions)
├── critique_v1.json # Critique flags
├── evaluation_v1.json # Decision engine output
├── gate.json # Gate preflight results
├── execution.json # Execution output
└── review.json # Review results
Robustness levels control how strict the critique is:
| Level | Behavior |
|---|---|
| light | Pragmatic. Only flags real failures. |
| standard | Balanced judgment. Significant risks flagged. |
| thorough | Exhaustive. Edge cases, performance, production concerns. |
Current limitation: robustness affects critique/evaluation strictness only. It does not currently tune subagent verbosity, token budget, or throughput.
If gigaplan_advance fails because an output file is missing, malformed, or wrapped in extra prose, run:
gigaplan_doctor({ fix: true })The doctor will:
- validate plan state and required artifacts
- repair common machine-parseable JSON output issues
- return the next-step subagent config so orchestration can resume cleanly