oh-my-pi: a coding agent with deep LSP and DAP integration and precision hash-based editing

oh-my-pi: a coding agent with deep LSP and DAP integration and precision hash-based editing

What it solves

Oh-my-pi (omp) is a high-capability coding agent designed to bridge the gap between LLMs and the actual development environment. It solves the "harness problem" where agents often struggle with imprecise file edits, lack of deep IDE integration, and limited runtime capabilities, leading to failed edits or excessive token waste.

How it works

Built with a Rust core, omp integrates directly with development tools rather than relying on simple shell scripts. It uses a specialized "hashline" system for content-hash based edits to ensure precision and reduce token usage. The agent is wired into Language Server Protocol (LSP) for IDE-level code intelligence and the Debug Adapter Protocol (DAP) to drive real debuggers (like lldb, dlv, and debugpy). It also features a persistent execution environment with Python and Bun workers that can call back into the agent's own tools.

Who it’s for

Developers who need a powerful, terminal-based or editor-integrated (via Zed) coding agent that can perform complex refactors, debug native binaries, manage GitHub PRs, and coordinate multiple subagents for large tasks.

Highlights

  • Deep IDE Integration: Full LSP support for renames and navigation, and DAP support for stepping through code and inspecting variables.
  • Advanced Toolset: 32 built-in tools including structural rewrites via ast_edit, a native browser for web interaction, and web_search across 18 providers.
  • Agentic Coordination: Ability to spawn typed subagents for parallel work and a separate "advisor" model to review turns in real-time.
  • Precision Editing: Uses content-hash anchors (Hashline) to prevent whitespace battles and reduce output tokens.
  • Broad Model Support: Compatible with 40+ providers, including frontier APIs, subscription coding plans (Cursor, Copilot), and local runners (Ollama, vLLM).
  • Hindsight Memory: A project-scoped memory bank that allows the agent to retain and recall facts across different sessions.

Sources