arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.02833cs.SE
收藏

从编写到修剪软件的转变:一种受盆景启发的、用于重塑AI生成代码的IDE

The Shift from Writing to Pruning Software: A Bonsai-Inspired IDE for Reshaping AI Generated Code

Raula Gaikovina Kula, Christoph Treude

AI总结:

针对AI生成代码存在的幻觉及现有IDE管理静态化的问题,受盆景修剪启发提出一种图结构的动态IDE,允许AI无约束生成代码并支持开发者持续重塑与优化代码路径,以提升代码的可维护性与可信度。

摘要:

AI驱动的编码助手的兴起标志着软件构建方式的根本性转变。尽管AI编码助手已被集成到现有的集成开发环境(IDE)中,但其全部潜力在很大程度上仍未被开发。一个关键挑战是,这些AI助手可能会产生幻觉,引导开发者走上AI本不应主导的决策路径,有时甚至在用户不知情或未同意的情况下发生。此外,当前的静态文件IDE缺乏相应的机制来解决诸如追踪AI生成代码的来源以及以符合AI辅助开发动态特性的方式集成版本控制等关键问题。因此,开发者缺乏必要的工具来系统性地管理、优化和验证AI生成的代码,这使得在开发过程中难以确保正确性、可维护性和可信度。现有的IDE将AI生成的代码视为静态文本,对其演进、优化或多种替代路径的管理提供的支持十分有限。受注重平衡、结构和刻意修剪的日本盆景园艺古老艺术的启发:我们提出了一种新的IDE方法,允许AI以其真实的、不受约束的形式生成代码,摆脱传统文件结构的束缚。这种方法促进了一种更加流畅和交互式的代码演进方法。我们引入了受盆景启发的IDE的概念,其结构被组织为生成代码片段和多个代码路径的图,使开发者能够重塑AI生成的代码以满足其需求。我们的愿景呼吁从基于静态文件的模型转向动态、不断演进的系统,允许对生成的代码进行持续优化,IDE随着AI驱动的修改而演进,而不仅仅是作为编写和编辑代码的场所。

英文摘要:

The rise of AI-driven coding assistants signals a fundamental shift in how software is built. While AI coding assistants have been integrated into existing Integrated Development Environments (IDEs), their full potential remains largely untapped. A key challenge is that these AI assistants can suffer from hallucinations, leading developers down decision paths that the AI should not dictate, sometimes even without the users awareness or consent. Moreover, current static-file IDEs lack the mechanisms to address critical issues such as tracking the provenance of AI-generated code and integrating version control in a way that aligns with the dynamic nature of AI-assisted development. As a result, developers are left without the necessary tools to manage, refine, and validate AI generated code systematically, making it difficult to ensure correctness, maintainability, and trust in the development process. Existing IDEs treat AI-generated code as static text, offering limited support for managing its evolution, refinement, or multiple alternative paths. Drawing inspiration from the ancient art of Japanese Bonsai gardening focused on balance, structure, and deliberate pruning: we propose a new approach to IDEs, where AI is allowed to generate in its true, unconstrained form, free from traditional file structures. This approach fosters a more fluid and interactive method for code evolution. We introduce the concept of a Bonsai-inspired IDE, structured as a graph of generated code snippets and multiple code paths, enabling developers to reshape AI generated code to suit their needs. Our vision calls for a shift away from a static file based model toward a dynamic, evolving system that allows for continuous refinement of generated code, with the IDE evolving alongside AI powered modifications rather than merely serving as a place to write and edit code.

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

↑