与你合作得更好:将用户修正编译为编码代理的运行时强制
TellOnce: Correcting Coding Agents Once, Improving Their Future Actions
AI总结:
提出TRACE方法,通过将用户修正编译为原子规则并在运行时强制执行,显著减少编码代理在后续任务中的偏好违反,优于纯记忆方法。
摘要:
交互式LLM代理正成为日常工作的组成部分,但它们并不会随着时间的推移而变得更易于合作:在一个会话中记住的修正可能在下一个会话中仍被违反。我们研究了偏好访问与偏好遵从之间的差距。在源自匿名真实用户摩擦案例的任务中,Mem0记忆仍然导致57.5%的适用偏好检查被违反。我们引入了测试时规则获取与编译强制(TRACE),这是一个用于编码代理运行时的即插即用技能层管道,它挖掘用户修正,将其重写为原子规则,并编译为运行时检查,这些检查必须在代理完成未来任务之前通过。与开发者提前编写的运行时检查不同,TRACE技能来自用户自己的聊天修正。我们通过在ClawArena编码代理任务和MemoryArena衍生的内存密集型任务上进行模拟用户参与实验来评估TRACE。在ClawArena上,TRACE将分布内任务的保留偏好违反从100.0%降低到37.6%,将分布外任务从100.0%降低到2.0%。在MemoryArena衍生的任务上,TRACE将分布内违反从100.0%降低到60.5%,同时在任务通过率上匹配或超过最强的记忆基线。这些结果表明,将修正编译为运行时强制可以解决记忆单独无法可靠解决的重复摩擦失败模式,减少用户在未来会话中重复相同修正的需求。实验代码可在此https URL获取,可部署的技能可在此https URL获取。
英文摘要:
Interactive LLM agents increasingly work with users across tasks, yet remembering a previous correction does not ensure that the agent changes its behavior in the future. In a diagnostic constructed from anonymized real-world agent interactions, agents using Mem0 still violate 57.5% of applicable preference checks. We introduce TellOnce, a drop-in personalization layer that turns conversational corrections into persistent, scoped, and revisable behavioral rules without updating the underlying agent model. TellOnce identifies which requirements should persist, determines when they apply, reconciles subsequent feedback with existing rules, and prepares reusable checks when reliable verification is possible. We evaluate whether learned corrections improve future behavior by freezing the learned state and testing on subsequent tasks without additional user corrections. Across three models on ClawArena and MemoryArena, TellOnce achieves the lowest preference violation rate in all six settings, reducing violations relative to PGMem by 19.3-42.3 percentage points on ClawArena and 3.0-22.9 points on MemoryArena, while maintaining broadly comparable task performance. On SWE-Together, TellOnce further improves task quality on new coding tasks by learning from feedback received during earlier tasks. Experiment code is available at https://github.com/YujunZhou/TellOnce_exp, and the deployable skill at https://github.com/YujunZhou/tellonce.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。