Event ·Official first-hand

git-harness:把会话、快照、记忆全部变成 Git 提交的编程 Agent 框架

git-harness 是一个开源、零依赖的 coding agent harness,直接构建在 Git 的对象模型和 plumbing 之上,代码发布在 GitHub(HJSang/git-harness)。它把每一轮对话、工作区快照、卸载的工具输出和子 Agent 分支都变成隔离命名空间中的不可变 Git 对象,宿主仓库不受影响。 现有 harness 通常用独立日志和可变目录分别实现会话树、文件快照、上下文压缩、子 Agent worktree 和记忆文件夹,导致回滚文件时对话历史失同步、重写前缀使 KV-cache 失效。git-harness 用单一存储实现原子化的对话与代码回滚、只增不改的 prompt 前缀、被压缩历史的精确召回,以及单文件 Git bundle 级别的可复现性。 基准方面,在 Terminal-Bench v2.1 的 89 个任务上,git-harness 与 Pi 打平(79/89 对 76/89,p=0.549),中位耗时 68.5s 对 72.9s,平均 API 成本降低 16%($0.238 对 $0.282),Git 开销仅 0.55%,89 次运行全部导出有效取证 bundle。跨 240 次、四款前沿模型的测试中,Opus 5.5 上最高拿到 14/15,且零 Anthropic 超时。

Current read

开源的 Git 原生 Agent 框架,回滚对话和代码就是一次 git checkout,还能导出 bundle 完整复现一次运行。跟 Pi 在 Terminal-Bench 上打平但成本便宜 16%,做 Agent harness 的开发者可以直接抄它的设计。

11 sources49° AI heatLast updated 2026/11/30 03:57:19

Evidence

11 sources
Primary sourcearXiv: Anthropic
View source
Related source 4claudedevs
View source
Related source 6Gergely Orosz
View source
Related source 7Yuchen Jin
View source
Related source 9Tibor Blaho
View source
Related source 10shao__meng
View source

Conflict check

Dedup data only shows that these sources discuss the same event, not that they agree. There is no structured supporting or refuting evidence yet, so no conflict is inferred automatically.