GitHarness: Git Init Your Harness Working Memory for Perpetual User Requirements

📅 2026-09-29
📈 Citations: 0
✨ Influential: 0
📄 PDF
🤖 AI Summary
This study addresses the challenge that LLM agents struggle to precisely respond to requirement changes and tend to retain outdated information during long-horizon tasks. To this end, we propose a Git-style dynamic requirement collaboration paradigm. This method constructs a branching version control framework to manage requirements and working memory, and pioneers an interface-level black-box reinforcement learning approach to train a Git Agent, enabling change parsing and locally efficient updates compatible with historical states. Experimental results demonstrate that the proposed method significantly improves task performance, requirement tracking accuracy, and valid work retention on the MTAgentBench benchmark.
📝 Abstract
LLM-based agents increasingly collaborate with users on long-horizon tasks, accumulating evidence, code, and drafts through extensive search, reasoning, and execution. As users inspect these results, they may supply missing information requirement completion, introduce new requirements requirement elicitation, or revise existing ones requirement shift. These changes often affect only part of the accumulated work, yet agents may carry forward obsolete information or turn local revisions into global rewrites. Existing approaches clarify current intent without determining how prior work should change, or reuse execution histories under a fixed objective. We address this gap by formulating dynamic-requirement collaboration as joint requirement tracking and local update. We introduce GitHarness, a pluggable Git-style framework that organizes requirement states and their corresponding harness work states into a branchable version history. A trainable Git Agent resolves requirement changes and selects a semantically compatible historical state. A unified version interface then restores that state and creates a new branch, enabling the underlying harness to exclude obsolete information, inherit compatible work, and focus execution on affected parts. The Git Agent is trained through interface-level black-box reinforcement learning, with downstream harnesses and task-execution models kept fixed. We also construct MTAgentBench, a verifier-preserving benchmark covering mathematical reasoning, text-to-SQL, agentic search, software engineering, and research synthesis. Experiments demonstrate strong task performance alongside effective requirement tracking, preservation of valid work, and efficient execution.
Problem

Research questions and friction points this paper is trying to address.

LLM-based agents
dynamic requirements
long-horizon tasks
requirement tracking
local update
Innovation

Methods, ideas, or system contributions that make the work stand out.

Git-style version control
Dynamic requirement tracking
Black-box reinforcement learning
Pluggable agent framework
Multi-task benchmark
🔎 Similar Papers
No similar papers found.
Z
Zhibang Yang
National Engineering Research Center of Software Engineering, Peking University, Beijing, China
X
Xinke Jiang
National Engineering Research Center of Software Engineering, Peking University, Beijing, China
Yuxuan Liu
Yuxuan Liu
Peking University
ReasoningAlignment
M
Mingyu Zhang
National Engineering Research Center of Software Engineering, Peking University, Beijing, China
Zhixin Zhang
Zhixin Zhang
Ph.D of Robotics, University of Manchester
SLAMVINSLIOSensor FusionRobotics
Z
Zhengxing Song
National Engineering Research Center of Software Engineering, Peking University, Beijing, China
Y
Yue Fang
National Engineering Research Center of Software Engineering, Peking University, Beijing, China
G
Guohong Qiu
National Engineering Research Center of Software Engineering, Peking University, Beijing, China
R
Ruiqing Li
National Engineering Research Center of Software Engineering, Peking University, Beijing, China
Xu Chu
Xu Chu
Peking University
Machine learningData mining
Junfeng Zhao
Junfeng Zhao
Assistant Professor at Arizona State University, Director of BELIV Lab
Connected & Automated VehicleMotion Planning & ControlsElectric VehiclesAI/ML
Y
Yasha Wang
Peking University Information Technology Institute (Tianjin Binhai), Tianjin, China