Pizx is a zx fork that brings native Pi AI integration to shell scripting. It adds 15 template tags to the
zx toolkit — you get the full power of shell commands ($, cd, echo, fetch) plus AI text generation, coding
agents, and agentic patterns, all as template literals.
The tags cover the full spectrum:
• π — AI text generation (think: const answer = await πexplain this error)
• Π — coding agent with file/browser tools (await Πfix the TypeScript errors in src/)
• Ρ — Ralph Loop: iterative self-correcting improvement (analyze → plan → execute → review ↺)
• Φ — Fleet: parallel task execution with concurrency control
• Σ — Subagents: hierarchical task decomposition
• Δ — Debate: multi-perspective decision making with rebuttals
• Λ — Pipeline: sequential stages like Unix pipes (await Λextract → transform → load)
• Ψ — Critique: generate → critique → improve content quality
• Ω — Orchestrator: plan → dispatch → synthesize for complex multi-step work
• Θ — Thread: multi-agent conversations
• Μ — Shared Memory: parallel writes to a shared blackboard
• Β — Broadcast: one-to-many with manager synthesis
• Α — Adaptive: self-adjusting workflow that changes based on quality
• Γ — Graph: DAG-based execution with topological sort and parallel batches
• Ν — Nu: self-organizing teams that auto-negotiate roles
• Χ — Chi: cross-agent learning from execution traces
• Τ — Tau: tool-mediated shared key-value store orchestration
All patterns support per-phase model routing (plannerModel vs workerModel), option chaining, and .quiet
mode. Works as both a CLI runner and a programmatic import.
Built on top of zx (for shell), pi-ai (for LLM calls), and pi-coding-agent (for tool use). MIT licensed.
Docs with full options and examples: https://github.com/topce/pizx/tree/main/docs
nice! i actually created zx)