Papers
Topics
Authors
Recent
Search
2000 character limit reached

Rule Taxonomy and Evolution in AI IDEs: A Mining and Survey Study

Published 10 Jun 2026 in cs.SE and cs.AI | (2606.12231v1)

Abstract: The adoption of AI-powered Integrated Development Environments (AI IDEs) has introduced "Rules" as a novel software artifact, allowing developers to persistently inject project-specific constraints and architectural guidelines into the context of LLMs. Despite their role in aligning AI behavior with developer intent, the taxonomy, evolution, and practical impact of these rules remain largely unexplored. To bridge this gap, we conducted a mixed-methods empirical study on AI IDE rules. By mining 83 open-source projects and extracting 7,310 rules, we established a comprehensive taxonomy comprising 5 primary and 25 secondary categories. We then triangulated these artifacts with survey responses from 99 practitioners. Our analysis identified a contrast between developer priorities and actual configurations: while practitioners rate architectural constraints as highly important, rule files in repositories primarily consist of low-level workflow and code formatting constraints. Furthermore, our analysis of 1,540 rule evolution events revealed that rules are updated frequently. Repository data further indicate that rule evolution is primarily driven by constructive context expansions (29.17%) and enrichments (26.59%). In contrast, surveyed developers reported modifying rules primarily to correct AI errors (77.78%), typically by adding new negative constraints rather than editing existing ones. Finally, an artifact compliance assessment of 160 rule evolution events revealed that updating rules significantly improves the adherence of software artifacts, with the average artifact compliance rate increasing by 22.99% (from 49.14% to 72.13%) following an update. Our study provides empirical insights that can help developers optimize prompting strategies and guide tool builders in designing automated conflict-detection and context-management mechanisms for AI IDEs.

Summary

  • The paper introduces a hierarchical taxonomy constructed from 7,310 manually validated rules across 83 AI IDE projects.
  • It demonstrates that additive rule evolution improves artifact compliance by an average of 22.99%, highlighting practical efficacy.
  • The findings reveal a disconnect between developer priorities and rule prevalence, urging refined rule curation and integration with static analysis tools.

Rule Taxonomy and Evolution in AI IDEs: An Empirical Analysis

Introduction

This study presents a large-scale, mixed-methods empirical investigation of rules in AI-powered integrated development environments (AI IDEs). The research addresses an outstanding gap regarding the taxonomy, evolution, and practical impact of AI IDE rules—textual artifacts enabling developers to impose project-specific behavioral constraints and architectural guidance on LLM-based coding agents. The work integrates extensive mining of open-source projects with a practitioner survey, aiming to systematize the classification of rules, analyze their longitudinal evolution, and quantify their influence on artifact compliance in real-world development.

Rule Taxonomy Construction and Analysis

A dataset of 83 OSS projects developed with AI IDEs (Cursor, Windsurf, Trae, Kiro, Qoder) was curated, yielding 7,310 segmented and manually validated rules. Through inductive open coding, a hierarchical taxonomy was established: 5 primary and 25 secondary categories spanning Architecture & Design, Code Implementation, Development Workflow & Project Management, Quality Assurance, and AI Collaboration Specifications. This taxonomy encapsulates a wide spectrum of constraints, from explicit technical stack selections to abstract LLM behavior directives.

Contrasting the prevalence of rules in repository mining with developer-perceived importance (N=99 survey), the analysis highlights a systematic disconnect. Developers prioritize high-level architectural and LLM-contextual constraints (mean importance values for "System Architecture" and "AI Context Management" >4.1/5), yet the majority of rules in real-world projects are concentrated in formatting, code style, and workflow categories. This divergence reflects an operational focus on correcting immediate friction over the specification of durable, system-level principles, corroborated by the predominance of incremental and AI-assisted rule creation strategies.

Rule Evolution: Patterns, Drivers, and Impact

Longitudinal analysis of 1,540 rule evolution events demonstrates that rules in AI IDEs are frequently updated, particularly in the context of business logic and system architecture (change rates >30%). Most rule evolution consists of additive operations—appending new rules rather than modifying or removing existing ones. Deleted operations are disproportionately found in performance and security categories, indicating the practical difficulty and adverse effects of enforcing non-functional requirements purely via LLM prompting.

A cross analysis of mined commit data and survey reports exposes a stark perception vs. reality gap. While commit histories evidence that rule evolution is primarily driven by context expansion and enrichment (∼55%), developers overwhelmingly report "correction of AI errors" (77.8%) and prompt refinement as their main triggers for evolution. Corrective actions are usually operationalized as negative constraints through additive patches, seldom via holistic prompt refactoring.

The compliance of project artifacts with rules was rigorously evaluated via a structured LLM-as-a-judge protocol. Artifact compliance rates exhibit a statistically significant mean increase of 22.99% post rule update, rising from 49.14% to 72.13%. The effect size is large (Wilcoxon, r=0.71). However, this benefit is uneven: rules governing dependency management and concrete testing practices yield large compliance gains (up to +64.8%), while abstract documentation or system design rules exhibit minimal or negligible impact.

Implications for Practice and Theory

Practical Implications:

  • Natural language rules in AI IDEs are optimal for enforcing explicit, low-level technical constraints but are substantially less effective for high-level architectural or NFR guidance. The latter remain better served by architectural knowledge extraction and formal models.
  • Incrementally accretive (additive) rule management rapidly leads to context bloat, rule staleness, and contradictions. Regular curation, refactoring, and automated conflict detection are essential for sustainable rule hygiene.
  • Static analysis tools and traditional project linters should remain the mechanism of choice for code style and NFRs, with AI IDEs focusing rule context on aspects that benefit most from LLM interpretive capabilities.

Theoretical and Tooling Implications:

  • The identified taxonomy provides a foundation for further empirical studies and motivates research into automated architectural rule extraction from code artifacts, commit histories, and dependency graphs.
  • Observed gaps between perceived importance and empirical prevalence, and between corrective vs. constructive evolution, suggest new research questions on cognitive and organizational dimensions of agentic programming. Models of developer-AI interaction need to account for temporal context drift and prompt staleness.
  • LLM-based compliance evaluation demonstrates feasibility for scalable rule impact assessment but reveals inherent limits in current LLM instruction adherence, especially for rules with broad or ambiguous scope.
  • Advanced AI IDEs must go beyond static prompt injection, toward intent decomposition and multi-layered context management.

Future Directions

Future work should address automated conflict detection and rule refactoring assistance, scalable extraction of architectural rules from codebases, and evaluation in large-scale, multi-team, or legacy enterprise systems for broader generalizability. Integration of dynamic artifact analysis, interaction trace mining, and continuous feedback into rule evolution pipelines will be critical to next-generation agentic IDEs.

Conclusion

This study offers the first comprehensive taxonomy and evolutionary analysis of AI IDE rules, empirically quantifies their effect on codebase compliance, and reveals both the power and limits of prompt-based agent alignment in modern software engineering. Its findings motivate the need for improved rule curation mechanisms, better-integrated static analysis, and research into automatic extraction and decomposition of developer intent.


Reference: "Rule Taxonomy and Evolution in AI IDEs: A Mining and Survey Study" (2606.12231)

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Collections

Sign up for free to add this paper to one or more collections.

Tweets

Sign up for free to view the 2 tweets with 5 likes about this paper.