Towards Data Science

AI Agents Don’t Need More Context — They Need Typed Context

The article argues that AI agents face a context typing issue rather than merely a lack of context. It explains how flattening instructions, memory, evidence, and tool outputs into a single string erases semantic boundaries, and presents a lightweight, zero‑dependency Python runtime that preserves these boundaries, tracks provenance, and rejects invalid transformations before they reach the model. The post details the implementation, testing, and the guarantees and limitations of this approach.

arXiv AI
4d ago

Semantic Context Handoff with On-Demand Evidence for Long-Horizon Agents

Semantic Context Handoff (SCH) separates a compact semantic state from the supporting action–observation evidence, allowing long‑horizon agents to retain only essential context while keeping earlier evidence accessible for later use. This approach reduces inference cost and improves accuracy by preventing unnecessary growth of the prompt history. In a 150‑task SWE‑bench study, SCH raised Pass@1 from 80.0 % to 86.9 % with unchanged token use and execution time, and in full‑system comparisons it achieved 86.9 % Pass@1 while using 43 % fewer tokens and 41 % less wall‑clock time than the strongest baseline.

By Guolong Zheng, Chen Hou, Xu Yang, Jianshan Zhang, Tao Huang
arXiv Computation and Language
Nov 4

Agentic Context Management for Multi-Turn Human-AI Conversations

The paper introduces Agentic Conversation Context Curation (AC3), a training‑free method that cleans multi‑turn human‑AI dialogue by consolidating the user’s task specification, auditing assistant outputs, and editing the context to remove or rebuild assistant turns. AC3 outperforms both full context and assistant‑omission (AO) baselines on several benchmark tasks, closing a significant portion of the performance gap and receiving preference from a GPT‑5‑mini judge on real WildChat conversations. The study also shows that context pollution is contagious and that simply ignoring assistant turns can worsen performance, underscoring the need for structured removal of assistant content.

By Matthew Ho, Chenglong Wang, Baolin Peng, Nebojsa Jojic, Philippe Laban, Michel Galley, Jianfeng Gao, Lianhui Qin
arXiv AI
6d ago

LMLineage: Content Lineage and Context Governance for LLM Agents

LMLineage is an out‑of‑band system that attributes each output sentence of an LLM agent to its supporting input spans with calibrated confidences, without needing white‑box model access or extra inference passes. It also introduces concept‑drift micro‑compaction, compacting only input documents that are no longer referenced to preserve user instructions verbatim. Evaluation on a multi‑tier corpus shows fast, accurate per‑turn attribution and conservative drift detection, with performance stable up to 40 turns.

By Wei Hou, Jingxin Geng, Xin Chen, Zheqing Jiang
arXiv AI
Jul 3

ContextSniper: AntTrail's Token-Efficient Code Memory for Repository-Level Program Repair

arXiv:2607. 01916v1 Announce Type: new Abstract: Large language model agents can repair real repository issues, but they often spend large context budgets on whole-file reads, broad searches, and long terminal outputs where useful evidence is mixed with irrelevant code and logs.

By Chiwang Luk, Matin Mohammad Najafi, Zhifeng Jia, Wei Yang, Xiuchang Li, Jinwei Zhu, Yang Ren, Lei Chen, Gao Cong