Git Context Controller: Manage the Context of Agents by Agentic Git
Junde Wu, Minhao Hu, Jiayuan Zhu, Shengda Zhu, Jiazhen Pan, Fenglin Liu, Yuyuan Liu, Min Xu, Yueming Jin
NeurIPS 2026
TL;DR. The proposed framework turns LLM agent memory into a Git-style versioned workspace, enabling structured long-horizon reasoning and state-of-the-art performance on SWE-Bench and BrowseComp.
Abstract. Large language model (LLM) agents have demonstrated strong capabilities in long-horizon tasks by interleaving reasoning with tool use. However, as these agents scale to complex workflows such as software engineering and open-ended research, context management becomes a fundamental bottleneck: interaction histories grow unbounded, become costly to maintain, and are difficult to reuse across sessions and agents. We introduce \textbf{Git-Context-Controller (GCC)}, a structured context management framework inspired by software version control systems. GCC elevates agent context from a transient token stream to a persistent, navigable memory workspace with explicit operations---\texttt{COMMIT}, \texttt{BRANCH}, \texttt{MERGE}, and \texttt{CONTEXT}, that enable milestone-based checkpointing, isolated exploration of alternative reasoning paths, and hierarchical retrieval of historical context. By organizing agent memory as a versioned file system, GCC allows agents to manage long-term goals, recover and transfer reasoning across sessions, and coordinate multi-trajectory problem solving in a principled manner. Empirically, agents equipped with GCC achieve state-of-the-art performance on both SWE-Bench and BrowseComp benchmarks. On SWE-Bench Verified, GCC improves task resolution by over 13% relative to strong long-context baselines and outperforms 26 existing open and commercial systems, reaching over 80% success rate. The project will be open-sourced for the research community.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:45 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This paper introduces Git-Context-Controller (GCC), a Git-inspired context management framework that equips long-horizon LLM agents with structured COMMIT, BRANCH, MERGE, and CONTEXT operations. The empirical results are strong across multiple models and benchmarks, and the rebuttal further addresses key concerns around reproducibility, statistical significance, failure cases, and implementation details.
Final justification
My meta-review already includes my updated justification after considering the author response.
Read meta-review
Meta-review
This paper introduces Git-Context-Controller (GCC), a Git-inspired context management framework that equips long-horizon LLM agents with structured COMMIT, BRANCH, MERGE, and CONTEXT operations. The empirical results are strong across multiple models and benchmarks, and the rebuttal further addresses key concerns around reproducibility, statistical significance, failure cases, and implementation details.
Final justification
My meta-review already includes my updated justification after considering the author response.
- Rating
- 3/6
- Confidence
- 4/5
- Quality
- 2/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper addresses the context management bottleneck in large language model (LLM) agents during long-horizon tasks by proposing Git-Context-Controller (GCC). GCC elevates transient token streams into a persistent, navigable directory structure and equips agents with three operations—COMMIT, BRANCH, MERGE, and CONTEXT. GCC enables various LLM backbones to achieve state-of-the-art performance, notably reaching an 80.2% resolution rate on the SWE-Bench Verified benchmark and outperforming numerous existing open-source and commercial systems.
Strengths and weaknesses
Strengths
-
Intuitive and Well-Motivated Design: The conceptual framework of leveraging version control system operations to manage agent memory is highly intuitive and makes practical sense. It provides a natural topological structure for managing reasoning trajectories in long-horizon tasks.
-
Thorough Empirical Validation: The experimental evaluation is commendable and comprehensive. The authors conducted extensive tests across a wide variety of contemporary LLMs, providing robust evidence of the framework's effectiveness across different backbones.
Weakness
-
While the system is practically useful, the methodological contribution leans heavily towards software engineering. The core capability of GCC's context management still fundamentally relies on the base LLM's inherent context-processing abilities.
-
Furthermore, utilizing Git-like structures for LLM memory is not a strictly novel concept; several open-source repositories on GitHub have already explored similar paradigms. While this work would be a highly appreciated open-source repository, a NeurIPS publication requires deeper architectural innovations, theoretical reflections, or academic insights that extend beyond an engineering wrapper.
-
The proposed framework exhibits a strong dependency on the base LLM's native CLI and tool-use capabilities, and the system's performance may be sensitive to prompt engineering. The authors should consider incorporating methods like RL to intrinsically enhance the model's tool-use and memory-management capabilities
-
Although GCC effectively mitigates the unbounded growth of raw conversational history, it seemingly introduces a new bottleneck. For highly complex or extraordinarily long tasks, the global state files (main.md and metadata.yaml) will inevitably continue to grow, potentially becoming overwhelmingly noisy.
-
As a novel memory management paradigm, it is crucial to understand whether GCC introduces new, framework-specific failure modes. A detailed taxonomy of why the agent still fails in certain scenarios would significantly strengthen the paper's completeness and provide valuable insights for future research.
Questions
Please answer the question in Weakness.
Limitations
There is no limitation chapter in the article.
The contributions of this work are heavily engineering-focused. Thus, maintaining the open-source release effectively will be crucial.
Final justification
After carefully reading the authors’ response, I still believe that if this were presented as a strong open-source project, I would greatly appreciate it; however, as an academic paper, it still has room for improvement.
-
Some of the authors’ statements seem overly absolute to me, such as: “Every agent framework depends on the base LLM, but this does not make the framework ineffective,” “No method can keep the required information fixed as project complexity grows without losing relevant details,” and “practical system design is already an established form of methodological contribution in LLM-agent research.” I still believe that, beyond its engineering contributions, GCC could further strengthen its academic contribution.
-
The authors did not address the comparison with open-source GitHub projects. To the best of my recollection, I have seen projects that use Git-like ideas to manage LLM memory. Even if the authors find through further investigation that no such project exists, or that those projects are clearly different from this paper, I would still encourage them to provide a comparison to further support their claims.
Finally, I sincerely thank the authors for their response, but after careful consideration, I would still maintain my score of 3.
Formatting concerns
There are almost no figures in the paper, and the author may consider adding some figures to enhance readability.
2 comments
Dear Reviewer nxYM,
Thank you again for your detailed and constructive review. With the discussion period nearing its end, we would like to gently follow up and invite you to review our rebuttal when convenient. In our rebuttal, we clarify the methodological contribution of GCC, provide additional evidence that its gains are not simply inherited from the underlying LLM, explain why the framework is independent of a particular CLI or training strategy, and discuss its current limitations together with representative failure cases and planned improvements. These clarifications, along with the additional implementation details for reproducibility, will be consolidated into the revised paper.
We would be grateful to know whether our response addresses your concerns. If anything remains unclear, we would be happy to provide a concise clarification before the discussion closes.
Thank you for your time.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 2/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper proposes Git-Context-Controller (GCC), a memory management framework for LLM agents inspired by git operations such as BRANCH, MERGE, COMMIT to manage memory during task completion. The paper evaluates the framework on a research benchmark (BrowseComp-Plus) and coding benchmark (SWE-Bench) to demonstrate strong performance compared to baseline models and a large number of other agentic coding systems. Further ablation studies and analysis demonstrates how each component of the framework contributes to its overall performance.
Strengths and weaknesses
Quality
Strengths
- Extensive evaluation, from a number of different models and baselines, to a large number of other similar tools in the literature.
- Apart from raw performance, cost efficiency from a dollar and token perspective is analysed to show efficiency improvements and demonstrate that the performance improvement does not come from increasing raw compute.
- Further insightful analysis found in Appendix with controlled comparisons, comparison to industry tools, detailed ablation and looking at the context retrieval behaviour. This all adds a strong overall picture to the capabilities of the GCC method.
Weaknesses
- It would have been good for the authors to more explicitly include the limitations of their work. In the checklist the justification for limitations is the appendix, but it is difficult to find these limitations in the appendix as the performance comparisons continue to favour GCC in raw performance and efficiency. It only performs worse on recall, but the authors do not mention this in the text or provide further analysis on this weakness.
- No statistical significance - The authors claims there is statistical significance information in the experiment on the checklist, but I cannot find any error bars, confidence intervals, standard deviation or significance tests in any of the text of tables on the experiments.
- It is unclear how the F_merge operation works technically. It is only described as a synthesis operator, but there is a lack of detail on how this merge works. Is it a prompted LLM call, or is it an algorithmic approach? This is crucial as branching and merge are key operations in the framework, making performance dependent on the effectiveness of F_merge. Further, details on the prompts of each GCC command are not shown, hindering reproducibility of this work.
Clarity
Strengths
- Paper is well-written and easy to follow.
- The tables present results neatly and clearly. Table 2 being sorted by performance is a nice touch.
- Figure 2 shows the workflow behaviour of the method very clearly, with well labeled and colored parts of each operation.
Weaknesses
- Figure 3 and the analysis of it was hard to follow, as there are 4 separate plots and the black line was not annotated (though I assume it is the average performance). Perhaps label each subfigure (a, b, c) and refer to them directly during the analysis.
- The use of different font for the GCC commands was good to differentiate them from the regular text, but it is not used throughout the paper. From section 4 onwards the commands like COMMIT and CONTEXT revert back to normal font, which makes it more difficult to read. Similarly in the Appendix, which in particular makes the last paragraph of Appendix E difficult to follow.
Significance
Strengths
- Context management in long-horizon tasks is a genuine issue, and the method in this paper shows strong results on BrwoseComp-Plus and SWE-Bench, a well known benchmark in this area. It would also be good to see results from SWE-Bench-pro as a more difficult set of benchmarks, but I do not penalise the paper for not including this.
- Comparisons are made against a large number of similar state of the art coding systems, with a mixture of open and closed sourced systems and demonstrate improved performance and cost efficiency. This shows strong performance especially as some closed sourced systems may use proprietary models or additional training while the method in the paper is a protocol-level framework.
Weaknesses
- The paper does not address failure points of this framework. For example, are there cases where too many unproductive branches are created? Or how does the framework generalise to problems outside of coding and research?
- A base context window of 32K tokens is chosen in the experimental setup, but no justification on why this number was chosen, or why a limit of 100 active branches is chosen.
- Only SWE-Bench-lite was compared against the other 20+ coding systems, why? What about SWE-Bench-Verified? Is there a smaller or large difference in performance there?
Originality
Strengths
- While components like summarisation and memory hierarchy have been explored in previous work, such as in MemGPT, the integration of these components together under a git-inspired framework is a creative and novel idea.
- The git-inspired commands make use of LLM pretraining patterns as modern models will have internal knowledge on git commands and naturally fit the framework without additional training required. This design novelty should be highlighted in more detail, as it is only described briefly at the end of the Appendix when it makes a strong case for the novelty of this work.
Weaknesses
- Some further analysis on the conceptual differences between this work and other memory frameworks such as MemGPT would help distinguish the novelty further, as one could argue other frameworks have conceptually similar memory hierarchy and memory operations, and GCC simply uses the same framework but with git-inspired names and commands.
- There is a lack of review on current literature on memory management frameworks. Section 1 describes the limitations of AI agent systems such as Claude Code's agent.md, but does not review other memory solutions and how GCC differs from them. The other frameworks are only empirically tested against, but the technical and conceptual differences are not described or analysed.
Weaknesses
Questions
-
The GCC operations are described in the main text, showing the states and input/output of each operation. However, the details of each operation are not shown, impacting reproducibility of the work. Can the authors detail each GCC operation, the prompts and case study examples of input and output for each operation? The reproducibility of this would impact my assessment on the quality score of the paper.
-
Do the authors have any indication of the performance when using smaller models (less than 20b)? The framework seems to rely heavily on the behaviour of the branch and merge operations, if the operations are performed on smaller less capable models, are there still performance improvements compared to using the base model without this framework?
-
There is a lack of a limitations section in the text. Can the authors provide their assessment of the limitations of this work? For example, problems it is unsuitable for, how it generalises to other problem domains (particularly less structured problems that may not map naturally to git operations), sensitivity to the effectiveness of each operation etc.
-
How does GCC compare to other memory framework, technically and conceptually? The authors detail empirical comparisons to other coding and memory solutions, but do not provide a literature review of these different approaches. The inclusion of this would impact my score on the originality of the work.
Limitations
-
Model size - how well does this framework scale to smaller models?
-
Generalisability - does the framework generalise to other problems? When is a problem too simple or too complicated for effective use of the framework?
-
Dependence on git knowledge? While this can be assumed that most modern LLMs that internal knowledge on git operations, what happens if someone wishes to deploy this solution on a smaller/domain-specific/fine tuned model? Is there some minimum requirement of the model's internal knowledge for GCC to work?
-
Any societal risks? Memory frameworks generally have some risks regarding privacy and security of sensitive information being persisted by the memory mechanism. For example, the authors highlight cross-agent and cross-session continuity as a benefit, but this could be a risk and attack vector to gain sensitive data.
Final justification
The authors help to address my concerns and improve the paper with additional statistical significance results. I am happy to maintain my current score.
Formatting concerns
/
1 comment
Rebuttal
We thank the reviewer for recognizing GCC’s performance, efficiency, and practical significance. We address the missing implementation details, limitations, statistical analysis, and distinction from prior memory frameworks below.
1. Reproducibility and F_merge
F_merge is a prompted LLM synthesis operation, not a learned module or algorithmic text merge. Before MERGE, the controller retrieves the target branch through CONTEXT. The prompt receives both branches’ purposes, progress summaries, and latest contributions, and produces a unified summary S_t+1 and merge rationale D_t+1. Log combination, file updates, provenance annotation, and Git checkpointing are deterministic controller operations.
For example, suppose the user reports:
When CONFIG=env.yaml, the program ignores --config user.yaml.
The agent tests the failure and observes:
args.config = user.yaml
selected_config = env.yaml
It calls COMMIT, producing:
Purpose: identify why --config is ignored
Progress: configuration-loading path located
Contribution: CLI parsing is correct; the value is replaced after
parsing. Next inspect source precedence.
The agent calls BRANCH precedence-fix, finds:
selected_config = os.getenv("CONFIG") or args.config
and verifies the corrected precedence. CONTEXT --branch precedence-fix returns the branch purpose, summary, and recent commit. MERGE precedence-fix then combines “CLI forwarding is correct” with “environment precedence caused the bug; the patch passes the original test” into the updated project state.
Thus, the LLM decides when to invoke an operation and synthesizes its semantic content, while the controller guarantees storage, retrieval, and version synchronization.
2. Limitations and failure modes
One representative failure occurs when a detail judged irrelevant during COMMIT becomes important only after new evidence emerges. Retaining every such detail in the active context would recreate the full-context problem, so the agent must recover it from the raw logs and may fail to locate it. A concrete example is provided in Case 3 of our response to Reviewer C99y.
3. Statistical significance and stability
We provide the standard deviations for our comparison with other memory methods below.
| Method | LoCoMo Accuracy (%) | LongMemEval Accuracy (%) | LifeBench Accuracy (%) |
|---|---|---|---|
| Supermemory | 87.5 ± 0.917 | 83.0 ± 1.501 | 71.8 ± 0.881 |
| Mem0 | 68.3 ± 0.610 | 69.5 ± 0.776 | 55.7 ± 0.943 |
| OpenViking | 85.6 ± 0.968 | 77.1 ± 1.738 | 67.8 ± 1.278 |
| Letta (MemGPT) | 75.1 ± 0.811 | 73.1 ± 1.538 | 61.0 ± 0.895 |
| LangMem | 61.6 ± 0.665 | 67.6 ± 1.106 | 53.4 ± 0.683 |
| GCC | 88.1 ± 0.458 | 85.2 ± 0.352 | 73.1 ± 0.568 |
GCC achieves both the highest mean accuracy and the lowest standard deviation on every benchmark. Its gains over the strongest baseline are 0.6, 2.2, and 1.3 points, while its standard deviations are only 0.458, 0.352, and 0.568. The gains therefore do not result from a few favorable runs; GCC also provides the most stable performance.
This consistency extends across models. We will report statistical significance analyses for all experimental results in the revised manuscript.
4. Model constraint and Git knowledge
We have not evaluated narrowly fine tuned small models and do not claim that the gains extend to that scale. The six backbone experiments demonstrate robustness across model families, not all model sizes.
GCC does not require the model to implement Git. Our controller handles files, logs, retrieval, and checkpointing. But it's true that the models need to follow command descriptions and decide when a milestone or divergent hypothesis warrants an operation. Narrowly fine tuned models may invoke operations poorly or generate weak merge summaries. We will state these requirements explicitly in our revision.
5. Generalization beyond coding
GCC is evaluated beyond coding. BrowseComp Plus requires open ended web research, while LoCoMo, LongMemEval, and LifeBench evaluate conversational and multi source memory. GCC achieves the highest accuracy on all three memory benchmarks while using approximately 38% fewer context tokens than the five compared systems on average.
GCC is most applicable when tasks contain persistent goals, intermediate conclusions, revisable hypotheses, or parallel investigations. It is less suitable when an interaction is short, or contains no reusable intermediate state. We will explicitly discuss these points in the Limitations section of the revised manuscript.
6. Why 32K context and 100 branches?
The 32K active context was fixed across models to provide a controlled setting and require every method to manage context rather than rely on model specific maximum windows. It is an experimental control, not a claimed optimum.
The limit of 100 summarized archives or branches equalizes the theoretical external memory capacity of Folding, Summary, and GCC. It is a safety ceiling, not a recommended operating point. The K ablation further shows that more exposed history is not always better: retrieving one commit provides the best accuracy and cost tradeoff, while larger windows add noise and cost.
7. SWE Bench Lite versus Verified
The comparison with 26 coding systems uses SWE Bench Lite because most prior systems publish comparable results and cost information for this subset. Many do not release Verified predictions, costs, or configurations, making the same broad comparison incomplete.
SWE Bench Verified is the primary controlled coding evaluation in Table 1. Under identical models, tools, and context budgets, GCC outperforms ReAct, SWE Agent, Summary, and Folding across all six backbones. Table 1 therefore provides the controlled Verified comparison, while Table 2 provides the broader but noncontrolled Lite comparison.
8. Difference from MemGPT and other memory frameworks
The clearest difference is the agent facing memory interface. Supermemory, Mem0, OpenViking, Letta, and LangMem primarily build external memory structures through vector retrieval, graphs, or hierarchical routing. GCC instead exposes four Git style operations, COMMIT, CONTEXT, BRANCH, and MERGE, that LLM agents can actively invoke during reasoning. Because these concepts are already familiar to modern LLMs through pretraining, GCC can manage memory as part of its reasoning process rather than treating memory as a separate retrieval backend.
This distinction is empirical, not merely conceptual. Table 4 compares GCC with five representative memory systems on LoCoMo, LongMemEval, and LifeBench using retrieval accuracy, context processing time, recall latency, and context tokens. GCC achieves the highest accuracy on all three benchmarks while maintaining the lowest overall context usage. On LoCoMo, GCC reaches 88.1 accuracy using only 17,474 tokens and 1,326 ms of context processing time, compared with 9,677 ms for Supermemory and 3,967 ms for OpenViking. On LongMemEval, GCC achieves the highest accuracy at 85.2, the fastest context processing time at 2,136 ms, and the fewest context tokens at 13,635.
These results show the design of GCC achieves the best accuracy and efficiency. Methods such as Supermemory and OpenViking rely on graph-based or vectorized retrieval pipelines, which incur substantially higher context processing time. Letta adopts a hierarchical memory design, but its structure is still more complex and less aligned with native LLM operations, leading to additional overhead during context processing.
In contrast, GCC remains competitive with lightweight methods such as LangMem in terms of processing efficiency, while achieving significantly higher retrieval accuracy. Moreover, GCC consistently uses among the fewest context tokens, enabled by a design that reveals only concise summaries and retrieves detailed information on demand via Git-style operations.
This demonstrates that GCC achieves a higher signal-to-noise ratio in memory compression, allowing the agent to reliably locate precise information from a minimal exposed context, rather than relying on larger but noisier memory representations.
So the clearest difference is this: existing tree/graph-style memory systems focus on building sophisticated memory structures, whereas GCC focuses on building a memory interface that the LLM can naturally and skillfully operate.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 2/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
LLM agents deployed on long-horizon tasks suffer from a context management bottleneck: interaction histories grow unbounded, become costly to maintain, and cannot be reused across sessions or agents. The paper introduces Git-Context-Controller (GCC), a framework that organizes agent context as a versioned file system, drawing inspiration from Git. The file system maintains a global roadmap per-branch milestone. Agents interact with this structure through four callable commands. GCC is evaluated on SWE-Bench Verified and BrowseComp-Plus against four baselines achieving the highest Pass@1 across all model–benchmark combinations.
Strengths and weaknesses
(+) Context management for long-horizon LLM agents is a practically important and timely problem.
(+) The paper shows high effectiveness on two datasets.
(+) The idea of operating memory as git is novel and interesting.
(-) While the approach achieves great effectiveness, especially on swe-bench with over 80% pass@1, it is still unclear or not that intuitive why such git-like memory management could benefit the agent so much. So, a concrete and real-world example from the experiments can help illustrate it, especially the baseline can also be included into the illustration.
(-) The limitation or related work sections seem not to be explicitly discussed in the paper.
(-) It remains justified why where GCC largely increase tool calls.
(-) System prompt for GCC commands not disclosed. GCC's effectiveness depends critically on how agents are instructed to use COMMIT, BRANCH, MERGE, and CONTEXT. The agent system prompts that specify when and how to invoke these commands are not provided, making reproduction impossible without access to the released code.
(-) The memory git operations are based on LLMs, and it remains unclear how accurate or how suitable the timing when these operations are invoked in practice. Some case analysis could be helpful.
(-) No failure analysis. The paper provides no qualitative or quantitative analysis of cases where GCC fails or performs worse than baselines: no failure mode categorization, no examples of incorrect branching decisions, no analysis of tasks where the overhead of GCC commands reduces performance.
Questions
(1) Any real-world example to illustrate how why git-like memory management is helpful for improving swe-bench tasks, specifically compared to baseline?
(2) How correctly are the git operations invoked by LLMs in practice?
(3) Why does GCC largely increase tool calls?
Limitations
I did not find the limitation section. The failure case analysis and application scenario of the approach should be explicitly discussed in the paper.
Final justification
The authors provide explanations to my questions on examples and case analysis. I remain my original score.
Formatting concerns
N/A
1 comment
Rebuttal
(1) Example cases of when and why does GCC help, or fail? We thank the reviewer for the suggestion. To better illustrate the behavior of GCC, we provide three representative examples that demonstrate when and why GCC succeeds, as well as when and why it fails. These examples, together with accompanying figures, will be included in the revised manuscript to provide a more intuitive understanding of GCC's behavior.
Case 1: GCC helps when a failed hypothesis produces evidence that must guide a later debugging stage.
The user asks:
When CONFIG=env.yaml, the program ignores --config user.yaml
and loads env.yaml instead.
The agent first searches for load_config and config_path, identifies the configuration-loading path, and commits the relevant files and functions. It then suspects that the CLI parser may be dropping --config.
To test this hypothesis under the actual failing condition, the agent instruments the values entering and leaving the parser and runs:
CONFIG=env.yaml python app.py --config user.yaml
The output shows:
args.config = user.yaml
selected_config = env.yaml
The parser hypothesis is therefore false. The CLI value reaches the loader correctly, but a different value is selected afterward. The agent commits the complete result:
Purpose: determine whether the CLI parser drops --config
Command:
CONFIG=env.yaml python app.py --config user.yaml
Observation:
args.config=user.yaml
selected_config=env.yaml
Conclusion:
CLI forwarding is correct.
The value is replaced during configuration selection.
Next: inspect precedence among config sources.
This trajectory then grows long while the agent investigates other files. The agent calls CONTEXT and retrieves this commit. Because the earlier experiment already localized the failure to the stage after parsing, the agent does not instrument the CLI again. It directly opens config.py and finds:
selected_config = os.getenv("CONFIG") or args.config
The agent recognizes that the environment variable is evaluated first, changes the code to:
selected_config = args.config or os.getenv("CONFIG")
and reruns the original command:
CONFIG=env.yaml python app.py --config user.yaml
The output now shows:
selected_config = user.yaml
In this case, GCC helps at the point where an unsuccessful hypothesis becomes a useful constraint on subsequent reasoning. The parser investigation does not produce the final patch, but its committed observation narrows the remaining search from "anything in CLI or configuration loading" to "selection logic after parsing." When the task continues later, the agent retrieves this result and proceeds from it instead of reconstructing or repeating the earlier experiment. ## Case 2: GCC helps when new evidence changes the interpretation of an earlier observation.
Case 2: GCC helps when new evidence changes the interpretation of an earlier observation.
The user asks for a company matching three clues: it originated inside a failed game company, entered public beta in November, and was acquired roughly three years later.
The agent first identifies Slack as a candidate and creates Branch A to verify the beta date. Suppose Branch A finds an article stating:
"Slack was opened to external testers in November."
The agent initially treats this as support for the public beta in November clue and commits both the conclusion and the original passage. Branch B then finds an acquisition date consistent with the required interval.
Before merging, however, the agent encounters another source distinguishing an external preview from the official public beta. This new distinction makes the earlier November evidence ambiguous. The agent calls:
CONTEXT --branch beta-timeline
and retrieves the exact passage rather than relying only on the earlier conclusion. It notices that the source said "external testers", not "public beta," reopens the source, and checks whether these events refer to the same milestone. Only after resolving this ambiguity does it merge the beta and acquisition evidence.
In this case, GCC helps at the moment when later information changes what detail matters in an earlier source. When Branch A was first summarized, the difference between external preview and public beta did not appear important; after the new source appears, the exact wording becomes decisive. Retrieving the branch's original evidence lets the agent revise its earlier interpretation without repeating the entire search.
Case 3: GCC fails when a detail omitted during COMMIT becomes important only after new evidence appears.
The user reports:
On Windows, test_export_temp_file intermittently fails because
the generated temporary file cannot be deleted.
The agent runs the failing test and receives:
ResourceWarning: unclosed file <output.csv>
PermissionError: [WinError 32] The process cannot access output.csv
because it is being used by another process.
At this stage, the agent focuses on the final PermissionError. It reasons that Windows file deletion is more restrictive than Linux and treats the earlier ResourceWarning as an unrelated warning. It investigates the cleanup function and then commits:
Observed:
Temporary-file deletion fails on Windows with WinError 32.
Current hypothesis:
The cleanup routine does not handle Windows file locking correctly.
Next:
Inspect deletion order and consider retrying os.unlink().
The exact ResourceWarning and the function that opened output.csv remain in the raw execution log but are omitted from the commit summary because the agent does not yet consider them important.
Later, the agent obtains new evidence. The failure occurs only when serialize_export() raises an exception before completing. This should change the diagnosis as the exception path may leave the file handle open, making the earlier ResourceWarning directly relevant.
However, the agent retrieves the commit summary and sees only the Windows-locking hypothesis. It searches the stored context for WinError, unlink, and cleanup, but does not search for ResourceWarning or unclosed file because those details are absent from the summary and therefore do not enter its current hypothesis. It consequently adds a retry loop around os.unlink():
for _ in range(3):
try:
os.unlink(path)
break
except PermissionError:
time.sleep(0.1)
The patch does not solve the problem because the file handle remains open throughout all three retries. The correct fix would be to close the file in a finally block inside serialize_export().
GCC fails here through a specific sequence:
- The initial COMMIT treats
ResourceWarningas irrelevant and omits it. - Later evidence makes the omitted warning diagnostic.
- CONTEXT returns the earlier high-level conclusion rather than the overlooked detail.
- The agent's search terms are derived from that conclusion, so it never locates the relevant raw-log entry.
- The agent implements a patch for file deletion rather than file-handle management.
Keeping the complete test output in every commit would remove much of the benefit of compression, so the detail remains available only in the raw log. Recovery therefore depends on the agent recognizing what to search for; in this case, the information is stored but not found. A possible solution is to enable GCC to detect uncertainty in commit summaries and automatically preserve the supporting raw observations. We are developing this uncertainty-aware memory consolidation and retrieval mechanism and plan to release it in future work.
(2) How appropriately do LLMs invoke GCC operations? There is no unique ground-truth timestamp for when an agent should commit or branch, so we evaluate invocation quality through its behavior and counterfactual utility. First, the crossed ablation improves SWE-Bench Verified from 67.2 without GCC structure to 80.2 with the complete system. BRANCH/MERGE or CONTEXT alone provide limited gains, but become effective when combined with structured logs and commits, showing that the operations are useful when invoked as part of the intended workflow rather than as isolated commands. Second, Fig. 3 shows that CONTEXT usage increases with task length and difficulty, while branches increase during intermediate exploration and decrease as the agent converges. Third, Table 8 shows that agents favor targeted retrieval, such as CONTEXT --commit followed by search, over reading raw logs sequentially. These patterns match the intended semantics of retrieving when history becomes relevant, branching during uncertainty, and merging after evidence accumulates.
(3) Why does GCC increase tool calls? The increase comes from GCC introduces additional memory operations such as COMMIT, CONTEXT, BRANCH, and MERGE. We argue that active tool usage is a feature of more capable agents, not a flaw. The relevant question is not how few calls an agent makes, but how effectively those calls are converted into successful resolutions. The existing results support this. On SWE-Bench Verified with GPT-5, GCC uses 97.0 calls versus 95.3 for Folding while improving Pass@1 from 0.746 to 0.790. More importantly, Table 5 reports the cost-normalized metric Resolved / Cost: with Claude 3.5 Sonnet, GCC resolves 48.0% of SWE-Bench Lite at $1.21 per task, achieving 119.01 resolved-per-cost, compared with 55.27 for CodeStory Aide and 108.64 for SpecRover. Thus, GCC does not merely spend more computation; it converts its additional operations into successful resolutions more efficiently than the baselines. We will additionally separate memory-management calls from environment calls in the revision.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Rebuttal
Thank the reviewer for the constructive assessment. We appreciate the reviewer’s recognition of GCC’s value and address below the main concerns regarding its methodological contribution, novelty, and limitations.
Base-model dependence. Every agent framework depends on the base LLM, but this does not make the framework ineffective. The correct test is whether GCC improves the same model under controlled settings. In Table 1, GCC improves the strongest non-GCC baseline across all six LLMs, by 1.9–6.6 points on BrowseComp-Plus and 1.9–6.3 points on SWE-Bench Verified. The crossed ablation further improves performance from 67.2 to 80.2. These consistent gains across models and both coding and web research show that GCC contributes beyond the base model and is not merely software-engineering optimization.
Novelty and academic contribution. We believe practical system design is already an established form of methodological contribution in LLM-agent research: works like Chain-of-Thought, ReAct and SWE-agent opened major research directions without changing the underlying LLM architecture. GCC makes an analogous contribution by designing version-control mechanism as a complete and systematically evaluated agent-memory framework. We specify its memory architecture and operations, compare it against long-context and memory baselines, ablate each component, and analyze its performance, retrieval behavior, token usage, and cost across multiple models and tasks. This transforms an engineering intuition into a reproducible method and establishes when, why, and how it works.
CLI and RL. GCC is not tied to a specific CLI. COMMIT, BRANCH, MERGE, and CONTEXT can be exposed through any function-calling or tool interface. The consistent gains across six different LLMs also suggest that the result is not a prompt trick tied to one model. RL is an interesting and important direction, but it addresses a different question. GCC asks whether memory structure alone can improve off-the-shelf models without training. This training-free result is more portable and isolates the contribution of memory management. GCC also provides a clear action space that future work can optimize with RL.
Growth of main.md Larger projects naturally require more context. No method can keep the required information fixed as project complexity grows without losing relevant details. Both machines and humans naturally need more time and information to understand larger projects.The algorithmic question is therefore not how to eliminate growth, but how to compress prior information more efficiently. GCC performs this compression as main.md is dynamically rewritten rather than continuously appended. Older progress is absorbed into increasingly abstract goals and conclusions, while recent work retains more detail. Fine-grained history remains in commits and logs and is retrieved only when needed. Table 4 shows that GCC uses 9–27% fewer context tokens than even the lowest-token competing method on each of LoCoMo, LongMemEval, and LifeBench, about 38% fewer than the average of the five baselines, while achieving the best accuracy.
Failure analysis, prompts, and reproducibility. We agree that these details should be more complete. The revision will include representative failure cases and all prompts required for reproduction, and we will release the complete codebase and evaluation scripts. One representative failure occurs when a detail judged irrelevant during COMMIT becomes important only after new evidence emerges. Retaining every such detail in the active context would recreate the full-context problem, so the agent must recover it from the raw logs and may fail to locate it. One concrete example is presented below:
Example Case: GCC fails when a detail omitted during COMMIT becomes important only after new evidence appears.
The user reports:
The agent runs the failing test and receives:
At this stage, the agent focuses on the final
PermissionError. It reasons that Windows file deletion is more restrictive than Linux and treats the earlierResourceWarningas an unrelated warning. It investigates the cleanup function and then commits:The exact
ResourceWarningand the function that openedoutput.csvremain in the raw execution log but are omitted from the commit summary because the agent does not yet consider them important.Later, the agent obtains new evidence. The failure occurs only when
serialize_export()raises an exception before completing. This should change the diagnosis as the exception path may leave the file handle open, making the earlierResourceWarningdirectly relevant.However, the agent retrieves the commit summary and sees only the Windows-locking hypothesis. It searches the stored context for
WinError,unlink, andcleanup, but does not search forResourceWarningorunclosed filebecause those details are absent from the summary and therefore do not enter its current hypothesis. It consequently adds a retry loop aroundos.unlink():The patch does not solve the problem because the file handle remains open throughout all three retries. The correct fix would be to close the file in a
finallyblock insideserialize_export().GCC fails here through a specific sequence:
ResourceWarningas irrelevant and omits it.Keeping the complete test output in every commit would remove much of the benefit of compression, so the detail remains available only in the raw log. Recovery therefore depends on the agent recognizing what to search for; in this case, the information is stored but not found. A possible solution is to enable GCC to detect uncertainty in commit summaries and automatically preserve the supporting raw observations. We are developing this uncertainty-aware memory consolidation and retrieval mechanism and plan to release it in future work.