mlsanityData to 14 Oct 2026

SmartDoc: A Context-Aware Agentic Method Comment Generation Plugin

arXiv 2511.00450 ↗First posted 1 Nov 2025cs.SEcited by 0

On the map: LLM agents and tool use → Software engineering coding agents

Abstract (arXiv)

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 used in the comment generation. At the beginning, these nested methods are visited and a call graph is generated. This graph is then traversed using depth-first search (DFS), enabling the provision of full-context to enrich Large Language Model (LLM) prompts. Result: The product is a software, as a plugin, developed for Java codebase and installable on IntelliJ IDEA. This plugin can serve concurrently for methods whose comments are being updated , and it shares memory across all flows to avoid redundant calls. o measure the accuracy of this solution, a dedicated test case is run to record SmartDoc generated comments and their corresponding ground truth. For each collected result-set, three metrics are computed, BERTScore, BLEU and ROUGE-1. These metrics will determine how accurate the generated comments are in comparison to the ground truth. Result: The obtained accuracy, in terms of the precision, recall and F1, is promising, and lies in the range of 0.80 to 0.90 for BERTScore.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 8 of its 19 references that are in the map. First posted on arXiv 1 Nov 2025.

Builds on

8 of 19 references.

References · 8

  1. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  2. 2024AutoCodeRover: Autonomous Program Improvementcited by 278
  3. 2023Using an LLM to Help With Code Understandingcited by 228
  4. 2020A Transformer-based Approach for Source Code Summarizationcited by 133
  5. 2025Agentic Large Language Models, a surveycited by 108
  6. 2024Data-efficient Fine-tuning for LLM-based Recommendationcited by 104
  7. 2024"We Need Structured Output": Towards User-centered Constraints on Large Language Model Outputcited by 46
  8. 2024AUTOGENICS: Automated Generation of Context-Aware Inline Comments for Code Snippets on Programming Q&A Sites Using LLMcited by 5

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026RAG-Reflect: Agentic Retrieval-Augmented Generation with Reflections for Comment-Driven Code Maintenance on Stack Overflow
  2. 2025MANTRA: Enhancing Automated Method-Level Refactoring with Contextual RAG and Multi-Agent LLM Collaboration
  3. 2025Context Engineering for Multi-Agent LLM Code Assistants Using Elicit, NotebookLM, ChatGPT, and Claude Code
  4. 2026CodeScout: Contextual Problem Statement Enhancement for Software Agents
  5. 2025Agent READMEs: An Empirical Study of Context Files for Agentic Coding
  6. 2026Understanding Dominant Themes in Reviewing Agentic AI-authored Code
  7. 2025Enhancing Software Development with Context-Aware Conversational Agents: A User Study on Developer Interactions with Chatbots
  8. 2026Using Agentic AI for contextualized and multifaceted code review at Ericsson