oh-my-pi: An Engineering-Grade AI Coding Tool That Runs 8 Agents in Parallel
Single-agent coding tools routinely corrupt files during multi-module refactoring, hallucinate fixes, and leave no audit trail. omp's multi-agent architecture with isolated workspaces, dual review, and structured JSON output turns AI-assisted refactoring from a gamble into an engineering process with traceable commits, rollback capability, and a measurable drop in hallucination rate.
Unlike single-agent conversational coding tools, omp routes every task through a main agent that decomposes requirements, assigns work to specialized sub-agents, and merges results. Each sub-agent operates in an isolated workspace, eliminating file conflicts during parallel execution. Sub-agents communicate via IRC-style messaging to handle task dependencies, and the system supports both serial pipelines and parallel fan-out workflows. A Swarm mode extends this to persistent, unattended DAG workflows embeddable in CI pipelines.
Hallucination reduction relies on a triple safety net: dual-layer code review by reviewer and oracle agents, real runtime debugging data via DAP protocol attachment, and LSP-based syntax verification. All sub-agent output is structured JSON — modified file lists, exported interfaces, elapsed time, and cost — so automated tooling can consume results directly without parsing natural language. Hash-anchored editing prevents the indentation corruption and silent overwrites common with single-agent tools.
omp ships as a single Rust binary with built-in ripgrep, persistent shell sessions, and a browser scraper. It supports 40+ model providers with automatic routing that sends lightweight tasks to cheap models and reserves expensive ones for core coding. The tool reads existing .cursor/rules and .clinerules files, includes 32 built-in tools for Git, web scraping, PDF parsing, and GitHub interaction, and runs natively on Windows, macOS, and Linux — including ARM64 on Raspberry Pi.
omp's architecture treats AI coding as an engineering discipline rather than a conversation: structured JSON output, isolated workspaces, dual review, and hash-anchored edits are mechanisms borrowed from build systems and CI pipelines, not chatbot UX patterns.
The single-entry-point design solves the accountability problem that plagues multi-agent systems — when the main agent alone dispatches and merges, there is no ambiguity about which agent owns a mistake.
Real debugging via DAP protocol attachment is a category difference from static analysis. Most AI coding tools guess at bugs; omp runs the code and inspects runtime state, which matters most for concurrency bugs, memory issues, and crash forensics.
The steep learning curve and terminal-native design position omp as a power tool for engineers doing large-scale refactoring, not a replacement for lightweight conversational coding assistants. The author's own workflow — small changes by hand, large refactors through omp — reflects this.
Hash-anchored editing that halts and asks for confirmation before overwriting manual changes is a safety feature that single-agent tools lack entirely, and it addresses one of the most common failure modes: silent destruction of work the developer did outside the tool.