arXiv:2604.23088cs.SEcs.AI2026-04

用多智能体自动分析代码质量,生成可操作报告。

Code Broker: A Multi-Agent System for Automated Code Quality Assessment

论文配图:Code Broker: A Multi-Agent System for Automated Code Quality Assessment
图 1 · 摘自论文原文
  • 五层架构协同:根协调器调度三类专业智能体并行评估
  • 报告量化正确性、安全性、风格与可维护性四维度,支持多格式输出
  • 适合开发团队提升代码规范,尤其关注自动化质量检测的实践者

我们提出 Code Broker,一个基于 Google Agent Development Kit (ADK) 构建的多智能体系统,可分析单个 Python 文件、本地目录树或远程 GitHub 仓库中的源码,并生成结构化、可操作的质量评估报告。系统采用五层分层架构,由根协调器调度顺序执行的流水线代理,后者并发派遣三个专用代理:正确性评估器、风格评估器和描述生成器,最终由改进推荐器整合结果。报告在标准化量表上量化四个质量维度——正确性、安全性、风格与可维护性,并以 Markdown 与 HTML 格式输出,便于集成至多样化开发流程。Code Broker 融合基于大模型的语义推理与 Pylint 提供的确定性静态分析信号,采用异步执行与指数退避重试机制提升对临时 API 失败的鲁棒性,并探索轻量级会话记忆以保留和查询跨运行的评估上下文。本文作为技术报告,聚焦系统设计、提示工程与工具编排,对不同规模的代表性 Python 代码库进行了初步定性评估。结果显示,并行专业化智能体能生成可读性强、面向开发者反馈,补充传统 lint 工具;但当前仍存在评估深度不足、安全工具有限、大型仓库处理困难及仅依赖内存持久化等局限。所有代码与可复现材料公开:https://github.com/Samir-atra/agents_intensive_dev。

原文摘要 · Abstract (English)

We present Code Broker, a multi agent system built on Google s Agent Development Kit ADK that analyses Python source code from individual files, local directory trees, or remote GitHub repositories and generates structured, actionable quality assessment reports. The system realises a hierarchical five agent architecture in which a root orchestrator coordinates a sequential pipeline agent that, in turn, dispatches three specialised agents concurrently a Correctness Assessor, a Style Assessor, and a Description Generator before synthesising their findings through an Improvement Recommender. Reports quantify four quality dimensions correctness, security, style, and maintainability on a normalised scale and are rendered in both Markdown and HTML for integration into diverse developer workflows. Code Broker fuses LLM based semantic reasoning with deterministic static analysis signals from Pylint, employs asynchronous execution with exponential backoff retry logic to improve robustness under transient API failures, and explores lightweight session memory for retaining and querying prior assessment context across runs. We frame this paper as a technical report on system design, prompt engineering, and tool orchestration, and present a preliminary qualitative evaluation on representative Python codebases of varying scale. The results indicate that parallel specialised agents produce readable, developer oriented feedback that complements traditional linting, while also foregrounding current limitations in evaluation depth, security tooling, large repository handling, and the exclusive reliance on in memory persistence. All code and reproducibility materials are publicly available: https://github.com/Samir-atra/agents_intensive_dev.

代码质量多智能体自动化评估LLM

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。