AgenticTyper: 使用代理AI自动类型化遗留软件项目
AgenticTyper: Automated Typing of Legacy Software Projects Using Agentic AI
AI总结:
AgenticTyper利用代理AI自动类型化遗留软件项目,通过迭代错误纠正和行为保留技术,高效解决类型错误问题。
摘要:
遗留的JavaScript系统缺乏类型安全,使维护风险较高。虽然TypeScript可以有所帮助,但手动添加类型成本很高。先前的自动化类型化研究侧重于类型推断,但很少涉及类型检查设置、定义生成、错误识别或在仓库规模上的行为正确性。我们提出了AgenticTyper,一种基于大型语言模型(LLM)的代理系统,通过迭代错误纠正和行为保留通过转译比较来解决这些差距。在两个专有仓库(81K LOC)上的评估显示,AgenticTyper在20分钟内解决了所有633个初始类型错误,将手动工作量从一天减少。
英文摘要:
Legacy JavaScript systems lack type safety, making maintenance risky. While TypeScript can help, manually adding types is expensive. Previous automated typing research focuses on type inference but rarely addresses type checking setup, definition generation, bug identification, or behavioral correctness at repository scale. We present AgenticTyper, a Large Language Model (LLM)-based agentic system that addresses these gaps through iterative error correction and behavior preservation via transpilation comparison. Evaluation on two proprietary repositories (81K LOC) shows that AgenticTyper resolves all 633 initial type errors in 20 minutes, reducing manual effort from one working day.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。