做智能体工作流的人多半给记忆做过加法,很少做过减法。这条推把删除当策略来讨论:旧计划、失败方案哪些留、哪些删、谁拍板。自检那个问题挺扎心,适合用来审一遍自己的 prompt 和 memory 设计。
#context management
Yegge 这个观察挺扎心:你早就不想要的那条规则,agent 还在默默执行。写 CLAUDE.md 或 rules 文件的人应该定期删旧条目,别让上下文变成决策垃圾场,不然 debug 都找不到原因。
一条很有共鸣的开发者观察:现在做智能体,跑一次实验几乎不要钱,真正烧脑子的是怎么在多个任务间维持上下文。如果你正在搭智能体,这条帮你判断精力该往哪投。
The counterintuitive point is that the strongest model belongs in the worker threads, not the coordinator — inverting how many developers set up agent pipelines. Builders deploying long-running bots on metered APIs can adopt the cache-expiry compaction trick immediately to lower costs without changing models. Compared with naive single-session designs, it trades a retrieval step for large savings on context re-sends, useful for teams in cost-sensitive ASEAN markets where API spend adds up fast.
智能体跑长任务时历史记录越长越容易乱,摘要又会丢细节。这篇论文的 CarryOn 用学习型选择器挑证据保留,不加 LLM 调用,三个基准上超基线 6.7 个百分点。做智能体开发、被上下文成本折磨的人可以看看思路。
Zed 这个细节挺值得琢磨:代码是哪段对话写的,智能体能查摘要、再按需翻原始讨论,但不自动灌满上下文。比起 Cursor 一把梭全塞进窗口,这种按需取用的方式对长会话开发者更有参考价值。
搞智能体的朋友可以看看这篇。Folio 不靠模型写摘要压历史,而是运行时留三层记录直接程序化折叠,还能用句柄恢复原文。同一运行时下 75 个任务解决 66 个,比模型摘要方案的 54 个多不少,成本还只有 1/2.4,做长任务 agent 的值得对比一下自己的压缩方案。
在 SF 做智能体开发的朋友可以关注,Mem0 这场早餐会专门聊记忆和检索在生产里踩过的坑,规模小方便面对面交流。做完 RAG 或长对话智能体的开发者去听听别人的实战方案挺划算。
做Agent开发的朋友可以看看,两个团队都在琢磨怎么摆脱单Session限制,讲了不少Harness层面的新思路。
Unlike one-shot summaries, restoring original content on demand means day-one decisions remain traceable after weeks-long sessions with multiple refactors — no detail is permanently lost to compression. Developers running long-horizon coding or tool-using agents can adopt it across Claude Code, Codex, OpenCode and DeepSeek Harness to cut token costs while keeping history searchable.
Context cost in long-running agents usually hides inside tool results and sub-agent calls, and dsh-context makes those allocations traceable instead of guessing from a total token count. Builders running multi-agent workflows on DSH can use it to diagnose cache misses, runaway context growth and per-sub-agent spend, then rebalance prompts or trimming before costs climb.
如果你同时用 Claude Code 和 Cursor 这类工具,肯定烦过来回复制上下文,看看大家都是怎么打通的。
长程智能体老是背着全部历史跑,token 爆炸。这篇 CarryOn 换个思路存任务对象,OSWorld 上省了一半 token 还更准,做 agent 的可以看看。
Apple 给出了一种新的长任务智能体压缩方案:不再按固定 token 数截断,而是让模型自己调用工具决定何时总结,避免丢掉中间结果。
The practical takeaway is that context management is where leading agent teams concentrate engineering effort, and that openly studying shipped coding agents like Codex and Claude Code is the standard playbook rather than a shortcut. Engineers building agents can go read how Codex and workbuddy handle images to cut tokens and hallucinations. The report that a top Chinese agent team converges on the same solutions as Western tools shows how tightly designs are globalising.
一篇解决智能体“读完文件就忘”的论文,让环境而不是模型来记账,避免报告漏掉已提取的数据,思路挺新颖。
写代码聊着聊着模型就忘事?这个开源工具把测试和日志的大段输出留在沙箱里,只带回 5.4 KB 相关结果,长任务党可以试试。
The takeaway is a systems view: agent reliability today depends on scaffolding that future model versions will gradually internalise, so over-engineering external layers carries a hidden tax. Builders designing agent stacks can use this lens to decide what to build versus what to wait for. The trade-off framing is a useful counterpart to tool-heavy frameworks like LangChain when evaluating thin versus thick orchestration.
The notable shift is model-harness co-design: instead of hard-coded rule-based compaction, the model learns when to invoke it — part of a broader trend including AutoHarness and AutoContext. Builders of agent frameworks can compare this learned approach against the rule-based compaction already packaged in harnesses, and the arXiv paper (2610.02163) details the judge-then-RL pipeline for replication.
This approach addresses a fundamental limitation in how LLMs manage context, potentially reducing computational overhead while improving memory retention. Developers working on long-context applications should explore this technique as it may offer significant efficiency gains over traditional context management methods.
IBM研究说,给AI代理加更多内存不一定更好,反而可能让无关历史干扰当前任务。他们发现不同模型对记忆的需求不同,比如gpt-oss-120b模型用精选检索比用完整指南集效果更好,还少用很多令牌。如果你在开发需要持久记忆的代理,这个研究方法值得参考。
GPT-6 Astra users may face zero switching costs when moving between AI coding assistants, affecting workflow continuity.
Developers building AI agents can implement this filesystem approach to manage context windows efficiently, avoiding token limits while preserving full conversation history.
清华大学等机构的研究框架ContextPilot,通过主动管理上下文,让8B模型在长文档问答和深度搜索任务上表现出色,优于128K窗口的原始模型。
ContextPilot offers a more efficient approach to long-context tasks compared to existing methods, potentially reducing computational costs for developers in the region.
Developers in ASEAN can implement these context-driven techniques to improve productivity with existing tools like GitLab and OpenAI without requiring new infrastructure investment.
This method outperforms the best published memory system by 5.1 points on BEAM_10M, offering a practical solution for developers working with complex AI agents.
The context management challenge affects all AI coding assistants in the region, with potential solutions in self-improving context graphs.
长任务乱?HyMem分层隔离上下文,用DeepSeek-V4在GAIA上比最强基线高6.1个百分点。
代理编码老烧token,Blast Radius在七个OpenAI模型上省17-26%,还能完整恢复,溢出率最低,很实用。
这篇新论文把智能体常栽跟头的上下文问题拆成五个可操作的原语,还给出了验证方案,在LongMemEval和LoCoMo上分别跑了92%和93.2%。
这篇论文把AI代理失效的真正原因讲透了——不是推理不行,而是管不住上下文。还给了个参考实现,LongMemEval和LoCoMo成绩都90%以上。