ResearchResearch paperLarge Language Models1 source · Oct 7, 2026

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

At the start of every session, LLM agents load a fixed context file, such as $AGENTS.md$.

Key points

  • 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.
  • We formulate context curation as a capacitated assortment problem.
  • 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.
  • Empirical experiments further show that irrelevant rules drawn from real context files reduce language-model compliance.

Sources (1)

Extractive summary: sentences quoted from the sources.

Related