SmartDoc: A Context-Aware Agentic Method Comment Generation Plugin
Vahid Etemadi, Gregorio Robles

TL;DR
SmartDoc is an IntelliJ IDEA plugin that leverages AI and context-aware analysis of Java methods to generate precise, up-to-date comments, enhancing program comprehension during software maintenance.
Contribution
It introduces a novel context-aware AI-powered plugin for automated method comment generation in Java codebases within IntelliJ IDEA.
Findings
Achieved BERTScore accuracy between 0.80 and 0.90.
Enables concurrent comment updates for multiple methods.
Shares memory across flows to optimize performance.
Abstract
Context: The software maintenance phase involves many activities such as code refactoring, bug fixing, code review or testing. Program comprehension is key to all these activities, as it demands developers to grasp the knowledge (e.g., implementation details) required to modify the codebase. Methods as main building blocks in a program can offer developers this knowledge source for code comprehension. However, reading entire method statements can be challenging, which necessitates precise and up-to-date comments. Objective: We propose a solution as an IntelliJ IDEA plugin, named SmartDoc, that assists developers in generating context-aware method comments. Method: This plugin acts as an Artificial Intelligence (AI) agent that has its own memory and is augmented by target methods' context. When a request is initiated by the end-user, the method content and all its nested method calls are…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Topic Modeling · Software Engineering Techniques and Practices
