cs.LGOct 1, 2026

Trained Agentic Context Management

Authors: Bryce Sandlund

Abstract

We study long context language models. Instead of training long context natively, or designing a long context harness, we train a model over the simplest possible harness: a tool to call itself with any specified prompt and a tool to read tokens in a range from the input context. We finetune Qwen3.6-35B-A3B on a diverse synthetic dataset using this harness. With only 8,000 tokens of context, our small model is as strong as GPT-5.4 with 1M tokens of context on the OOLONG-synth benchmark when document length exceeds 40K tokens.

Figures & tables

Appendix figures & tables3 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. ACC: Compiling Agent Trajectories for Long-Context Training

    May 21, 2026Qisheng Su, Zhen Fang, Shiting Huang +8Supervised Fine-TuningLong-Context Modeling

  2. OctoLong: Mid-Training On Cross-Repository Code Contexts Enhances Long-Context Modeling

    Aug 5, 2026Indraneil Paul, Falko Helm, Goran Glavaš +1Software EngineeringLong-Context Language Modeling

  3. ContextPilot: Teaching Agents for Proactive Context Management via Fine-grained RL

    Aug 28, 2026Zhuoshi Pan, Qizhi Pei, Junru Lu +4LLM Context ManagementLong-Horizon LLM Agents