can1357/oh-my-pi

⌥ AI Coding agent for the terminal — hash-anchored edits, optimized tool harness, LSP, Python, browser, subagents, and more

What it solves

Oh-my-pi (omp) is a high-capability coding agent that integrates deeply with the IDE and system tools to eliminate the friction typically found in AI coding assistants. It solves the "harness problem" where agents are limited by poor file editing formats, lack of real-time IDE intelligence, and isolated sandboxes, allowing for more accurate edits and complex system-level tasks.

How it works

Built on a Rust core, omp operates as a CLI tool that can be wired into editors like Zed. It uses a specialized editing format called "Hashline" (editing by content hash) to reduce token usage and prevent whitespace errors. It integrates directly with Language Server Protocol (LSP) and Debug Adapter Protocol (DAP) to give the agent the same intelligence as a human developer. The agent can spawn parallel subagents for complex tasks, use a persistent Python/JavaScript execution environment, and manage long-term memory via a "Hindsight" bank.

Who it’s for

Developers who need an AI agent capable of performing complex refactors, debugging native binaries, and managing entire repositories without the typical "hallucinations" or failures associated with simple text-replacement edits.

Highlights

  • IDE Integration: Direct access to LSP for renames and navigation, and DAP for driving real debuggers (lldb, dlv, debugpy).
  • Advanced Editing: Uses Hashline for precise, token-efficient edits and ast_edit for structural rewrites via ast-grep.
  • Agentic Orchestration: Supports first-class subagents for parallel work and a separate "advisor" model to review turns in real-time.
  • Deep Tooling: 32 built-in tools including a stealth browser, web search, GitHub integration, and native implementations of ripgrep and glob.
  • Cross-Platform: Native performance on macOS, Linux, and Windows without requiring WSL.
  • Collaborative: Live session sharing via links and QR codes for pair programming with an agent.