mlsanityData to 7 Oct 2026

Curating Always-Loaded Context for LLM Agents: A Capacitated Assortment Model with Censored Feedback

arXiv 2610.11007 ↗First posted 7 Oct 2026cs.AI cs.LG math.OCcited by 0

On the map: LLM agents and tool use → Agent memory systems also fits: Agent skill learning and evolution

Abstract (arXiv)

At the start of every session, LLM agents load a fixed context file, such as textttAGENTS.md. Each loaded token in the file is charged again in every later round of the session, and these files can degrade performance as they grow in size. However, in practice, human or automated curators usually grow these files by appending. We formulate context curation as a capacitated assortment problem. Instructions consume tokens under a finite attention capacity; adding an instruction never raises the compliance of the others, while retained instructions incur a per-session setup cost. We prove an upper bound on the optimal file size, regardless of the number of available candidate instructions, and that appending every instruction with positive standalone value can be arbitrarily worse in net value than selecting an optimal subset. A token budget also limits the loss when the token price is underestimated. We then examine what can be learned from past sessions and how this information can guide decisions to add or remove instructions. Feedback is inherently censored: the benefits and harms of loaded instructions are observable, whereas missing instructions generate feedback only when their absence causes harm. In this setting, we show that deleting instructions ignored by agents can inevitably remove helpful ones. We characterize how much evidence should be collected before adding an instruction. Besides, we bound regret when human reviewers can inspect only a limited number of edits per period. Empirical experiments further show that irrelevant rules drawn from real context files reduce language-model compliance.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Agent memory systems, one of 16 directions in LLM agents and tool use. Builds on 7 of its 42 references that are in the map. First posted on arXiv 7 Oct 2026.

Builds on

7 of 42 references.

Closest ancestors · 2

Same direction, newest first

  1. 2026Why Does CLAUDE.md Keep Growing? Catastrophic Remembering in Agentic Coding11 Aug
  2. 2026Memory as a Controlled Process: Learned Adaptive Memory Management for LLM Agents15 Jul

Other references · 5

  1. 2026Evaluating AGENTS.md: Are Repository-Level Context Files Helpful for Coding Agents?cited by 19
  2. 2025How Many Instructions Can LLMs Follow at Once?cited by 17
  3. 2026Forget to Improve: On-Device LLM-Agent Continual Learning via Budget-Curated Memorycited by 8
  4. 2026Guardrails Beat Guidance: A Large-Scale Study of Rules, Skills, and Persistent Configuration for Coding Agentscited by 2
  5. 2026Instruction Adherence in Coding Agent Configuration Files: A Factorial Study of Four File-Structure Variablescited by 2

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Beyond Token Savings: A Systematic Study of Context Compression in LLM Agents
  2. 2026Agents Don't Paginate: First-Chunk Selection for LLM Tool Responses
  3. 2026AllocBench: Measuring Online Tool Allocation Capability in LLM Agents
  4. 2026Do Context Files Help Coding Agents? A Two-Agent Ablation Study on Real Repositories
  5. 2026Experience Compression Spectrum: Unifying Memory, Skills, and Rules in LLM Agents
  6. 2026Attention Tax, Handoff Tax: A Stylised Model of When Multi-Agent LLM Systems Help
  7. 2026FOCUS: Training-Free Decision-Preserving Context Compression for LLM Agents
  8. 2026Compact-Memory LLM Agents via Online Max-Member Clustering and Atom-Aware Packing