BECOS:把编码智能体会话记录变成可跨任务复用的证据
BECOS: Consolidating Session Evidence for Coding Teams
写代码时的关键决策常散落在过往 agent 会话里,换个人或换个任务就丢了。这篇论文把会话变成带出处的证据包给后续任务用,token 省了 82% 还能答对只有历史里才有的问题。做编码 agent 或团队知识沉淀的值得细看。
arXiv 论文提出 BECOS(Bidirectional Episodic Consolidated Over Sessions),把编码智能体的历史会话转成带出处的 claims——记录谁提出、是否被采纳或测试、来自哪个会话——再在后续任务中以小证据包形式注入上下文。核心动机是开发者继承了代码,但代码背后的决策理由只存在于过往会话中。
评测覆盖五个基准。在真实团队的 9 次提问(答案只存在于历史会话)中,带 BECOS 的智能体答对 8 次,无记忆基线为 0 次;需要长链调查的问题上 token 减少 82%、成本降低 70%。跨 10 个顺序编码任务的迁移测试中,最终代码通过约 18/21 个隐藏测试,无记忆基线为 14。在四个隐含规则测试中全部领先:回答能遵循埋在 24 个会话里的规则的比例为 67%,对照为 30%。LoCoMo 上用十分之一以内的文本量高出整段对话基线 7–11 分;BEAM 上用约 2% 的 token 在全部十项能力上领先。
关键机制在于每条 claim 保留来源与状态(提出/采纳/已验证),让小证据包能替代长历史。对用多智能体流水线做长周期开发、或团队成员交接编码决策的团队,这套记忆方案直接回答了“为什么这么写”无法靠 commit 或注释找回的问题。
BECOS: Consolidating Session Evidence for Coding Teams
Developers inherit each other's code, but not the reasons behind it, which stay in past coding-agent sessions. BECOS (Bidirectional Episodic Consolidated Over Sessions) turns those sessions into claims, such as decisions, requirements and findings, each kept with who stated it, whether it was proposed, adopted or tested, and its source session, and gives a later task a small packet of that evidence. We evaluated BECOS on five benchmarks. Team questions: on a real team's questions whose answers existed only in past sessions, an agent with BECOS was correct in 8 of 9 runs, against none without memory. Where the answer took a long investigation, it used 82% fewer tokens at 70% lower cost. Mobility: over ten sequential coding tasks, the final code passed about 18 of 21 hidden tests with BECOS, against 14 without. RAG in a Trenchcoat: BECOS scored highest of the memory systems compared on all four stated-rule tests, following a rule buried in 24 sessions in 67% of answers against 30%. LoCoMo: with a tenth of the text or less, BECOS beat the whole conversation by 7 to 11 points with one answer model and matched it with another. BEAM: with about 2% of the tokens, BECOS led on all ten abilities under the same prompt, and in 13 of 20 conversations under BEAM's own setup. Keeping each claim's source and status lets a small packet stand in for a long history, most of all where no note, commit or code holds the answer.
This report is categorized under AITOP's "Papers" desk. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include BECOS, coding assistants, agent memory, RAG.
Source attribution: curated from arXiv cs.AI (@Nikhil Kumar Jha, Amitoj Cheema).