GitHarness treats agent memory like a Git repository
Versioning requirement-to-work pairs solves the common failure where agents redo everything after one changed detail. Builders of agents that take iterative user feedback can adopt commit-and-branch memory to cut token costs and preserve valid work. The 73.6% token reduction on coding tasks gives a concrete benchmark to compare against your own agent's continuation baseline.
GitHarness is a technique that stores each agent requirement together with its matching work, structured like Git commits and branches.
When a user changes a requirement mid-task, the agent branches from the closest still-valid version instead of carrying stale work forward or restarting.
It beat plain continuation in all 30 tested settings.In one setup, it used 73.
6% fewer tokens on coding tasks while scoring higher.
Treating agent memory like a Git repo, with commits and branches, lets agents drop outdated requirements and keep the work that is still valid.
Agents handle mid-task changes from users better when they save versions of their work and resume from the right one, so build that versioning into any agent that takes feedback.
Users rarely give a full spec upfront. They add, fix, or drop requirements as results come in. Most agents then carry stale work forward or redo everything.
GitHarness stores each requirement with its matching work, like Git commits, and branches from the closest valid version. It beat plain continuation in all 30 tested settings. In 1 setup, it used 73.6% fewer tokens on coding tasks while scoring higher.
When a user changes 1 detail, go back to the version that still fits and redo only what changed.
This report is categorized under AITOP's "Papers" desk. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include GitHarness, agents, prompt engineering.
Source attribution: curated from rohanpaul_ai (@rohanpaul_ai).