Beyond Functional Correctness: Design Issues in AI IDE-Generated Large-Scale Projects
Organizations: School of Computer Science, Wuhan University, China · School of Mathematical and Computational Sciences, Massey University, New Zealand · School of Computer Science, Nanjing University of Science and Technology, China · School of Computer Science, Central China Normal University, China ·
Abstract
New generation of AI coding tools, including AI-powered IDEs equipped with agentic capabilities, can generate code within the context of the project. These AI IDEs are increasingly perceived as capable of producing project-level code at scale. However, there is limited empirical evidence on the extent to which they can generate large-scale software systems and what design issues such systems may exhibit. To address this gap, we conducted a study to explore the capability of Cursor in generating large-scale projects and to evaluate the design quality of projects generated by Cursor. First, we propose a Feature-Driven Human-In-The-Loop (FD-HITL) framework that systematically guides project generation from curated project descriptions. We generated 10 projects using Cursor with the FD-HITL framework across three application domains and multiple technologies. We assessed the functional correctness of these projects through manual evaluation, obtaining an average functional correctness score of 91%. Next, we analyzed the generated projects using two static analysis tools, CodeScene and SonarQube, to detect design issues. We identified 1,305 design issues categorized into 9 categories by CodeScene and 3,193 issues in 11 categories by SonarQube. Our findings show that (1) when used with the FD-HITL framework, Cursor can generate functional large-scale projects averaging 16,965 LoC and 114 files; (2) the generated projects nevertheless contain design issues that may pose long-term maintainability and evolvability risks, requiring careful review by experienced developers; (3) the most prevalent issues include Code Duplication, high Code Complexity, Large Methods, Framework Best-Practice Violations, Exception-Handling Issues and Accessibility Issues; (4) these design issues violate design principles such as SRP, SoC, and DRY. The replication package is at https://github.com/Kashifraz/DIinAGP
Figures & tables
| Inclusion Criteria | |
| I1 | The project should have at least 8k lines of code (LoC). |
| I2 | The project should be generated in a technology stack with at least 3 technologies. |
| I3 | The project is built in a complex architectural style with multiple architectural components. |
| E4 | The project uses external dependencies. |
| Exclusion Criteria | |
| E1 | The project is small and not built in a complex architectural style with multiple architectural components. |
| Project ID | Project Name | SonarQube Issues | CodeScene Issues |
| P1 | CVBuilder | 231 | 217 |
| P2 | VocabularyApp | 350 | 90 |
| P3 | Ecommerce | 268 | 113 |
| P4 | JobApplication | 253 | 75 |
| P5 | ChartMaker | 53 | 62 |
| P6 | FormPlugin | 97 | 74 |
| Project | LoC | Files | Functional Correctness | Dependencies | Technology Stack |
| P1_CVBuilder | 26,798 | 137 | 86.36% | 47 | MERN stack |
| P2_VocabularyApp | 11,066 | 83 | 84.61% | 35 | React Native, Spring Boot & MySQL |
| P3_Ecommerce | 14,644 | 112 | 88.46% | 37 | React, Spring Boot & MySQL |
| P4_JobApplication | 15,312 | 79 | 89.47% | 28 | MERN stack |
| P5_ChartMaker | 9,391 | 49 | 92.85% | 20 | Vue.js, Django & MySQL |
| P6_FormPlugin | 8,594 | 27 | 92.85% | 4 | PHP, MySQL & WordPress API |
| Principle | CodeScene | SonarQube |
| Don’t Repeat Yourself (DRY) ( Fowler, 2008 ) | Code Duplication | Dead, Duplicate or Redundant Code |
| Single Responsibility Principle (SRP) ( Martin, 2014 ) | Complex Method, Large Method, Excess Number of Function Arguments | Design Principle Violation |
| Separation of Concerns (SoC) ( Tarr et al., 1999 ) | Overall Code Complexity | |
| Fail Fast ( Shore, 2004 ) | Exception-Handling Issue | |
| Keep It Simple, Stupid (KISS) ( Martin, 2009 ) | Complex Conditional, Bumpy Road Ahead, Deep Nested Complexity | Code Complexity, Control Flow and Conditionals Issue |
| Project | BLOCKER | CRITICAL | MAJOR | MINOR | INFO | Total |
| P1_CVBuilder | 0 | 9 | 123 | 99 | 0 | 231 |
| P2_VocabularyApp | 0 | 41 | 277 | 32 | 0 | 350 |
| P3_Ecommerce | 8 | 65 | 145 | 48 | 2 | 268 |
| P4_JobApplication | 0 | 2 | 154 | 93 | 2 | 253 |
| P5_ChartMaker | 1 | 17 | 11 | 24 | 0 | 53 |
| P6_FormPlugin | 0 | 31 | 50 | 16 | 0 | 97 |
Software Engineering
Software engineering studies how to design, build, test, deploy, and maintain reliable software systems and the processes behind them.
See all 270 papers