AI Coding Workflows · Part 3

Oh My Pi (omp.sh): A Quick Look at the Hardened Coding Agent CLI

A deep-dive tour of Oh My Pi (omp.sh) — examining 'The Harness Problem', why edit tools swing model pass rates by up to 10×, built-in Hashline patching, AST refactoring, visual Snapcompact, and how it compares to OpenCode, Claude Code, and Cursor.

23 min read Updated Oct 30, 2026
Oh My Pi (omp.sh): A Quick Look at the Hardened Coding Agent CLI

Most developers evaluate coding agents by comparing frontier models: Claude Opus 5.5 vs GPT-6 Astra vs Gemini 4 Argon (names as listed on each vendor’s model page on October 30, 2026). That framing assumes model weights are the sole variable dictating coding performance.

Assign an agent to a large brownfield codebase, however, and you quickly discover the real chokepoint: the execution harness.

When an agent fails to resolve an issue, it is rarely because it lacked the intelligence to diagnose the bug. More often, it fails at the mechanical interface: fuzzy diffs drift, whitespace mismatches break string replacements, compiler logs blow out context windows, and concurrent subagents clash over shared files.

Can Bölük (creator of oh-my-pi) put it this way in The Harness Problem: blaming the model for these failures is like “blaming the pilot for the landing gear.” Optimizing the edit tool alone can swing model pass rates by up to 10× with zero training compute. The best case was Grok Code Fast 1, from 6.7% to 68.3%.

To solve this execution bottleneck, Oh My Pi (omp.sh) is a hardened, high-performance CLI harness. It started as a fork of Mario Zechner’s minimalist pi-mono. Today omp combines native Rust execution, deterministic Hashline patching, AST structural refactoring, and multi-agent coordination without vendor lock-in.

This article is a deep-dive tour of Oh My Pi. It covers the core thesis behind The Harness Problem, the 16-model benchmark results, and 4 built-in architectural differentiators. It also explains why open harnesses beat proprietary walled gardens and how omp compares directly to OpenCode, Claude Code, Cursor Agent, and Pi.dev.

Updated October 30, 2026. omp is now at v18.14.0 (October 29, 2026) and ships on a near-daily cadence, with 670+ releases in the repo. What changed since the August tour: the Bun requirement is now ≥ 1.4.4. Manual compactions emit manual_compaction_start / manual_compaction_end session events for RPC hosts. A new retry.rateLimitWalksChain setting can walk the model fallback chain on a 429 instead of retrying a throttled model. Sessions can be renamed from the resume picker. v18.14.0 also made provider-qualified model selectors exact: a near match now fails with an error instead of silently picking a sibling model, so use exact model IDs (the config below does). The project now describes itself as “a coding agent with the IDE wired in” (60+ providers, 31 built-in tools, LSP/DAP operations, ~80k lines of Rust core). The model names in this article were also refreshed against each vendor’s model page on October 30, 2026. None of that changes the thesis below: the harness is still the bottleneck. Pin a version before quoting any feature list, including this one.


TL;DR

  • The Harness Problem: The coding agent bottleneck is often not model intelligence, but the interface between model tokens and workspace mutations. Improving the edit tool format alone swings success rates by up to 10× (6.7% → 68.3% on Grok Code Fast 1) and cuts output tokens by up to 61% (Grok 4 Fast).
  • What Oh My Pi Is: A high-speed, open-source terminal coding harness built on Bun and Rust native bindings (@oh-my-pi/pi-natives). It pairs multi-model portability with deterministic execution guardrails.
  • The 4 Competing Edit Tool Paradigms:
    1. Codex apply_patch: OpenAI-flavored diff blobs, which the post infers are biased at the API gateway. Grok 4 and GLM-4.7 had patch failure rates of 50.7% and 46.2%.
    2. Claude Code str_replace: Exact character/whitespace matching; prone to “string not found” error fatigue.
    3. Cursor Instant Apply: Dedicated 70B fine-tuned apply model that rewrites the whole file instead of emitting diffs (Cursor’s May 2024 post).
    4. Oh My Pi Hashline ([PATH#TAG]): Content-hashed anchors (a 4-hex snapshot tag per file read) with Optimistic Concurrency Control (OCC); zero whitespace recall needed.
  • 4 Key Built-In Differentiators:
    1. Deterministic Hashline Patching: Checksum-tagged line anchors prevent silent offset drift across multi-file edits.
    2. Native AST-Grep Staging: Language-aware syntax tree refactoring staged in memory before touching disk.
    3. Snapcompact Visual Compaction: Compresses long transcripts by rendering historical turns into 1-bit bitmap PNGs for multimodal vision models.
    4. The Agent Hub: A live TUI dashboard (Alt+A) and peer-to-peer IRC broker for concurrent subagent swarms, with opt-in copy-on-write sandboxes.
  • Open Harnesses vs Walled Gardens: The post argues that proprietary vendors (Anthropic, Google) will never optimize their CLI harnesses for competitor models. An open-source harness can serve as a neutral bridge and cross-model R&D layer for the entire AI ecosystem.
  • Velocity warning (October 2026): Oh My Pi now ships almost daily (v18.14.0, October 29, 2026; Bun ≥ 1.4.4 for the Bun install path). The architecture below is stable; any specific tool count, model ID, or config key should be re-verified against the release you install.

What You Will Learn Here

  • Why model benchmarks miss the primary source of agent failure in production.
  • How the 4 main code editing paradigms (apply_patch, str_replace, 70B merge models, and Hashline) compare mechanically.
  • The quantitative results of the React Edit Benchmark across 16 LLMs and 3 edit formats.
  • How omp.sh implements Hashline patching, AST-grep staging, and visual context compaction.
  • How the Model Roles architecture decouples logical tasks from concrete model providers.
  • A feature-by-feature comparison matrix against Claude Code, OpenCode, Cursor, and Pi.dev.

What is Oh My Pi? (The 30-Second Tour)

At its core, Oh My Pi (omp.sh) is a developer-centric CLI engine designed to execute long-horizon coding tasks safely.

flowchart TB
    subgraph UserInterface ["Terminal Layer (Bun Runtime)"]
        CLI["omp CLI & Interactive TUI"]
        HubHUD["Agent Hub HUD (Alt+A)"]
        Router["Model Tier Router (Opus, GPT, Gemini)"]
    end

    subgraph HardenedCore ["Hardened Engine (@oh-my-pi/pi-natives)"]
        Hashline["Hashline Snapshot Tagging Engine"]
        AST["ast-grep & Tree-Sitter Modding Core"]
        Compact["Multi-Tier Compaction (Snapcompact & Shake)"]
        PAL["Platform Abstraction Layer (APFS CoW / OverlayFS)"]
        Mnemopi["Mnemopi Episodic Memory (SQLite-Vec)"]
    end

    UserInterface --> HardenedCore

omp executes its core operations through compiled Rust N-API bindings rather than interpreted scripts. This provides sub-millisecond workspace scanning, syntax-aware code parsing, and fast checksum calculations.


The Harness Problem: Why Model Benchmarks Miss the Real Bottleneck

In AI engineering, discourse is dominated by leaderboard battles between frontier models. Yet when you trace agent failures in realistic brownfield repos, the breakdown rarely occurs in high-level reasoning.

Instead, the failure happens in the harness: the tool schemas, edit formats, error messages, and state reconciliation layers that translate model thoughts into filesystem writes.

flowchart LR
    A["Industry Obsession<br><b>'Which Model is Best?'</b><br>(Opus vs GPT vs Gemini)"] -.->|Misses the Real Chokepoint| B["The Execution Harness<br><b>Tool Schemas & Edit Anchors</b><br>(Where most agent failures occur)"]
    B --> C["The Finding<br><b>'Blaming the pilot for the landing gear'</b><br>Models understand the task but fail at diff syntax"]

The 4 Edit Tool Paradigms

How does an LLM communicate a change to a file? Today’s developer tools take four distinct architectural approaches:

flowchart TD
    subgraph Paradigms ["Code Modification Approaches in 2026"]
        P1["1. apply_patch (Codex)<br>OpenAI diff blob with gateway token bias"]
        P2["2. str_replace (Claude Code)<br>Exact string match; zero whitespace tolerance"]
        P3["3. Dedicated 70B Model (Cursor)<br>Fine-tuned model trained solely to merge diffs"]
        P4["4. Hashline [PATH#TAG] (Oh My Pi)<br>Content-hashed line anchors + Optimistic Concurrency"]
    end
ParadigmPrimary ToolsHow It WorksPrimary Failure Mode
apply_patchOpenAI CodexLLM outputs a unified diff string following strict structural formatting rules.Gateway Bias (the post’s inference): In the benchmark, Grok 4 and GLM-4.7 had patch failure rates of 50.7% and 46.2%.
str_replaceClaude Code, Gemini CLILLM outputs the exact old text chunk and the new text chunk.Whitespace Drift: A single missed space or indentation error triggers “String not found” failures.
Dedicated ModelCursor (Instant Apply)A fine-tuned 70B neural network inspects draft edits and merges them into the file.Second Model in the Loop: Every edit depends on a separate merge model; Cursor’s own post has it rewrite the whole file instead of emitting diffs.
Hashline ([PATH#TAG])Oh My Pi (omp.sh)Every file read returns a 4-hex snapshot tag; edits cite that tag plus line numbers. (The benchmark’s first version tagged each line with a 2–3 character hash.)Stale View (Safe): If the file changed, tag mismatch triggers fast rejection before corruption.

Why Naive Edit Tools Break in Practice

  1. The Exact-Recall Trap (str_replace): To replace 5 lines of code, the model must reproduce every single character, indentation space, and newline perfectly. In large files, minor whitespace drift causes the dreaded “String to replace not found in file” error (Claude Code Issue #3471 + 27 related issues).
  2. Proprietary Gateway Bias (apply_patch): The post infers that OpenAI’s Codex models are “almost certainly” biased at the API gateway to fit the apply_patch structure. Give that same format to Grok 4 or GLM-4.7, and patch failure rates in the benchmark hit 50.7% and 46.2%. The models understand the code; they simply don’t speak OpenAI’s diff dialect.
  3. Academic Confirmation: The JetBrains Diff-XYZ benchmark found that the best diff format depends on the use case and model size. EDIT-Bench found that only 1 of the 40 LLMs it evaluated scores over 60% on real-world instructed edits.

4 Built-In Features That Make omp.sh Different

flowchart TD
    subgraph HardeningPillars ["Oh My Pi Hardening Architecture"]
        F1["1. Deterministic Hashline Patching<br>Line-level checksums + OCC rejection"]
        F2["2. Native AST-Grep Staging<br>In-memory syntax tree refactoring"]
        F3["3. Visual Snapcompact<br>1-bit bitmap PNG transcript compaction"]
        F4["4. Supervised Agent Hub<br>CoW sandboxes + peer IRC messaging"]
    end

1. Deterministic Hashline Patching ([PATH#TAG])

Rather than forcing the model to reproduce verbatim code or guess shifting line numbers, Oh My Pi tags every read file view with a 4-hex checksum fingerprint:

[src/auth/session.ts#4F1A]
1:export interface SessionConfig {
2:    ttlMs: number;
3:    jwtSecret: string;
4:}
5:
6:export function createSession(config: SessionConfig) {
7:    return new SessionStore(config);
8:}

When modifying code, the agent targets the snapshot tag using syntactic block operators:

[src/auth/session.ts#4F1A]
PUT 6*:
+export function createSession(config: SessionConfig, logger?: Logger) {
+    if (logger) logger.info("Initializing session store");
+    return new SessionStore(config);
+}
  • PUT N*: replaces the entire AST node (function, class, interface) starting on line N, resolved automatically by Tree-sitter.
  • Optimistic Concurrency Control (OCC): If another process or subagent modifies session.ts, the file tag changes (for example, to #9B2E). When the agent submits an edit against #4F1A, the engine instantly rejects the patch, stopping silent code collisions before disk writes occur.
sequenceDiagram
    autonumber
    actor LLM as Coding Agent
    participant Harness as Oh My Pi Harness
    participant FS as Local Filesystem

    LLM->>Harness: Read src/auth/session.ts
    Harness-->>LLM: Returns content with fingerprint [session.ts#4F1A]
    Note over LLM,FS: Background process updates session.ts (tag becomes #9B2E)
    LLM->>Harness: PUT 6*: [session.ts#4F1A] (New implementation)
    Harness->>Harness: Verify current tag (#9B2E) == Request tag (#4F1A)
    Harness-->>LLM: ERROR: Tag mismatch. File modified since last read. Re-read required.
    Note over LLM,FS: Code corruption prevented! Agent re-reads fresh state and succeeds.

The React Edit Benchmark Results

To measure the impact of edit tool design, Can Bölük ran the React Edit Benchmark (since renamed typescript-edit-benchmark in the repo). It covers 16 models and 3 edit formats (apply_patch, str_replace, and hashline). Each model got 3 runs per task and 180 tasks per run, in fresh sessions on mutated React source files. Five of the 16 models, with figures read from the post’s chart (hashline v1 vs apply_patch):

ModelPatch Pass RateHashline Pass RateNet ImprovementOutput Token Change
Grok Code Fast 16.7%68.3%+61.6 pp (10× jump)-49%
GPT-5.1 Codex Mini57.2%60.0%+2.8 pp (+20.3 pp with Hashline v2: 77.5%)n/a
Gemini 3 Flash73.3%78.3%+5.0 pp-21%
MiniMax M2.123.3%55.0%+31.7 pp (2.4× jump)-42%
Grok 4 Fast28.9%43.3%+14.4 pp-61% (fewer retry loops)

The post describes per-line 2–3 character hashes, while omp’s edit docs now describe a 4-hex snapshot tag per file read. Treat these numbers as evidence for the anchor approach, not a measurement of today’s tag format (an editorial reading, not a claim from the post).

Key Takeaways from the Data:

  1. Hashline beat patch in 14 out of 16 models, and Hashline v2 improved scores further in 12 of 16 models.
  2. Weaker models gained the most: Grok Code Fast 1 jumped from 6.7% to 68.3% because its actual coding capability was previously masked behind mechanical edit failures.
  3. Massive Token Reductions: Grok 4 Fast output tokens dropped by 61% because the agent stopped burning context in endless “patch failed, re-reading file” retry loops.
  4. Zero Compute Cost: Gemini 3 Flash went from 73.3% to 78.3% (+5.0 pp, beating Google’s best attempt by 5.0 pp), and to 81.3% (+8.0 pp) with the v2 revision. The post reports zero model retraining and about $300 in benchmark API spend.

2. Native AST-Grep Staging (ast_edit)

For multi-file refactoring, regex search-and-replace is notoriously dangerous. Oh My Pi includes native structural AST transformations via ast_edit:

sequenceDiagram
    autonumber
    actor Agent as Coding Agent
    participant Rust as Rust AST Engine (ast-grep)
    participant Staging as Memory Staging Buffer
    participant FS as Local Filesystem

    Agent->>Rust: Send AST Pattern (e.g. async function $F($$$ARGS))
    Rust->>Rust: Parse CST & Match Structural Nodes
    Rust->>Staging: Stage Proposed Diff
    Staging-->>Agent: Preview Structured Diff [PATH#TAG]
    alt Apply Verified Edit
        Agent->>FS: write xd://resolve
        FS-->>Agent: Atomic Disk Commit Applied
    else Discard
        Agent->>Staging: write xd://reject
        Staging-->>Agent: Staging Buffer Discarded
    end

AST edits match syntax nodes rather than whitespace or characters. As a result, comments, formatting, and adjacent methods remain intact.


3. Visual Context Compaction (Snapcompact & Shake)

When a coding session runs for hours, managing token usage is critical. Oh My Pi uses a multi-tier compaction pipeline:

  1. Shake (Local Elision): Instead of calling a summarization model, shake swaps eligible tool results and large fenced/XML blocks for recoverable artifact:// references. A protected window of recent tokens stays intact. If needed, the agent retrieves slices on demand via read(path="artifact://12:500-550").
  2. Snapcompact (Visual Compression): For vision-capable models, older turns render into 1-bit monochrome PNG bitmaps in bundled pixel fonts (for example 11on16-bw for Anthropic readers). The project ships tuned frame shapes for Claude, Gemini, and GPT readers. The multimodal model reads past context directly from the image. The project’s own 200k-token evals found this preserved question-answering recall at a lower billed-token cost than raw text.

4. The Agent Hub & Isolated Swarms

To parallelize work without risking your working directory, Oh My Pi provides the Agent Hub:

flowchart TB
    Main["Coordinator Agent<br><code>task(tasks=[{AuthMigrator}, {DbAuditor}])</code>"]

    subgraph Swarms ["Supervised Subagent Fleet"]
        Auth["Subagent: AuthMigrator<br>(Role: task)"]
        Db["Subagent: DbAuditor<br>(Role: scout)"]
    end

    subgraph Sandboxes ["Platform Abstraction Layer (PAL)"]
        S1["APFS Copy-on-Write Clone #1"]
        S2["OverlayFS Mount #2"]
    end

    Main --> Swarms
    Auth --> S1
    Db --> S2
    Auth <-->|Peer-to-Peer IRC Messaging| Db
  • Workspace Virtualization: With task.isolation.enabled on, a task that sets isolated: true gets its own checkout. That means APFS copy-on-write clones on macOS, OverlayFS mounts on Linux, and other backends elsewhere. Each isolated task gets its sandbox in <10ms.
  • Peer-to-Peer IRC: Subagents communicate directly over structured messages (write to agent://DbAuditor) without bloating the main conversation transcript.
  • TUI Dashboard: Pressing Alt+A opens the live Agent Hub HUD. You can monitor subagent progress, read live transcripts, steer a worker, or kill a stuck one without aborting the parent session.

Vendor Walled Gardens vs The Open Harness Moat

In early 2026, Anthropic blocked OpenCode from accessing Claude through Claude Code subscriptions, saying OpenCode had reverse-engineered a private API. Around the same time, Google disabled Can Bölük’s own Gemini account while he ran the benchmark. Both events are as reported in The Harness Problem.

The post reads these actions as a push toward vendor-locked developer tools: “Don’t build harnesses. Use ours.”

flowchart LR
    subgraph WalledGardens ["Proprietary Single-Vendor CLIs"]
        Anthropic["Claude Code<br>(Anthropic only)"]
        OpenAI["Codex CLI<br>(OpenAI only)"]
        Google["Gemini Code<br>(Google only)"]
    end

    subgraph OpenBridge ["The Open Harness Moat (omp.sh)"]
        OMP["Oh My Pi Harness<br><b>Neutral Cross-Model Bridge</b>"]
    end

    WalledGardens -.->|Will never optimize for competitors| OMP
    OMP --> SharedRD["Shared Ecosystem R&D<br>Tuned for all models simultaneously"]

Why Closed Harnesses Limit Developer Velocity

  1. No Vendor Optimizes for Competitors: The post’s argument: Anthropic will never tune Claude Code’s edit schemas for Grok. OpenAI will never optimize its patch tooling for Claude. xAI will never tune for Gemini.
  2. Open Harnesses Provide Free Ecosystem R&D: An open-source harness can tune an edit tool (like Hashline) and lift Gemini 3 Flash by 8 points or Grok Code Fast 1 by 10×. That is free optimization for the model creators.
  3. The Harness as the Bridge: As Can Bölük noted: “The model is the moat. The harness is the bridge. Burning bridges just means fewer people bother to cross.”

By keeping the harness open, modular, and model-agnostic, omp ensures developers are never held hostage by any single vendor’s CLI limitations.


How Model Roles Work: Decoupling Architecture from Endpoints

One of the cleanest design choices in Oh My Pi is its Model Roles system (omp.sh/docs/roles).

Most coding agents force you to either hardcode model strings (like cursor/composer-2.5-fast) across all configurations, or lock you into a single vendor. Oh My Pi decouples the functional role a model plays from the concrete provider endpoint serving it.

flowchart LR
    UserPrompt["Agent Workflow Step"] --> Roles

    subgraph Roles ["Logical Model Roles"]
        Default["@default<br>Primary coding & edits"]
        Slow["@slow<br>Complex reasoning & architecture"]
        Smol["@smol<br>Fast scouting & log processing"]
        Tiny["@tiny<br>Session titles & memory indexing"]
        Reviewer["@reviewer<br>Adversarial security audit"]
    end

    subgraph Providers ["Configured Provider Endpoints"]
        Composer["Composer 2.5 Fast"]
        Opus["Claude Opus 5.5:high"]
        Gemini["Gemini 3.8 Flash:minimal"]
        Local["Local Llama / Ollama"]
        GPT["GPT-6.1 Sol"]
    end

    Default --> Composer
    Slow --> Opus
    Smol --> Gemini
    Tiny --> Local
    Reviewer --> GPT

The Standard Role Roster

RolePurposeInvocation / CLI FlagRecommended Mapping
defaultMain conversational loop, standard code edits, and tool responses.Primary CLI workhorsecursor/composer-2.5-fast
slowArchitectural planning, deep refactoring, and complex root-cause synthesis.--slow or --model slowanthropic/claude-opus-5-5 or openai/gpt-6-astra
smolFast directory sweeps, git archaeology, and log triage.--smol and subagent scoutsgoogle/gemini-3.8-flash or anthropic/claude-haiku-5-5
tinyZero-latency local tasks: session titles, memory indexing, stop detection.Built-in background loopsLocal quantized model or gemini-flash
planStructural blueprint generation in read-only plan mode.--plananthropic/claude-opus-5-5
reviewerAdversarial critic, auth review, and acceptance validation (a custom role you define; not one of omp’s built-in chat roles).Subagent reviewer personaopenai/gpt-6.1-sol
advisorPassive watchdog daemon providing turn-by-turn verification notes.Background watchdog runtime@smol or @default

Key Economic Optimizations

  1. Role Aliases & Thinking Modifiers: Roles can point at other roles (for example @smol) and take a thinking-level suffix. You can pin effort directly to a role in config.yml (e.g. slow: "anthropic/claude-opus-5-5:high").
  2. Prewalk Cost Handoff (--prewalk, off by default): With --prewalk, omp starts on your active model and builds a plan and todo list. Set prewalk.from: "@slow" to plan on the slow role. When the first code edit or file write lands, the engine hands off to @smol (override with --prewalk-into), saving up to 70–80% on inference bills during mechanical implementation.
  3. Context Promotion: If a small-context model hits a length limit, omp can switch to a larger-context model you configured (contextPromotionTarget in the model metadata). That happens before it falls back to compaction. It does not pick a larger sibling on its own.

Production Use Case: Pareto-Tiered Roles in CI/CD Swarms

In our earlier breakdown of building ultra-fast agent platforms on Kubernetes with ArgoCD and Ante, we analyzed the 2026 Speed-vs-Quality Pareto Frontier. The core finding was clear. Sending every agent task to a heavy frontier model adds severe latency to loops that a fast model could finish in seconds.

Oh My Pi’s role system allows you to configure an optimal multi-provider Pareto pipeline in config.yml:

flowchart TD
    Webhook[Git Push / Jira Webhook] --> Pod[Ephemeral Kubernetes KEDA Job]
    
    subgraph SwarmPipeline ["Oh My Pi Pareto Execution Pipeline"]
        Scout["1. Fast Triage & Archaeology<br><b>@smol (Gemini 3.8 Flash)</b><br>Runs git log, directory sweeps & log parsing"]
        Plan["2. Architectural Decomposition<br><b>@slow (Claude Opus 5.5:max)</b><br>Emits test contract & plan with --prewalk"]
        Exec["3. Deterministic Implementation<br><b>@default (Composer 2.5 Fast)</b><br>Applies Hashline [PATH#TAG] edits in APFS sandbox"]
        Review["4. Orthogonal Security Gate<br><b>@reviewer (GPT-6.1 Sol)</b><br>Adversarial review to eliminate single-model cognitive blind spots"]
    end

    Pod --> Scout
    Scout --> Plan
    Plan --> Exec
    Exec --> Review
    Review --> PR[Green PR Opened with Verified CI Tests]
  1. High-Throughput Exploration (@smol → Gemini 3.8 Flash): Gemini Flash performs broad codebase sweeps and test log triage in seconds without burning expensive tokens. In the July–August 2026 speed data cited in the Ante article, its predecessor Gemini 3.7 Flash generated 362 tok/s; that data has no figure for 3.8 Flash.
  2. Deep Architectural Synthesis (@slow → Claude Opus 5.5): Reserved for plan mode (--plan), root-cause analysis, and defining failing test specifications.
  3. Surgical Implementation (@default → Composer 2.5 Fast): The primary coding loop that writes code against the snapshot-anchored hashline contract.
  4. Orthogonal Adversarial Review (@reviewer → GPT-6.1 Sol): When an executor model reviews its own output, it shares the same cognitive blind spots. Routing final PR validation to an independent model family (OpenAI GPT-6.1 Sol) catches edge-case logic bugs before code merges.

How omp.sh Compares to the Competition

DimensionOh My Pi (omp.sh)OpenCodeClaude CodeCursor AgentPi.dev (Minimal Core)
Runtime CoreBun + Rust N-API (@oh-my-pi/pi-natives)TypeScript / Node.jsNode.js CLIElectron / C++ CoreNode.js (pi-mono)
Code ModificationHashline Tags ([PATH#TAG]) + AST-GrepExact string edit + apply_patchstr_replaceInstant Apply (70B Model)Line Range / Whole File
Edit Failure HandlingOCC Tag Verification (Zero Whitespace Recall)Patch Re-try Loops”String Not Found” ErrorsNeural Merge DriftTruncation / Overwrite
Context StrategySnapcompact (Visual PNG) + ShakeText SummarizationDynamic TruncationVector Sliding WindowManual /compact Summary
Subagent ModelBounded Swarms with PAL SandboxesSub-processesNative Sub-agentsCloud Background AgentsSingle-threaded CLI
Model FreedomUniversal (60+ providers)Universal (75+ providers)Claude models onlyMulti-Model (Hosted)Universal (pi-ai)
Daemon SupervisionBuilt-in named bash services with ready checksShell backgrounding (&)Approval-gated ShellVS Code TasksBare bash tool
Long-Term MemoryMnemopi (local SQLite; opt-in multi-voice RRF recall)Local vector cacheProvider Memory StoreShadow WorkspaceNone (Stateless)

A 2-Minute Quickstart: Configuration and Multi-Model Routing

Install omp (the bun install path needs Bun ≥ 1.4.4; without a usable Bun, the install script fetches a prebuilt binary; checked against v18.14.0):

curl -fsSL https://omp.sh/install | sh
# or
bun install -g @oh-my-pi/pi-coding-agent

Configure your model tiers in ~/.omp/agent/config.yml:

# ~/.omp/agent/config.yml
modelRoles:
  default: "cursor/composer-2.5-fast"
  slow: "anthropic/claude-opus-5-5:high"  # Architectural planning
  smol: "google/gemini-3.8-flash"         # Fast scouting
  reviewer: "openai/gpt-6.1-sol"          # Adversarial code review (custom role)

task:
  batch: true
  maxConcurrency: 8
  isolation:
    enabled: true # let tasks opt in with isolated: true

isolation:
  backend: "auto" # APFS on macOS, OverlayFS on Linux

compaction:
  enabled: true
  methodOrder: ["remote", "snapcompact", "handoff", "shake", "soft"]
  asyncEnabled: true

memory:
  backend: "mnemopi"

mnemopi:
  scoping: "per-project"
  autoRecall: true
  autoRetain: true

Launch a refactoring task from your terminal:

omp "Refactor user authentication to support Passkeys/WebAuthn and update DB schema"

Inside the session, omp loads project memory and can run isolated subagent tasks in APFS copy-on-write sandboxes. Scouts run on Gemini Flash, and AST edits are previewed before they touch disk.


When to Choose Oh My Pi

flowchart TD
    Start{What is your primary development workflow?}
    Start -- "IDE / GUI Pair Programming" --> Cursor[Choose Cursor Agent]
    Start -- "Anthropic-Only Terminal Coding" --> Claude[Choose Claude Code]
    Start -- "Multi-Model Hardened Monorepo CLI" --> Omp[Choose Oh My Pi<br><b>omp.sh</b>]
    Start -- "Build Custom Agent from Scratch" --> Pi[Choose Pi.dev]

Choose Oh My Pi (omp.sh) When:

  • You work on large brownfield monorepos where str_replace whitespace drift or fuzzy patch matching causes silent code breakages.
  • You want multi-model routing without locking yourself into a single AI provider’s CLI walled garden.
  • You run long autonomous tasks that need visual context compaction (Snapcompact) that preserves accuracy without ballooning token costs.
  • You want supervised subagent swarms that execute concurrently in isolated, copy-on-write sandboxes.

Sources

Rechecked on October 30, 2026:

  1. Oh My Pi releases: can1357/oh-my-pi, Releases and CHANGELOG: v18.14.0 (October 29, 2026; exact provider-qualified model selectors) and v18.13.3 (October 28, 2026: Bun ≥ 1.4.4, manual-compaction events, retry.rateLimitWalksChain, session renaming); and the repo README (“coding agent with the IDE wired in”, 60+ providers, 31 built-in tools).
  2. The Harness Problem: Can Bölük, We improved 15 LLMs at coding in one afternoon. Only the harness changed., stencil.so/blog/the-harness-problem (February 12, 2026). The per-model pass rates in the benchmark table are read from the chart on that page.
  3. React Edit Benchmark: Can Bölük, packages/react-edit-benchmark in can1357/oh-my-pi, pinned at the last commit before it was renamed to typescript-edit-benchmark (2026).
  4. Diff-XYZ Benchmark: Glukhov et al., JetBrains Research, Diff-XYZ: A Benchmark for Evaluating Diff Understanding, arXiv:2510.12487 (2025).
  5. EDIT-Bench: Chi et al., EDIT-Bench: Evaluating LLM Abilities to Perform Real-World Instructed Code Edits, arXiv:2511.04486 (2025).
  6. Aider Leaderboard & Edit Format Benchmarks: Paul Gauthier, Aider LLM Code Editing Benchmarks and Format Evaluations, aider.chat/docs/benchmarks.html (2024–2026).
  7. Cursor Instant Apply: Aman Sanger, Editing Files at 1000 Tokens per Second, cursor.com/blog/instant-apply (May 14, 2024).
  8. Oh My Pi documentation: can1357/oh-my-pi, README, settings, edit tool, compaction, task tool, prewalk, and omp.sh (checked October 30, 2026).
  9. Pi Minimal Harness: Mario Zechner, pi-mono: A Minimal Terminal Coding Agent Harness, github.com/badlogic/pi-mono (2025–2026).
  10. AST-Grep Tooling: Herrington Darkholme, ast-grep: Fast Polyglot Code Structural Search and Replace, ast-grep.github.io (2025).
  11. Tree-sitter Incremental Parser: Max Brunsfeld et al., Tree-sitter Parser System, tree-sitter.github.io (2025).
  12. Claude Code: Anthropic, Model configuration (October 30, 2026).
  13. OpenCode: Providers and Tools documentation (October 30, 2026).
  14. Reciprocal Rank Fusion: Cormack, Clarke, and Buettcher, Reciprocal Rank Fusion in Information Retrieval, SIGIR (2009).
  15. Vendor model pages (October 30, 2026): Anthropic, Models overview; OpenAI, Models; Google, Gemini API models and the Gemini 3.7 Flash deprecation notice; Cursor, Models & pricing.