oh-my-pi,也是一个终端 AI 编程Agent 地址:github.com/can1357/oh-my-pi比较有意思的是支持Hashline来方便模型编辑代码 -- 今天antirez也提了这个思路。可以大幅提升一些编程能力较弱的模型如grok的代码编辑能力。
其他特性:Code execution w/ tool-calling:omp 提供持久化 Python 和 Bun 执行环境,并允许代码运行时调用 agent 自己的 read、search、task 等工具。LSP wired into every write:每次写入都接入 LSP,因此 rename、移动文件、更新引用等操作能像 IDE 一样处理相关代码。Drives a real debugger:omp 可以直接驱动 lldb、dlv、debugpy 等 debugger,而不是只靠插入 print 来排查问题。Time-traveling stream rules:当模型输出触发规则时,系统会中断当前生成、注入提醒并从原位置重试,减少每轮都携带规则的上下文成本。First-class subagents:任务可以分发给隔离 worktree 中的多个 subagent,并返回经过 schema 校验的结构化结果。Read a PDF on arXiv, why not?:web_search 可以把网页、arXiv PDF、GitHub 页面和 Stack Overflow 内容交给 read,统一转成带来源的结构化 markdown。Unapologetically native. Even on Windows.:omp 把 grep、glob、find、bash 等能力做成进程内原生实现,并支持 macOS、Linux、Windows。Code review with priorities and a verdict:/review 会用 reviewer subagents 并行审查改动,按 P0 到 P3 标注问题并给出是否可发布的判断。Hashline: edit by content hash:模型通过内容 hash anchor 指定要改的行,减少重复输入旧文本,并能在文件过期时拒绝错误 patch。GitHub is just another filesystem:GitHub issue、PR、搜索等被抽象成同一种 filesystem 接口,模型只需要学会 read 这类统一操作。Hindsight: memory the agent curates:agent 会在项目范围内保存和召回 codebase 相关记忆,并把 session 压缩成下次可用的上下文。ACP: editor-drivable agent:omp 可以在 Zed 等编辑器里运行,直接读取当前 buffer、通过编辑器写入文件并使用编辑器 terminal。Inherits what your other tools already wrote:它能直接读取 Cursor、Cline、Codex、Copilot 等已有配置格式,不要求团队迁移配置。omp commit: atomic splits, validated messages:omp commit 会分析 working tree,把无关改动划分为按依赖排序的 atomic commits,并生成经过校验的 commit message。Read PRs. Walk skills. Pull JSON out of subagents.:pr://、issue://、agent://、skill:// 等内部 scheme 都能被统一的文件式工具读取和搜索。Conflict resolution, made easy.:merge conflict 会被表示成 conflict://N,agent 可以通过写入 或 来完成解决。Preview, then accept.:ast_edit 先返回 proposed 变更和 replacement count,确认后才原子化写入磁盘。Drives a real browser. Or your Slack?:browser tool 默认模拟正常用户环境,也可以驱动 Electron app,比如像读网页一样读取 Slack。
AI创造营
