omp 自称 "A coding agent with the IDE wired in":Pi(badlogic/pi-mono)的激进 fork,命令行外壳里塞进了 LSP、真调试器、AST 编辑与持久化代码执行内核,号称 "the most capable agent surface that ships"。核心能力围绕Advisor模型、Hashline编辑展开。

| 项目 | 内容 |
|---|---|
| 仓库 | can1357/oh-my-pi |
| 语言 / 许可证 | TypeScript / MIT |
| 总星标 | ⭐ 27633 |
| 本月净增星标 | +7894 |
| 榜单 | GitHub 官方月度趋势榜 第24名 |
omp 自称 "A coding agent with the IDE wired in":Pi(badlogic/pi-mono)的激进 fork,命令行外壳里塞进了 LSP、真调试器、AST 编辑与持久化代码执行内核,号称 "the most capable agent surface that ships"。
当各家 Agent 还在"bash + 文件读写"的工具面上内卷时,oh-my-pi 直接把 IDE 的三大件——语言服务(14 LSP ops)、调试器(28 DAP ops,lldb/dlv/debugpy)、重构(经 `workspace/willRenameFiles` 同步 barrel files)——内置为 agent 工具,让模型第一次能"看见"类型错误与符号引用而非盲改文本。60+ provider、31 个内置工具与约 80k 行 Rust 原生层的堆料配置击中了重度用户;"complete out of the box, open all the way down" 的全开源承诺又接住了被闭源订阅劝退的群体,单月近 8000 星证明"给 Agent 装 IDE"是真实爽点。
TS 主体 + 约 80k 行 Rust native layer(六个 crates:pi-shell、pi-natives 等),跑在 Bun 上。IDE 集成走 ACP(Agent Client Protocol)over JSON-RPC 可驻留 Zed 等编辑器;写操作统一经 `session/request_permission` 权限门控。monorepo 含 pi-agent-core、pi-tui、hashline 等 17 个包。
macOS/Linux/Windows,Bun ≥ 1.3.14:
curl -fsSL https://omp.sh/install | sh # macOS/Linux
brew install can1357/tap/omp # Homebrew
irm https://omp.sh/install.ps1 | iex # Windows
Nix 用户可 `nix run github:can1357/oh-my-pi`。
omp # TUI 交互
omp -p "..." # one-shot
RPC 模式发送 NDJSON:`{"id":"r1","type":"prompt","message":"list .ts files"}`。SDK 中用 `createAgentSession({ sessionManager, authStorage, modelRegistry })` 后调 `session.prompt()` 即嵌入自有应用。
对比 Claude Code / Codex CLI:provider 锁定少、工具面更宽(LSP+DAP),但社区规模尚小;对比 Cursor/Gemini CLI 等闭源 GUI 方案:omp MIT 全开源、"open all the way down"。在"terminal agent 军备竞赛"中它选择做加法之王。
安装脚本 omp.sh、上游项目 badlogic/pi-mono、THIRD-PARTY-NOTICES.txt 列出 vendored 组件许可。