The Code Whisperer: LLM and Graph-Based AI for Smell and Vulnerability Resolution

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Baqar, Mohammad, Rustamov, Raji, Hughes, Alexander
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914473333227520
author Baqar, Mohammad
Rustamov, Raji
Hughes, Alexander
author_facet Baqar, Mohammad
Rustamov, Raji
Hughes, Alexander
contents Code smells and software vulnerabilities both increase maintenance cost, yet they are often handled by separate tools that miss structural context and produce noisy warnings. This paper presents The Code Whisperer, a hybrid framework that combines graph-based program analysis with large language models to detect, explain, and repair maintainability and security issues within a unified workflow. The method aligns Abstract Syntax Trees (ASTs), Control Flow Graphs (CFGs), Program Dependency Graphs (PDGs), and token-level code embeddings so that structural and semantic signals can be learned jointly. We evaluate the framework on multi-language datasets and compare it with rule-based analyzers and single-model baselines. The results indicate that the hybrid design improves detection performance and produces more useful repair suggestions than either graph-only or language-model-only approaches. We also examine explainability and CI/CD integration as practical requirements for adopting AI-assisted code review in everyday software engineering workflows.
format Preprint
id arxiv_https___arxiv_org_abs_2604_13114
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle The Code Whisperer: LLM and Graph-Based AI for Smell and Vulnerability Resolution
Baqar, Mohammad
Rustamov, Raji
Hughes, Alexander
Software Engineering
Artificial Intelligence
Code smells and software vulnerabilities both increase maintenance cost, yet they are often handled by separate tools that miss structural context and produce noisy warnings. This paper presents The Code Whisperer, a hybrid framework that combines graph-based program analysis with large language models to detect, explain, and repair maintainability and security issues within a unified workflow. The method aligns Abstract Syntax Trees (ASTs), Control Flow Graphs (CFGs), Program Dependency Graphs (PDGs), and token-level code embeddings so that structural and semantic signals can be learned jointly. We evaluate the framework on multi-language datasets and compare it with rule-based analyzers and single-model baselines. The results indicate that the hybrid design improves detection performance and produces more useful repair suggestions than either graph-only or language-model-only approaches. We also examine explainability and CI/CD integration as practical requirements for adopting AI-assisted code review in everyday software engineering workflows.
title The Code Whisperer: LLM and Graph-Based AI for Smell and Vulnerability Resolution
topic Software Engineering
Artificial Intelligence
url https://arxiv.org/abs/2604.13114