can1357 /oh-my-pi

⌥ Coding agent with the IDE wired in. Built by Stencil Labs.

★ 39,108⑂ 4,474👁 96⑃ 10,970● 7,308▤ 693
TypeScriptMITCreated 2025-12-31omp.sh
下载:v18.20.2v18.20.2 ↓18.20.22026-11-14
+85
日增长
+767
周增长
39,108
stars
4,474
forks
96
watchers
10,970
prs
7,308
issues
693
releases

README

一个内置 IDE 能力的编程智能体。
  omp.sh



  Language: English | 简体中文



  
  
  
  
  
  
  
  



  由 Stencil Labs 打造 · 派生自 @mariozechner 的 Pi


目前能力最强的编程智能体。在真实使用中持续打磨——开箱即用,从里到外完全开放。

60+ 个模型提供商 · 31 个内置工具 · 14 种 LSP 操作 · 28 种 DAP 操作 · 约 8 万行 Rust 核心代码。

 [!NOTE]
 Pull Request 目前临时向所有人开放,作为一次试行。此前我们要求 PR 必须先获得担保(vouch)才会被接受;在评估开放贡献效果期间,这一要求暂时取消。视结果而定,担保机制可能会恢复。

 安装

macOS · Linux

sh
curl -fsSL https://omp.sh/install | sh


安装脚本会从 build.stencil.so 下载预编译二进制,并在安装前校验其 SHA-256;如需改用 bun 安装软件包,请传入 --source(PowerShell:-Source)。可通过 curl -fsSL https://omp.sh/install | sh -s -- --binary --ref v 固定某个版本(PowerShell:-Binary -Ref v)。

 Alpine / musl: 预编译的 musl 二进制动态链接 libstdc++/libgcc,而原生 Alpine 并不自带。请先安装:apk add libstdc++ libgcc。

Homebrew

sh
brew install can1357/tap/omp


Bun(推荐)

sh
bun install -g @oh-my-pi/pi-coding-agent


Nix

sh
 Run without installing
nix run github:can1357/oh-my-pi

 Or install into the active profile (Nix .omp、overlays.default、nixosModules.default 或 homeManagerModules.default。Home Manager 配置可以安装 OMP 并以声明式方式管理其设置:

nix
{
  inputs.omp.url = "github:can1357/oh-my-pi";

   In your Home Manager module:
  imports = [ inputs.omp.homeManagerModules.default ];
  programs.omp = {
    enable = true;
    settings.startup.quiet = true;
  };
}


Windows(PowerShell)

powershell
irm https://omp.sh/install.ps1 | iex


固定版本(mise)

sh
mise use -g github:can1357/oh-my-pi


macOS · Linux · Windows · bun ≥ 1.4.4

 Shell 补全

omp 会根据实时的命令/参数元数据,为 bash、zsh 和 fish 生成自己的补全脚本,因此永远不会与实际 CLI 脱节。子命令、参数和枚举值是静态补全的;模型名(--model、--smol、--slow、--plan)会根据内置模型目录解析,--resume 则根据磁盘上的会话解析。

sh
 zsh — add to ~/.zshrc (or write the output into a file on your $fpath)
eval "$(omp completions zsh)"

 bash — add to ~/.bashrc
eval "$(omp completions bash)"

 fish
omp completions fish  ~/.config/fish/completions/omp.fish


 每个工具,都 _调校到极致_。

编辑一次成功。读取时给出文件摘要,而不是把整个文件倒出来。搜索即时返回。无论选哪个模型,omp 都能让它把事做好。

| 模型             | 指标         | 说明                                                 |
| ---------------- | ------------ | ---------------------------------------------------- |
| Grok Code Fast 1 | 6.7% → 68.3% | 编辑格式不再拖垮模型的那一刻,成功率提升十倍。       |
| Gemini 3 Flash   | +5 pp        | 优于 str_replace——超过了 Google 自己在该格式上的最佳成绩。 |
| Grok 4 Fast      | −61% tokens  | 不再因错误 diff 反复重试,输出量大幅下降。           |
| MiniMax          | 2.1×         | 通过率翻倍有余。同样的权重,同样的提示词。           |

- read:摘要片段 · 合理的默认值 · 选择器命中率
- grep:快到没有对手
- lsp:IDE 知道的一切,智能体都知道
- prompts:针对每个模型持续调整

阅读完整文章 ↗

 你 _喜爱_ 的 Pi,如今全副武装。

omp 最初基于 Mario Zechner 出色的 Pi 构建,补齐了你所缺少的一切。

 01 · 可调用工具的代码执行

大多数智能体框架给智能体一个 Python 沙箱就算完事。我们运行持久化的 Python 和 Bun worker,而且两个内核都能通过本地回环桥接回调智能体自己的工具——read、search、task。智能体可以在 Python 里用 tool.read 加载 CSV,再用 JavaScript 绘图,全程不离开同一个单元格。

!omp TUI 运行 Python 代码并渲染图表。

 02 · 每次写入都接入 LSP

要求重命名,得到的就是真正的重命名。调用会走 workspace/willRenameFiles,因此在文件移动之前,重导出、barrel 文件和带别名的导入都会先被更新。IDE 知道的一切,智能体都知道。

!启用了 TypeScript 和 Biome 语言服务器的 omp TUI。

_阅读 LSP 配置文档_

 03 · 驱动真正的调试器

C 程序段错误:智能体挂上 lldb,单步到出错的指针,读取栈帧。Go 服务卡死:挂上 dlv,逐个查看 goroutine。Pytho

Top issues

Discussions

Latest release

v18.20.2 v18.20.2 2026-11-14
@oh-my-pi/pi-ai

 Added

- Added the Antigravity CLI ACP provider with managed installation, Google sign-in, refreshable distributed credentials, host tools, and retained conversations across tool steps and history changes.

 @oh-my-pi/pi-catalog

 Added

- Added Antigravity CLI models for Gemini, Claude and GPT-OSS with selectable native thinking levels.

 @oh-my-pi/pi-coding-agent

 Added

- Added the antigravity-cli provider for Google Antigravity over ACP, with managed binary installation, /login antigravity-cli Google sign-in, host tool execution, and retained conversations across tool st

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON