Skip to main content

← Back to AI Papers

Agents & tools

ContextWeaver: Selective and Dependency-Structured Memory Construction for LLM Agents

Problem: coding agents accumulate long context, and sliding windows or prompt compression drop earlier information that later steps depend on; ordinary retrieval sees similarity but not causal dependencies between reasoning steps.
Where the evidence sits: ContextWeaver turns an interaction trace into a dependency graph of reasoning steps, links each step to earlier steps it relies on, builds compact dependency summaries and adds a lightweight validation layer using execution feedback; it beats a sliding-window baseline on all five software-engineering and terminal benchmarks, uses 13–18% fewer agent steps and raises SWE-Bench Pro resolve rate from 66.5% to 72.6% across three model backbones.
What the authors say about limits: evaluation covers five SWE/terminal benchmarks under a fixed task budget; graph construction depends on step segmentation and tool feedback; open-ended research, multi-user collaboration and production environments are not covered; it is not end-to-end trained.
What it does not claim: not that every context should be graph-structured; not that 72.6% represents every repository task; not that fewer steps necessarily means proportionally lower cost.

Key specs

证据位置 / evidence
摘要
方法 / method
推理步骤依赖图 + 依赖摘要 + 执行反馈校验
SWE-Bench Pro
66.5% → 72.6%
步数 / steps
少 13–18%
复现状态 / reproduction
未复现(只读摘要)

What the source says

dependency-based construction and traversal that link each step to the earlier steps it relies on
1 https://arxiv.org/abs/2604.23069
On SWE-Bench Pro, ContextWeaver raises the resolve rate from 66.5% to 72.6%
2 https://arxiv.org/abs/2604.23069
using 13-18% fewer agent steps
3 https://arxiv.org/abs/2604.23069

Source and licence

Source checked
2026-11-20
Licence / kind
arxiv-preprint
Licence evidence
https://arxiv.org/abs/2604.23069
Category
Agents & tools

How to read the numbers

Before citing a score, separate what it measures, how it is scored, what it compares against and whether contamination is controlled. If unsure, go back to the experiment setup in the paper. See benchmark cards · See dataset cards

More in this category

Next step

Open the official page →

← Back to AI Papers