pi-ralph
pi-ralph is an extension for the coding agent pi that implements a multi-agent orchestration loop based on "hats" (roles). It lets the agent iterate between specialized roles such as Planner, Builder, and Reviewer until the task is complete. Each hat has its own instructions, trigger conditions, and events, and drives the workflow forward through an event protocol. The extension supports built-in presets, custom YAML workflows, PDD (Prompt-Driven Development) planning mode, session persistence, and history and loop popups, among other features, and includes guardrails such as a maximum number of iterations, a maximum runtime, and completion promises to prevent runaway loops. Note that this repository is deprecated and no longer maintained, and the official recommendation is to use the sub-agent example extension bundled with pi for multi-agent orchestration.