A new arXiv paper introduces TraceCoder, a concept for making AI-generated code easier to audit. The system records how snippets change during benchmark-driven repair, including the failure text, round number and model explanation behind each edit.

The problem is familiar to developers using coding agents. A model may eventually produce working code, but the path to that result can be opaque. If a later reviewer cannot see which test failure shaped a line, it is harder to judge whether the fix is robust or accidental.

TraceCoder combines a snippet-history schema, a browser visualization tool and stable position keys that track code sections without disrupting surrounding lines. The authors evaluate it on 30 algorithmic programming tasks and show case studies of how benchmark failures influenced final code.

The work is still a research proposal. Its practical point is clear: as AI writes more code, teams will need provenance tools that explain not only what changed, but why the generated program ended up that way.