# 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 page](https://neurips.cc/virtual/2026/poster/152398) · [OpenReview](https://openreview.net/forum?id=TOI57aH7Gz) · [alphaXiv](https://www.alphaxiv.org/abs/2508.00031) · [Open on the map](../papers.html#p152398)

Category: [LLM Agents, Evals & Benchmarks](../pcat/17.md) › [Efficient Multi-Agent Coordination](../pgroup/485.md) · Type: system or tooling · Keywords: agent context management, version control, LLM agents, checkpointing, branching, SWE-Bench

Areas: [LLM Reasoning](../areas/reasoning.md) › Agentic Reasoning › Efficient Agent Reasoning; [Memory](../areas/memory.md) › Agent Memory Systems › Agent Memory; [Long Context](../areas/longcontext.md) › Long-context mechanisms › Agent memory representations; [Code & Coding Agents](../areas/codegen.md) › Code Verification › Software engineering agents; [AI Agents](../areas/agents.md) › Agentic Decision Making › Agentic Search

## Summary
GCC is a structured context management framework that treats agent memory as a versioned file system, enabling checkpointing, branching, merging, and hierarchical retrieval to improve long-horizon task performance.

## Explained to a 5-year-old
Some robots that talk and help us get stuck with remembering everything they have done. Their memory gets too big and hard to use later. A new system makes their memory like a big notebook where you can make pictures of what you know and save them. You can make new pages to try different ideas, go back to old pictures, and share them. This helps the robots finish harder tasks better and remember what they learned.

## Explained to a 5-year-old, longer
Imagine a friendly robot that talks and helps you with many things. It remembers everything it does so it can finish long tasks. But when it does many things, its memory becomes huge and slow. A new idea treats the robot’s memory like a big library of pictures. You can take a picture of what you know at any moment and save it as a snapshot. You can also make a new branch of pictures to try a different idea without changing the old ones. You can combine pictures from different branches to see what works best. You can look back at any snapshot to find the answer you need. This way the robot can go back in time, try many ways, and share its knowledge with other robots. It helps the robot finish harder jobs faster and remember what it learned. The system is open so other people can use and improve it. This makes robot helpers more useful for things like writing code and exploring information.

## For a technical reader
Traditional LLM agents store conversation history as a long, growing list, which becomes expensive and hard to reuse. The proposed framework models this history as a version-controlled file system, providing operations to snapshot, branch, merge, and retrieve past states. By treating context as immutable checkpoints, agents can isolate experiments, roll back to successful points, and share useful snapshots across sessions. This approach scales efficiently and enables coordinated multi-trajectory problem solving.

## Problem
Managing context for long-horizon LLM agents is challenging because interaction histories grow unbounded, become costly to maintain, and are difficult to reuse across sessions and agents.

## Method
The approach organizes agent memory as a versioned file system with explicit operations-checkpointing, branching, merging, and hierarchical retrieval-allowing agents to create milestones, explore alternative reasoning paths, and reuse context across sessions.

## Results
The approach achieves state-of-the-art performance, improving task resolution on SWE-Bench Verified by over 13% relative to strong baselines and reaching over 80% success rate, surpassing 26 existing open and commercial systems.

## Contributions
It introduces a principled, version-control-inspired framework for agent context that supports checkpointing, branching, merging, and hierarchical retrieval, enabling long-term goal management, cross-session reasoning transfer, and coordinated multi-trajectory problem solving.

## Practical relevance
Open-sourcing GCC will enable researchers and practitioners to adopt principled context management for scalable, reusable LLM agents in complex workflows such as software engineering.

## Research questions this paper is counted under

- [How can LLM agents effectively store, retrieve, and reuse past experiences while preserving fidelity, provenance, and adaptability over long interaction histories?](../q/14.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/152398)
