dorkestrator Guide: Structured Interview-Plan-Review-Orchestrate Workflows in Pi CLI
Run structured interview-plan-review-orchestrate workflows in Pi CLI with dorkestrator. Topological wave-based execution boosts task completion from 45% to 85%+.
Deepak Bagada
Founder & Editor-in-Chief
- Production-ready architecture blueprint and execution guide.
- Real-world benchmark metrics, time savings, and API integration steps.
- Verified implementation for AI founders, developers, and SaaS builders.
dorkestrator Guide: Structured Interview-Plan-Review-Orchestrate Workflows in Pi CLI
dorkestrator is a Pi extension that provides a structured lifecycle for multi-agent orchestration: Interview (structured Q&A to discover requirements), Plan (LLM generates a task dependency graph), Review (approve/modify/reject the plan), and Orchestrate (topologically sort tasks into waves and dispatch parallel subagents). It also supports YAML-defined swarm pipelines with three execution modes — pipeline, parallel, and sequential — plus a SharedContext key-value store and an event-sourced LifecycleEngine state machine. (Source: github.com/sandalsoft/dorkestrator)
The Real Problem
Multi-agent orchestration in Pi lacks structure. Without a defined lifecycle, the agent switches modes unpredictably — committing to implementation before research is complete. According to dorkestrator's development notes, ad-hoc multi-agent sessions fail to complete their goal 55% of the time because the agent lacks a structured process. A defined lifecycle constrains behavior: during interview it only asks questions, during planning it only designs, during orchestrate it only executes.
[ STAT ] 55% of ad-hoc multi-agent Pi sessions fail to complete their stated goal. — dorkestrator development notes, June 2026
What This Workflow Actually Does
dorkestrator enforces a four-phase lifecycle with structured outputs at each stage. The Conductor engine builds execution waves from the task DAG via topological sort.
[TOOL: Interview] Structured Q&A for requirements discovery. Produces a task dependency graph.
[TOOL: Conductor] Builds execution waves from task DAG. Tasks in same wave run in parallel.
[TOOL: Swarm Pipelines] YAML-defined multi-agent pipelines. Three modes: pipeline, parallel, sequential.
Who This Is Built For
For Pi CLI developers building complex multi-step automation: the interview→plan→review→orchestrate lifecycle guarantees a complete process without manual management.
For project managers using Pi for sprint planning: the Interview Q&A captures requirements systematically.
For teams running code review pipelines: define review workflows as YAML swarm pipelines and run with one /swarm run command.
How It Runs Step by Step
-
Interview: /interview [topic]. Structured Q&A captures requirements, constraints, tools, and acceptance criteria.
-
Plan: LLM generates a task dependency graph with dependency ordering and agent assignments.
-
Review: The user approves, modifies, or rejects the plan. Approved plans move to orchestration.
-
Orchestrate: The Conductor sorts tasks into waves. Wave 1 runs first. Wave 2 waits for Wave 1's dependencies.
-
Task Execution: Subagents dispatch for each wave. Results store in SharedContext under step.
.output.
Setup and Tools
dorkestrator: pi install git:github.com/sandalsoft/dorkestrator. Legend: may be deprecated soon as similar features enter Pi's core.
Standalone library: npm install @sandalsoft/dorkestrator. Core modules work without Pi.
The Numbers
▸ Task completion: 45% ad-hoc → 85%+ with structured lifecycle ▸ Edge case discovery: 0-30% ad-hoc → 70-90% with structured interview ▸ Plan revisions needed: 40% ad-hoc → under 10% interview-informed ▸ Task dependency management: manual → automated topological sort ▸ Time to first ROI: first lifecycle cycle completes a task ad-hoc sessions couldn't (Source: dorkestrator docs, June 2026)
What It Cannot Do
- May be deprecated soon as similar features enter Pi's core.
- Interview Q&A adds overhead for users who prefer stating requirements directly.
- YAML swarm pipelines need YAML knowledge — malformed YAML produces unclear errors.
Start in 10 Minutes
- (2 min) Install dorkestrator: pi install git:github.com/sandalsoft/dorkestrator
- (5 min) Run /interview to capture requirements for a task
- (3 min) Run /plan then /review then /orchestrate to complete the lifecycle
Frequently Asked Questions
Q: What happens if the Conductor encounters a task failure? A: The Conductor can retry (configurable) or halt depending on the failure policy. Results are stored in SharedContext for debugging.
Q: Can I use dorkestrator without Pi? A: Yes. The core modules (Conductor, SharedContext, LifecycleEngine, buildExecutionWaves) are available as a standalone TypeScript library on npm.
Q: What's the recommended migration path if dorkestrator is deprecated? A: pi-taskflow offers declarative DAGs with cross-session resume. pi-crew offers durable state and worktree isolation. Both are actively maintained alternatives.
Related Architecture & Implementation Resources
- Explore more production agent architectures in the Daily AI World AI Workflows Directory.
- Discover compatible tool interfaces in the Model Context Protocol (MCP) Directory.
- Track breaking model benchmarks and unit economics on Latest AI News.
Enjoyed this breakdown? Get our morning dispatch in your inbox.
Curated breakdowns of frontier model architectures and compute markets delivered every weekday. Zero fluff.
Deepak Bagada
Founder & Editor-in-Chief
Deepak Bagada is the founder and Editor-in-Chief of Daily AI World and CEO of SaaSNext. He covers enterprise AI architecture, high-concurrency agent workflows, Model Context Protocol tooling, and frontier AI systems engineering.
pi-taskflow Guide: Build Resumable DAG Workflows in Pi CLI with 18 Agents
Next Story →E-commerce Dynamic Pricing with Claude Fable 5 and n8n
Related Intelligence Analysis
Top 10 AI Automation Workflows for 2026: Production Architecture Guide
Explore the top 10 production AI automation workflows for 2026. From multi-agent support escalation and guarded SQL to self-healing CI/CD and GraphRAG.
AI Employee Onboarding Automation: A Complete HR Workflow Guide
Automate employee onboarding with AI. Handle 90% of tasks autonomously including account provisioning, equipment ordering, training assignment, and milestone tracking. Save 15 hours per hire.
Automating Meeting Notes to Action Items: The Complete Workflow
Automatically convert meeting transcripts into action items, assigned tasks, and follow-up reminders. Save 4 hours/week per person. Complete implementation workflow.