can1357/oh-my-pi
A Bun/Rust terminal agent for model-flexible coding with LSP and editor integration
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Oh My Pi is a terminal-first fork of Pi. The omp CLI runs a TypeScript agent on Bun, backed by a Cargo workspace with Rust crates for editing, diffs, shell, version control, and virtual filesystems. Ripgrep, globbing, and shell builtins run in-process rather than launching a subprocess per call. Persistent Python and Bun execution workers can call back into agent tools over a loopback bridge, so code execution and tool use share the same tool interface.
The integration boundaries are distinct: LSP supplies language-aware operations; ACP lets Zed drive the agent through editor buffers, saves, and terminals; and project-level MCP definitions can be loaded from .claude/. A virtual path layer exposes sources such as pr://, issue://, and agent:// through ordinary file-shaped tools. Subagents use separate Git worktrees and return schema-validated objects, giving the parent structured results without relying on prose parsing.
Key Capabilities & Differentiators
OMP offers nine model roles, including default, plan, smol, and advisor, so planning, worker tasks, and independent review can use different models. /model changes the active model in-session, and ~/.omp/agent/models.yml accepts custom OpenAI-compatible endpoints. An advisor reads the main agent’s turns in a separate context. Cross-session memory is project-scoped by default and supports local, Hindsight, and Mnemopi backends.
On the write path, Hashline targets lines by content and rejects edits when anchors go stale; ast_edit stages a proposal for acceptance before writing. File renames can request reference updates through workspace/willRenameFiles. The agent also supports debugging workflows with LLDB, Delve, and debugpy. For change review, /review can inspect a branch, a commit, or uncommitted changes in parallel and rank findings from P0 through P3 with confidence scores.
Trade-offs & Limitations
Compared with an editor-first choice like Cursor, OMP is a better fit when the terminal is the primary interface and editor integration is needed at specific points. For a Claude Code team, support for CLAUDE.md and project .claude/ assets lowers migration friction, but it does not establish full workflow parity. OMP does not automatically import another tool’s home-directory configuration. Provider and role flexibility also means more settings to own: credentials, endpoints, model assignments, and context budgets.
Worktrees keep parallel edits apart during execution, but integrating overlapping changes still needs review. Concurrent workers and a turn-by-turn advisor can raise model consumption and local resource use. Local hosting gives teams control of the CLI and its state, not an automatic data boundary: model APIs, MCP servers, web tools, collaboration, and memory backends need separate review. The MIT license permits commercial use and modification, but does not cover the terms of external services.
Hardware & Deployment Guide
The prebuilt CLI is available for macOS, Linux, and Windows, with additional Homebrew, Bun, and Nix install paths. The Linux musl binary needs libstdc++ and libgcc on stock Alpine. The Cargo workspace declares Rust 1.101; the multi-stage Dockerfile pins Bun 1.4.5, builds the native .node module and Python omp_rpc wheel, and defaults to pi-runtime. The interactive container example binds the checkout at /work and runs cli. Keep persistent ~/.omp state separate from disposable containers if sessions and settings need to survive.
Self-hosting the CLI does not imply self-hosted inference. Hosted models require provider connectivity and authentication as applicable; a local OpenAI-compatible server is a separate deployment. For offline use, pair local inference and local memory with a tool set that avoids network-backed operations. Size the inference host for the chosen model, context length, and concurrency. Recent releases improved prompt-cache reuse for forked agents in v19.3.0, added model-specific tokenizers for more model families in v19.4.0, and fixed loss of earlier reasoning context and missed prompt-cache reuse during Codex remote compaction for GPT-6.2 in v19.4.1.
workspace/willRenameFiles can supply reference edits before files move.ast_edit stages changes for acceptance before writing them to disk.models.yml accepts custom OpenAI-compatible endpoints.pi-runtime is runnable, while pi-base bundles the native module, Python omp_rpc package, and CLI shim for derived images.Terminal-first engineering teams that want to choose model providers, integrate language-aware edits and debugging, and run parallel reviews with structured results.
Your team wants a single managed editor experience or needs a turnkey offline environment without separately operating inference and restricting network-backed tools.
Quick Start & Installation
curl -fsSL https://omp.sh/install | sh
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| oh-my-pi ★ | 40.5k | +483 | TypeScript | MIT | A Bun/Rust terminal agent for model-flexible coding with LSP and editor integrat |
| goose | 57.3k | +219 | Rust | Apache-2.0 | Rust coding agent with MCP tools and local or hosted models, embeddable via ACP |
| cline | 72.1k | +116 | TypeScript | Apache-2.0 | Shared coding-agent engine for IDEs and terminals, with pluggable models and MCP |
| openinterpreter | 69k | +65 | Rust | Apache-2.0 | A Rust coding CLI with swappable harnesses for low-cost models |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/can1357/oh-my-pi.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about oh-my-pi
Which integrations handle the editor, language tooling, and MCP?
workspace/willRenameFiles so language servers can supply reference updates. OMP can also read project-level MCP definitions from .claude/, but it does not automatically read another tool’s home-directory configuration.Does the CLI need a GPU, and how should I size the host?
Can we deploy or redistribute OMP commercially, and does self-hosting keep code private?
How should we evaluate OMP against Cursor and Claude Code?
CLAUDE.md and project .claude/ assets, but that is not a guarantee of full workflow parity or automatic migration of user settings.Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy