arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.07921cs.SEcs.AI
收藏

DeepCode: 开放代理编程

DeepCode: Open Agentic Coding

The University of Hong Kong(香港大学)

Zongwei Li, Zhonghang Li, Zirui Guo, Xubin Ren, Chao Huang

AI总结:

DeepCode通过系统信息流管理,实现文档到代码库的高保真合成,超越现有商业代理和人类专家,推动自主科学复现的发展。

摘要:

近年来,大型语言模型(LLMs)的进步催生了强大的编程代理,使代码助手能够进化为代码工程师。然而,现有方法在实现高保真度的文档到代码库合成(如科学论文到代码)方面仍面临重大挑战,主要由于信息过载与LLMs上下文瓶颈之间的根本矛盾。在本文中,我们引入了DeepCode,一个完全自主的框架,通过系统的信息流管理从根本上解决了这一挑战。通过将仓库合成视为通道优化问题,DeepCode无缝协调四种信息操作,以在有限的上下文预算下最大化任务相关信号:通过蓝图蒸馏进行源压缩、使用具有状态的代码内存进行结构化索引、通过检索增强生成进行条件知识注入,以及闭环错误纠正。在PaperBench基准上的广泛评估表明,DeepCode在性能上达到最先进的水平,明显优于领先的商业代理如Cursor和Claude Code,并且在关键复现指标上,甚至超过了顶级机构的博士级人类专家。通过系统地将论文规范转换为与人类专家质量相媲美的生产级实现,本工作建立了新的自主科学复现基础,能够加速研究评估和发现。

英文摘要:

Recent advances in large language models (LLMs) have given rise to powerful coding agents, making it possible for code assistants to evolve into code engineers. However, existing methods still face significant challenges in achieving high-fidelity document-to-codebase synthesis--such as scientific papers to code--primarily due to a fundamental conflict between information overload and the context bottlenecks of LLMs. In this work, we introduce DeepCode, a fully autonomous framework that fundamentally addresses this challenge through principled information-flow management. By treating repository synthesis as a channel optimization problem, DeepCode seamlessly orchestrates four information operations to maximize task-relevant signals under finite context budgets: source compression via blueprint distillation, structured indexing using stateful code memory, conditional knowledge injection via retrieval-augmented generation, and closed-loop error correction. Extensive evaluations on the PaperBench benchmark demonstrate that DeepCode achieves state-of-the-art performance, decisively outperforming leading commercial agents such as Cursor and Claude Code, and crucially, surpassing PhD-level human experts from top institutes on key reproduction metrics. By systematically transforming paper specifications into production-grade implementations comparable to human expert quality, this work establishes new foundations for autonomous scientific reproduction that can accelerate research evaluation and discovery.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑