Everything Is a Commit: git-harness, a Git-Native Coding Agent Harness
Abstract
Production coding agent harnesses routinely reinvent five subsets of version control: session trees, file snapshots, context compaction, subagent worktrees, and memory folders. Because these subsystems live in separate logs and mutable directories, rewinding files desynchronizes conversation history and rewriting prefixes invalidates KV-caches. We present git-harness, an open-source, zero-dependency coding agent harness that builds directly on Git's object model and plumbing. Every turn, workspace snapshot, offloaded tool output, and subagent branch becomes an immutable Git object in an isolated namespace, so the host repository stays untouched. This single store provides atomic conversation-and-code rewind, append-only prompt prefixes, exact recall of compacted history, and single-file Git bundle reproducibility. On the 89-task Terminal-Bench v2.1 sweep, git-harness matches Pi ( vs.\ , ), runs at vs.\ median duration, and lowers mean API cost by (\$0.238 vs.\ \$0.282; median \$0.150 vs.\ \$0.141). It adds only median Git overhead and exports valid forensic bundles on all 89 runs. Across 240 cross-harness trials spanning four frontier models, git-harness remains competitive (up to on Opus 5.5 with the updated runtime) with zero Anthropic timeouts and shows where harness designs differ in cost, latency, and failure modes. Code is available at https://github.com/HJSang/git-harness.
Create a lesson
Related papers
Evaluating Code Slop in Long-Horizon Coding Agents
Shared title terminologycs.SEShubham Gandhi, Shyam Agarwal, Nachiket Kotalwar et al.
ReleaseSynth: Scaling Data from Software Evolution for Long-Horizon Coding Agents
Shared title terminologycs.SEMan Ho Lam, Chaozheng Wang, Zongjie Li et al.
Proceeding After Seeing: When Coding Agents Act on Users' False Claims About the Code
Shared title terminologycs.SEYi Sun
MergeReady-Bench: Evaluating and Improving Coding Agents Beyond Test Passing
Shared title terminologycs.SEPriyatham Kattakinda, Wenxiao Wang, Soheil Feizi
Context Clash: Prevalence and Limits of Lightweight Detectors for Cross-Tool Coding-Agent Instruction Conflicts
Shared title terminologycs.SEAditi Patodiya
Information Needs in Code Review: What Can an Agent's Trajectory Answer?
Shared title terminologycs.SEHannah Estes, Saba Khanmohammadi, Amirali Rayegan et al.