Enjoying this issue?
Get tomorrow's AI & engineering digest in your inbox — hand-picked, summarized, and always spam-free.
TLDR
Git Harness, a version-control layer for coding agents, cut token use from 4.90 million to 1.29 million in one code setup (73.6% fewer) while raising solve rates, by branching from an older compatible checkpoint instead of always continuing from the latest work or restarting. The ablation makes the mechanism convincing: forcing the agent to always build on the latest version dropped the code resolve rate from 74.0 to 44.0 and raised tokens to 4.51 million. It is an unreleased September 2026 preprint with an author-built benchmark, so treat the numbers as claims, but the underlying habit is already applicable with plain Git.
Key points
Git Harness beat the native baseline in all 30 tested settings: two models, three harnesses, five task types.
The paper's best token saving was 73.6%, from 4.90 million to 1.29 million tokens, on code with DeepSeek-V4-Flash.
Removing base-version selection dropped the code resolve rate from 74.0 to 44.0 and raised tokens to 4.51 million.
Math was the only domain where tokens rose, about 39% more, even though accuracy improved; the paper gives no explanation.
The authors have not released code or full prompts; the preprint says the implementation will be released later.
Tools mentioned
Techniques
- Branching agent work states by selecting an older compatible checkpoint as the base for new work (selective updating)
- ReAct loop (reason, call action, read result, repeat) for the Git agent's version selection
- Reinforcement learning with a judge model reward to train the base-version selector
- Three execution modes: exact reuse, reuse and patch, and fresh solve
- Append-only log compressed into a binary tree of one-line summaries (OptChat recipe)
- Zoom tool that expands compressed history lines on demand
Stop scrolling. Start reading smarter.
Receive the day's most important AI & engineering updates in one concise email. No spam.
Transcript (captions)
You change one requirement halfway through a coding task and your agent builds on stale work or redoes work that was fine. In one test, a method that fixes this cut token use from 4.90
million to 1.29 million and the agent solved more tasks. The paper calls the method Git Harness. It's version control for the agent's work. The paper's figure one shows two cases. In one, user
feedback changes the color of an umbrella. In the other, it removes a section of a report. The agent can keep building on the old version, so stale content stays in the result. Or it can
start over and it rewrites parts that were fine. Both choices cost tokens and you didn't pick either one on purpose. So, how does an agent know which older version is still safe to build on? Git
Harness is a paper and the authors have not released the code. The paper says, "We will release the implementation." So, later you'll see PyOptChat, a small community tool for the Py agent, and a
plain Git habit. The paper is archived 2609.36789 posted on the 29th of September 2026. Its abstract says Git Harness organizes requirement states and their
corresponding harness work states into a branchable version history. The harness is a software around the model that runs its tools and holds the work. A trainable Git agent then selects
compatible historical states. The paper's fix is selective updating. In the figure one caption, it limits changes to the affected work. The next beats show how the system does that.
Start with what the system saves. Each time your requirement changes, it saves a version. A version pairs two things: the effective requirement and a persistent checkpoint of the work done
for it. Suppose your first request makes version one. Then you change the umbrella color and that makes version two. Each node in the graph keeps its own requirement and its own work.
Nothing is overwritten. Now, suppose a new request goes back to the original color and adds a section. Version two holds the wrong color, so for this request, it's stale. Version one still
fits. Plain continuation would stack the new work on version two, so the wrong color would stay. A full restart would discard the good work in version one. The paper's root is a third option. It
branches from version one. This graph is literal. The paper really does use commits and branches. One thing differs from normal Git. A commit here holds a requirement state and a work checkpoint,
and not only code. Version one. A model called the Git agent picks it. It runs a react loop, which means it reasons, calls an action, reads the result, and repeats. When the loop ends, the Git
agent returns three outputs. First comes the resolved requirement, which is the full current request in one place. Second is the selected base version. The third is an update hint. The paper calls
it non-authoritative, and how the harness uses it is not documented. The Git agent has three actions. Inspect reads the requirement of a past version, and it decides nothing. Commit declares
the full current requirement and picks a base version. Reuse picks a version that already satisfies a requirement, so nothing more runs. Branching comes from the base choice. If the chosen base is
the current head, the commit extends the main path. If the base is any other version, the commit creates a branch. The paper calls branching a natural byproduct of base selection. Then the
harness runs one of three modes. The reuse action leads to exact reuse, which returns a past checkpoint with no execution when it already satisfies the requirement. Reuse and patch forks the
base checkpoint and applies targeted changes. Fresh solve starts from an empty workspace. In our example, reuse and patch fits. The harness forks version one and changes only the
affected work. In the paper's words, Git harness then restores the selected work state and creates a new branch. Version two stays in the graph. A new request arrives. The Git agent inspects old
versions, then commits the full requirement with the base. The harness then runs one of the three modes, and the new version holds the requirement and the resulting work. Reusing or
patching runs less work, which may explain the lower token counts. Math is the exception, as you'll see. One part of this explanation has a gap. The authors have not released the code
or the full prompts, so the Git agents exact inputs and the checkpoint format are undocumented. We can't say if a checkpoint is files, chat state, or both. The paper also trains the Git
agent with reinforcement learning, which rewards good choices. It trains only this chooser and 8 billion Queen 3 model, and the models that do the work stay fixed. One reward checks that the
final answer is correct, and a judge model scores a second one. The judge checks that the agent kept the full requirement, picked the best base, and left out stale versions. The numbers
below come from the main Git harness column. The paper also reports a variant called Git harness RL, and we don't cover it. The authors built a benchmark called MT-Agent-Bench.
It has five domains: math, SQL, search, code, and research. Each has a 100 task test set. Nine kinds of requirement change, grouped into three types, test the agent. The authors built the
benchmark with their own protocols and LLM assistance, so it's their own test. They tested two models, the 32 billion Queen 3 and DeepSeek-V4-Flash. They used three harnesses: TCRag, Stack
Planner, and OpenHands. Code means coding tasks. None of these tests used Claude code, Codex, or Cursor. The paper compares four baselines. Native keeps the conversation as it is. Restart
rebuilds the requirements each turn in a fresh workspace. U Fold keeps a running summary plus a tool log. GCC is a version controlled file system context. The paper tests 30 settings, two models
times three harnesses times five task types. Git harness beats native in all 30. It matches or beats the strongest competing baseline in 28. So, it did not win against every baseline in every
setting. On coding tasks with DeepSeek V4 Flash, the percent of tasks solved rises from 67 to 74 on Stack Planer. It rises from 64 to 72 on Open Hands, and from 56 to 62 on TCR Act. These are
native against Git Harness. The other model, the 32 billion Quen 3, shows larger code gains in points. It's three harness results go from 3 to 19, from 8 to 17, and from 7 to 16. The
starting scores are low, so these gains come from a weak base. Table 10 has the cost. For Stack Planer with DeepSeek V4 Flash, on code, native used about 4.90 million tokens, and the listed API cost
was $2.28. Git Harness used about 1.29 million tokens at $0.63. That's 73.6% fewer tokens in one setup. Three other task types saved less. SQL used 35.8% fewer
tokens, search used 54.5% fewer, and research used 36.7% fewer. So, the range there is about 36 to 55%. The 74% is the best case from one setup, and it's the authors' own. Math went the
other way. It's tokens rose from 43.13 thousand to 59.98 thousand, about 39% more, even though accuracy rose. The paper doesn't explain why. So, a saving is not guaranteed. The most useful test
is the ablation, where the authors remove one part and measure again. One variant is called without historical version selection. It fixes the current head as the base, instead of choosing an
earlier version. That's the always continue from the latest behavior. This ablation uses Stack Planer with DeepSeek V4 Flash. On code, the resolve rate falls from
74.0 to 44.0. Tokens rise from 1.29 million to 4.51 million. So, the agent did worse, and it used about 3.5 times as many tokens. The same variant hurts every domain. Math
falls from 94 to 84, and search falls from 58 to 42. SQL and research fall, too. The other ablations are on code only. Without inspect, the resolved rate is 42.0, and tokens are 4.22 million.
Without fresh solve, it's 72.0 and 1.03 million. The other two are on screen. Removing inspect hurts about as much as always using the latest version. 42.0 against 44.0.
That suggests reading old requirements before choosing matters. Removing fresh solve costs two points, but saves about 260,000 tokens. So, fresh solve spends tokens to gain accuracy. The authors
state their own limit. Get harness depends on accurate requirement interpretation and historical state selection, which can be challenging under ambiguous or conflicting feedback.
They add, "Restoring a compatible state also does not guarantee that the underlying agent preserves all unaffected work." The evidence supports one claim. In the
authors' own benchmark, in one setup, choosing the right older version beat always continuing from the latest one in all five domains. This is a September 2026 preprint.
Pi OptChat is a small community extension for the Pi agent. It had 237 stars on the 11th of October, 2026. It's an independent implementation of Victor Taelin's OptChat recipe, and it isn't
his official one. To install it, run pi install npm:pi-optchat. You need pi 1.0.2 or a compatible version, node 22.19 or newer, and git. The license is MIT. The
latest npm version is 0.8.3 from the 10th of October. Taelin's write-up describes the OptChat recipe. Every message goes into an append-only log. A cheap model compresses that log
into a binary tree of one-line summaries. Each turn, the main model sees a bounded view of the whole history. Recent messages show in fine detail, and older ones show in coarser
detail. A zoom tool with an ID and a number N expands a line. At N equals 1, it returns the full message. Taylan's line is the context has a constant size and nothing is ever lost. The readme
gives the view size in bytes instead of tokens. The view grows a line per message. Past 128,000 bytes, it merges in one batch down to 64,000. So, it swings between 64 and 128
kilobytes. And Taylan's recipe says it averages 96 kilobytes. Our rough estimate puts 128 kilobytes near 30,000 tokens. The original messages stay in the log, and the agent reads them with a
zoom and date tools. So, the agent doesn't see only 30,000 tokens of raw history. It sees a compressed view of all of it. Summary nodes are about 512 bytes each. Pi op
chat is a memory design. It does not branch or roll back work, and it has no benchmark for stale work or token savings. The readme says it works instead of compaction. A model still
writes the summaries, but the tool keeps every message, and you can zoom into any of them. Both ideas add structure instead of only adding room.
Taylan's tree gives structure to what the model remembers. Git harness gives structure to the work itself. The paper tests this for work, not for memory size. If you use other agents, Pi op
chat can import Claude code, Codex, Pi, and chat GPT history. It keeps your messages and the final assistant replies with their original dates and source labels. It drops tool calls,
intermediate outputs, and reasoning. The profile store is itself Git versioned. It has no remote backup, so back it up yourself if you care about that history. The plain Git habit copies the paper's
two ideas in the simplest form. This habit is our advice, and the paper didn't measure it. Save the requirement with the work, Then restart from the right version. When a requirement
changes, commit the work. Write the full current requirement in the commit message. That pairs a requirement with a checkpoint, as the paper does with each version.
If a new request contradicts earlier work, find the last commit that still fits. Create a branch from that commit. Keep the old branch because the paper also keeps old commits in the graph.
Then start a fresh agent session on that branch. Paste the full current requirement into the first message, and not only the change. This copies the paper's commit action. Do not continue
the old messy chat. With this habit, you do the Git agent's job by hand. You must decide which commit still fits. The ablation shows that this choice matters. So check each
candidate commit carefully. If you pick a commit with stale work, that work comes back. My verdict, in the paper's ablation, going back to the right older version worked better than always
continuing from the latest one. If your requirements keep changing in long sessions, start with the Git habit today. If you use Pi and want long chats to keep their history, try Pi opt chat.
If you plan to use Git harness, wait for the code. The ablation shows that skipping the choice cost a lot. The authors also warn that choosing is hard when feedback is ambiguous or
conflicting. Would you let an agent pick which old version to roll back to?