Get Started
Home
Topics
Search
Library
Research questionHow should LLM agents decide which context to keep, compress, or drop under token budgets?Agents may retrieve semantically related material that does not determine what they should do next, and compressing context can discard evidence needed for a tool call or code change. Coding agents retain instructions, artifacts, tool outputs, and generated state that can differ in retention, compression, and delivery behavior. Token budgets alone do not capture the context actually delivered or the work required to manage it.
AI Agents
AI Memory
Code Generation & Program Synthesis
Evaluation & Benchmarks
Inference Optimization
Information Retrieval
Retrieval-Augmented Generation
Latest papersRecent research connected to this question, newest first.Decision-Aware Memory Cards: Counterfactual-Inspired Context Selection and Compression for Tool-Using LLM AgentsThe evidence covers 50 SWE-bench Verified file-retrieval instances using BM25 top-50 candidates; the reported reranking result uses Qwen3.6-Plus, and selected-then-compressed mode reports token savings. The selection protocol can use hosted LLM judges, local surrogates, or lightweight rankers, but the supplied evidence does not establish performance across broader agent tasks or deployments.research paper · Sep 21, 2026AttnCompress: Dynamic Attention-Guided Trajectory Compression for Software Engineering AgentsThis concerns autonomous agents solving software-engineering tasks with trajectories containing code, logs, and interactions. Evidence is reported on SWE-Bench-Verified and Multi-SWE-Bench across diverse programming languages, with claimed model-agnostic behavior; applicability beyond these settings is not established.research paper · Sep 8, 2026Measure Before You Manage: Evaluating Agent Working Memory in Coding AgentsThe evidence covers 55 archived coding-agent trajectories, object-aware compression and retrieval-based policies, and a real-system replay. Calibration gains did not necessarily transfer to held-out tasks, and replay exposed serving limits beyond nominal budgets.research paper · Aug 31, 2026SWE-Pruner Pro: The Coder LLM Already Knows What to PruneThe evidence concerns an in-agent small head that labels tool-output lines to keep or prune, evaluated across two open-weight backbones and four multi-turn benchmarks. Reported results include up to 39% fewer prompt and completion tokens while preserving task quality, with additional gains on two benchmarks; no broader deployment evidence is provided.research paper · Jul 20, 2026
Related questions
How can long-horizon LLM agents manage growing interaction history within context limits?How can LLM agents condense long-term memories without losing details needed later?How can LLM agent memory retrieval enforce access boundaries without losing relevant context?How can LLM agents retrieve relevant skills from large, noisy libraries under context and latency constraints?