Developer Tools

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

Five specialized AI agents collaborate to score code across four dimensions.

Deep Dive

Samer Attrah has introduced Code Broker, a multi-agent system built on Google's Agent Development Kit (ADK) that automates code quality assessment for Python. The system employs a hierarchical architecture with five specialized agents: a root orchestrator coordinates a sequential pipeline agent, which dispatches three agents in parallel—a Correctness Assessor, a Style Assessor, and a Description Generator. A final Improvement Recommender synthesizes findings into actionable reports. Code Broker scores code across four dimensions—correctness, security, style, and maintainability—and outputs results in both Markdown and HTML formats.

Code Broker combines LLM-based reasoning with deterministic static-analysis signals from Pylint, using asynchronous execution with retry logic for robustness. It also explores lightweight session memory to retain and query prior assessment context. The system can analyze code from local files, directories, or GitHub repositories. Preliminary qualitative evaluation on representative Python codebases suggests that parallel specialized agents produce readable, developer-oriented feedback. However, limitations include evaluation depth, security tooling, large repository handling, and reliance on in-memory persistence. All code and reproducibility materials are publicly available.

Key Points
  • Five-agent hierarchical architecture: orchestrator, pipeline agent, three parallel specialists (Correctness, Style, Description), plus Improvement Recommender
  • Scores code across four dimensions: correctness, security, style, and maintainability, outputting Markdown and HTML reports
  • Combines LLM reasoning with deterministic Pylint static analysis, using async execution with retry logic for robustness

Why It Matters

Automates tedious code reviews, giving developers structured, multi-dimensional feedback without manual effort.