arXiv 2026

VISTA: Self-Managed Context for Long-Horizon LLM Agents

Paper: LLM Agents Are Latent Context Managers: Eliciting Self-Managed Context via State Proprioception

Binyan Xu1,*   Haitao Li2,†   Kehuan Zhang1

1The Chinese University of Hong Kong (CUHK) 2LIGHTSPEED, Tencent

* Work done during an internship at Tencent.   † Corresponding author.

context dashboard pressure 72%
Abstract

Long-horizon tool agents are bottlenecked by how their context grows toward the limits of the context window. VISTA represents working memory as typed, addressable blocks, surfaces runtime state through a dashboard, and archives blocks as recoverable full-fidelity payloads. The same untrained interface transfers across LOCA-Bench, BrowseComp-Plus, and GAIA.

VISTA teaser showing self-managed context behavior
Key Idea

Give the agent visibility into its own context state.

Typed Blocks

Conversation, tool calls, file reads, and derived state become addressable workspace blocks.

Proprioceptive Dashboard

The model sees token usage, recency, access history, and context pressure before acting.

Recoverable Archive

Archived blocks are moved out of the active window without destroying full-fidelity evidence.

Methodology Overview

VISTA turns an opaque transcript into a managed workspace.

VISTA methodology overview
Case Study Trace

VISTA archives large evidence and recovers payloads when needed.

In one 128K LOCA-Bench run, VISTA keeps the live context compact relative to a no-archive counterfactual, archives large evidence, and recovers payloads when the agent needs them.

Case study curve showing VISTA context management over time
Results

Training-free gains under context pressure.

22.7 → 50.7% Gemini-3-Flash on LOCA-Bench
3 Benchmarks: LOCA-Bench, BrowseComp-Plus, GAIA
0 Training examples or learned compression policy
Context pressure curve Ablation results showing dashboard contribution
Main Results

Accuracy and trajectory cost across long-horizon agent benchmarks.

Method State Control Recover LOCA Acc. LOCA Traj. BrowseComp Acc. BrowseComp Traj. GAIA Acc. GAIA Traj.
Fixed external policy
ReAct---22.73.51M39.3163K61.223K
Tool-result Clearing---26.72.60M42.7161K65.524K
Stale-obs. Masking---28.03.32M38.0112K61.824K
Skeleton Compression---33.32.84M40.0139K70.328K
Agent-mediated / lossy
SLIM (summary)-partial-29.33.76M49.3162K67.930K
Active Context Compression-yes-36.03.20M42.7162K71.539K
Context-Folding-yes-34.73.41M43.3166K64.839K
Lossless external store
Auto-Archive + Recover--yes44.02.73M45.3133K63.620K
Claude Code-yespartial42.76.72M52.0247K73.944K
VISTA and ablations
VISTA w/o dashboard-yesyes37.35.25M50.0423K68.524K
VISTA w/o recoveryyesyes-45.32.99M43.3161K72.128K
VISTA (full)yesyesyes50.72.86M58.0135K73.333K
Run

Download data, add an API key, and run.

git clone git@github.com:binyxu/VISTA.git
cd VISTA
cp .env.example .env
# edit .env with LOCA_OPENAI_API_KEY and LOCA_OPENAI_BASE_URL
bash run_loca_self_managed.sh
Citation
@article{xu2026vista,
  title   = {LLM Agents Are Latent Context Managers: Eliciting Self-Managed Context via State Proprioception},
  author  = {Xu, Binyan and Li, Haitao and Zhang, Kehuan},
  journal = {arXiv preprint arXiv:2606.30005},
  year    = {2026}
}