paper-with-me

홈 › Papers

CodeTracer: Towards Traceable Agent States

2026-04-13 · Han Li, Yifan Yao, Letian Zhu, Rili Feng, Hongyi Ye, Jiaming Wang, Yancheng He, Pengyu Zou, Lehan Zhang, Xinping Lei, Haoyang Huang, Ken Deng, Ming Sun, Zhaoxiang Zhang, He Ye, Jiaheng Liu arxiv

Code agents are advancing rapidly, but debugging them is becoming increasingly difficult. As frameworks orchestrate parallel tool calls and multi-stage workflows over complex tasks, making the agent's state transitions and error propagation hard to observe. In these runs, an early misstep can trap the agent in unproductive loops or even cascade into fundamental errors, forming hidden error chains that make it hard to tell when the agent goes off track and why. Existing agent tracing analyses either focus on simple interaction or rely on small-scale manual inspection, which limits their scalability and usefulness for real coding workflows. We present CodeTracer, a tracing architecture that parses heterogeneous run artifacts through evolving extractors, reconstructs the full state transition history as a hierarchical trace tree with persistent memory, and performs failure onset localization to pinpoint the failure origin and its downstream chain. To enable systematic evaluation, we construct CodeTraceBench from a large collection of executed trajectories generated by four widely used code agent frameworks on diverse code tasks (e.g., bug fixing, refactoring, and terminal interaction), with supervision at both the stage and step levels for failure localization. Experiments show that CodeTracer substantially outperforms direct prompting and lightweight baselines, and that replaying its diagnostic signals consistently recovers originally failed runs under matched budgets. Our code and data are publicly available.

📄 PDF Abstract BibTeX arXiv:2604.11641

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Optimizing Token Choice for Code Watermarking: An RL Approach

2025-08-16 · Zhimeng Guo, Huaisheng Zhu, Siyuan Xu, Hangfan Zhang 외 arxiv

Protecting intellectual property on LLM-generated code necessitates effective watermarking systems that can operate within code's highly structured, syntactically constrained nature. In this work, we introduce CodeTracer…

Reinforcement Learning

Beware What You Autocomplete: Forensic Attribution of Backdoored Code Completions

2026-07-09 · Anjun Gao, Yueyang Quan, Zhuqing Liu, Minghong Fang arxiv

Large language models have enabled powerful code completion systems that assist developers by predicting subsequent lines of code. However, these models remain vulnerable to backdoor attacks, where malicious fine-tuning …

Code Completion

DentAgent: Evidence-Centric Multi-Agent Coordination for Multimodal Dental Reasoning

2026-08-19 · Zijie Meng, Xiwei Dai, Yixuan Tang, Jin Hao 외 arxiv

Oral diseases affect billions of people worldwide, underscoring a pressing need for accurate and reliable dental assessment that integrates heterogeneous evidence from domain knowledge, radiographs, intraoral photographs…

Response GenerationQuestion Answering

Traceable Fault Diagnosis for Battery Energy Storage Systems via Retrieval-Augmented Multi-Agent O&M Assistant

2026-07-02 · Jiangdi Ru, Bing Li, Yage Huang, Ding Wang 외 arxiv

Large-scale battery energy storage systems (BESSs) require O&M decisions that combine alarms, cell-level measurements, device topology, diagnostic tables, historical cases, and maintenance documents. Monitoring platforms…

Fault DiagnosisImage Retrieval

Traceable Multi-Agent System for Knowledge-Based Forecasting

2026-08-04 · Junhyeok Kang, Sangjun Han, Hyeokjun Choe, Soonyoung Lee arxiv

Enterprise forecasting increasingly relies on autonomous agents that interpret documents, search for data, generate code, and revise models. While this autonomy helps build adaptive forecasting pipelines, it also makes i…