Getting Better at Working With You: Compiling User Corrections into Runtime Enforcement for Coding Agents

Yujun Zhou, Kehan Guo, Haomin Zhuang, Xiangqi Wang, Yue Huang +6 more
6/11/2026
cs.LGcs.CL

Official code: YujunZhou/TRACE_exp (0 stars, MIT, last commit 2026-06-11).

Abstract

Interactive LLM agents are becoming part of daily work, but they do not reliably become easier to work with over time: a correction remembered in one session may still be violated in the next. We study this gap between preference access and preference compliance. In tasks derived from anonymized real-user friction cases, Mem0 memory still leaves 57.5% of applicable preference checks violated. We introduce Test-time Rule Acquisition and Compiled Enforcement (TRACE), a drop-in skill-layer pipeline for coding-agent runtimes that mines user corrections, rewrites them as atomic rules, and compiles them into runtime checks that must pass before an agent completes future tasks. Unlike runtime checks written ahead of time by developers, TRACE skills come from the user's own chat corrections. We evaluate TRACE with simulated user-in-the-loop experiments on ClawArena coding-agent tasks and MemoryArena-derived memory-intensive tasks. On ClawArena, TRACE reduces held-out preference violation from 100.0% to 37.6% on in-distribution tasks and from 100.0% to 2.0% on out-of-distribution tasks. On MemoryArena-derived tasks, TRACE reduces in-distribution violation from 100.0% to 60.5% while matching or exceeding the strongest memory baseline on task pass. These results suggest that compiling corrections into runtime enforcement can address a repeated-friction failure mode that memory alone does not reliably solve, reducing the need for users to restate the same correction across future sessions. Experiment code is available at https://github.com/YujunZhou/TRACE_exp, and the deployable skill is available at https://github.com/YujunZhou/tellonce.

View on arXivView PDF

Code Implementations(1)

MIT
00Shell, PythonJun 11, 20264 months agoMIT

Similar Papers

Cite this paper

@article{zhou2026getting,
  title  = {Getting Better at Working With You: Compiling User Corrections into Runtime Enforcement for Coding Agents},
  author = {Yujun Zhou and Kehan Guo and Haomin Zhuang and Xiangqi Wang and Yue Huang and Zhenwen Liang and Pin-Yu Chen and Tian Gao and Nuno Moniz and Nitesh V. Chawla and Xiangliang Zhang},
  year   = {2026},
  eprint = {2606.13174},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.13174v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.13174.svg)](https://codeofpaper.com/paper/2606.13174)

Discussion