惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

P
Palo Alto Networks Blog
大猫的无限游戏
大猫的无限游戏
Martin Fowler
Martin Fowler
GbyAI
GbyAI
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
量子位
T
The Blog of Author Tim Ferriss
Y
Y Combinator Blog
Microsoft Azure Blog
Microsoft Azure Blog
C
CERT Recently Published Vulnerability Notes
Recent Announcements
Recent Announcements
A
About on SuperTechFans
aimingoo的专栏
aimingoo的专栏
P
Privacy International News Feed
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
博客园 - 叶小钗
L
Lohrmann on Cybersecurity
G
GRAHAM CLULEY
T
The Exploit Database - CXSecurity.com
Hugging Face - Blog
Hugging Face - Blog
P
Proofpoint News Feed
NISL@THU
NISL@THU
博客园 - Franky
C
Cybersecurity and Infrastructure Security Agency CISA
The Register - Security
The Register - Security
M
MIT News - Artificial intelligence
Know Your Adversary
Know Your Adversary
A
Arctic Wolf
F
Full Disclosure
T
Threat Research - Cisco Blogs
P
Privacy & Cybersecurity Law Blog
The Hacker News
The Hacker News
博客园 - 【当耐特】
D
Docker
T
Tailwind CSS Blog
S
SegmentFault 最新的问题
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Jina AI
Jina AI
Help Net Security
Help Net Security
V
Visual Studio Blog
小众软件
小众软件
B
Blog
Vercel News
Vercel News
云风的 BLOG
云风的 BLOG
N
News and Events Feed by Topic
Forbes - Security
Forbes - Security
N
Netflix TechBlog - Medium
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
C
Cisco Blogs
Security Archives - TechRepublic
Security Archives - TechRepublic

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
Show HN: adamsreview – better multi-agent PR reviews for Claude Code!
Mariano Gobe · 2026-05-11 · via DEV Community

Advanced Multi-Agent System for Enhanced Code Review with Claude Code

The proliferation of AI-assisted code review tools has introduced novel paradigms for identifying defects and improving code quality. While existing solutions like Claude Code's built-in /review and /ultrareview commands, alongside third-party offerings such as CodeRabbit and Greptile, provide valuable automation, they often operate under a single-pass, monolithic review model. This approach can limit their ability to perform in-depth analysis, manage complex dependencies, and effectively integrate human feedback. This article details the design and implementation of adamsreview, a Claude Code plugin engineered to address these limitations by leveraging a multi-agent, multi-stage review process.

adamsreview is conceived as a system of interconnected sub-agents, orchestrated to perform distinct analytical tasks. This architecture allows for a more granular and robust review process, moving beyond the capabilities of simpler, single-pass AI reviews. The core philosophy is to decompose the review into manageable stages, each handled by specialized agents, with explicit state management and mechanisms for human intervention and iterative refinement.

System Architecture and Core Components

The adamsreview plugin comprises six distinct Claude Code slash commands, each representing a stage or utility within the review workflow:

  1. /review: Initiates a comprehensive, multi-stage review process.
  2. /codex-review: Integrates with Codex CLI for an ensemble review approach, augmenting Claude's analysis.
  3. /add: Allows for the explicit inclusion of specific files or directories in the review scope.
  4. /promote: Facilitates the promotion of specific findings to higher stages of review or action.
  5. /walkthrough: Engages Claude's AskUserQuestion feature to present uncertain findings or items requiring human judgment iteratively.
  6. /fix: Orchestrates the resolution of identified issues, including group-based agent dispatch and regression testing.

A key architectural tenet is the management of review state. Unlike ephemeral review processes, adamsreview utilizes persistent JSON artifacts stored on disk. This state management is crucial for enabling multi-stage reviews where context can be cleared between stages without losing critical information. Scripts are included to manage the lifecycle of this state, ensuring data integrity and facilitating subsequent review iterations.

Multi-Stage Review Process

The primary /review command is the entry point to the multi-stage process. It initiates a series of parallel sub-agent analyses, followed by a sequential validation pass.

Parallel Sub-Agent Analysis

Upon invocation, /review triggers an array of specialized Claude Code agents to operate in parallel. These agents are tasked with specific aspects of code analysis:

  • Security Agent: Scans for common security vulnerabilities (e.g., SQL injection, XSS, improper authentication).
  • Performance Agent: Identifies potential performance bottlenecks (e.g., inefficient loops, redundant computations, suboptimal data structures).
  • Maintainability Agent: Assesses code readability, complexity, and adherence to design principles (e.g., SOLID, DRY).
  • Bug Detection Agent: Focuses on identifying logical errors, off-by-one errors, null pointer dereferences, and other common programming mistakes.
  • Style Agent: Enforces coding style guidelines and best practices.

Each of these agents operates independently, processing the provided code context. The results are aggregated, and a preliminary report is generated.

Sequential Validation Pass

Following the parallel analysis, a sequential validation pass is performed. This stage involves a more holistic evaluation of the aggregated findings. A dedicated "Validator Agent" reviews the output from the parallel sub-agents, looking for:

  • False Positives: Cross-referencing findings to identify redundant or incorrect reports.
  • Interdependencies: Analyzing how findings in one area might impact another.
  • Severity Prioritization: Assigning severity levels (e.g., Critical, High, Medium, Low) to identified issues based on potential impact.

This validation pass aims to refine the raw output from the sub-agents, producing a more coherent and actionable review report.

State Management and Context Persistence

The persistence of review state through JSON artifacts is a distinguishing feature of adamsreview. This mechanism allows for:

  1. Intermediate State Saving: After each significant stage of the review, the state is serialized to a JSON file. This file typically includes the code diff, the aggregated findings from previous stages, and any user-provided annotations.
  2. Contextual Clarity Between Stages: When a user invokes a subsequent command (e.g., /walkthrough after /review), the system loads the relevant JSON state. This ensures that the AI has access to the historical findings and the current state of the review, even if the intermediate Claude Code session context has been cleared.
  3. Selective Review Scope: The /add command allows users to augment the review scope with specific files or directories. This information is appended to the persistent state, ensuring that future review stages consider the expanded scope.
  4. State Management Scripts: Utility scripts are provided to manage the creation, updating, and clearing of these JSON state files, offering a programmatic interface for controlling the review lifecycle.

The JSON state might adopt a structure similar to this:

{
  "commit_hash": "a1b2c3d4e5f67890",
  "base_branch": "main",
  "review_files": [
    "src/utils.py",
    "src/models.py"
  ],
  "findings": [
    {
      "stage": "initial_analysis",
      "agent": "security_agent",
      "file": "src/models.py",
      "line": 42,
      "message": "Potential SQL injection vulnerability in user_query function.",
      "severity": "High",
      "details": "The user input is directly concatenated into the SQL query string without sanitization."
    },
    {
      "stage": "initial_analysis",
      "agent": "performance_agent",
      "file": "src/utils.py",
      "line": 105,
      "message": "Inefficient loop detected in data_processing function.",
      "severity": "Medium",
      "details": "Consider using a vectorized operation instead of iterating through each element."
    }
  ],
  "user_annotations": [],
  "review_status": "in_progress"
}

Enter fullscreen mode Exit fullscreen mode

Human-AI Collaboration and Iterative Refinement

adamsreview places a strong emphasis on facilitating human-AI collaboration, particularly in handling uncertainty and driving towards resolution.

/walkthrough Command

The /walkthrough command is designed to address findings that are potentially ambiguous or require domain-specific knowledge that the AI might not fully possess. It leverages Claude's AskUserQuestion feature to interactively engage the user:

  1. Presentation of Findings: The command iterates through the aggregated findings from the persistent state.
  2. Interactive Querying: For each finding deemed to require human judgment (e.g., based on confidence scores or pre-defined heuristics), adamsreview uses AskUserQuestion to present the finding to the user.
  3. User Feedback Loop: The user can then provide feedback, ask clarifying questions, or instruct the AI on how to proceed. This interaction is recorded and incorporated back into the persistent state.
  4. Iterative Refinement: This process can be repeated, allowing users to progressively refine the review results and guide the AI's understanding.

This interactive approach transforms the review from a black-box process into a dynamic dialogue.

/promote Command

The /promote command allows users to explicitly elevate the importance of certain findings. This can be useful for:

  • Marking Critical Issues: Users can mark specific findings as "critical" or "must-fix" regardless of the AI's initial severity assessment.
  • Contextualizing Findings: Users can add additional context or justifications to findings, which can then be used by subsequent agents or for reporting.

The promoted findings are updated in the persistent JSON state, influencing subsequent review or fix stages.

Ensemble Review with Codex CLI

The /codex-review command introduces an ensemble approach by integrating with the Codex CLI. This offers an alternative or complementary review perspective:

  1. Code Export: The relevant code diff or subset of files is exported in a format compatible with Codex CLI.
  2. Codex CLI Execution: The Codex CLI is invoked with specific prompts designed to elicit code review feedback.
  3. Result Aggregation: The output from Codex CLI is parsed and merged with the findings from Claude's native review.
  4. Cross-Validation: This ensemble approach enables cross-validation of findings. If both Claude and Codex identify a similar issue, the confidence in that finding increases. Discrepancies can highlight areas where one model might be stronger than the other or where an issue is particularly subtle.

This strategy aims to leverage the strengths of different AI models, potentially reducing the false positive rate and increasing the detection of more nuanced bugs.

Automated Fixing and Regression Prevention

The /fix command is designed to automate the remediation of identified issues, incorporating a robust process for preventing regressions.

Per-Fix-Group Agent Dispatch

Issues are often related. For instance, a security vulnerability might necessitate changes across multiple files, or a refactoring effort might span several related functions. The /fix command groups related findings together. For each identified "fix group":

  1. Specialized Fix Agent: A dedicated "Fix Agent" is dispatched. This agent is tasked with understanding the scope of the fix group and proposing code modifications.
  2. Iterative Fixing: The agent may iterate on its proposed fixes, attempting to resolve all issues within the group.
  3. Commit Planning: Proposed changes are staged for review.

Re-Review and Regression Testing

After the Fix Agent has proposed modifications, adamsreview performs a crucial re-review and regression check:

  1. Post-Fix Review: The modified code is immediately subjected to a subset of the original review agents (particularly the bug detection and security agents). This "post-fix review" aims to identify any new issues introduced by the attempted fixes (regressions).
  2. Unit Test Execution (Optional but Recommended): If a testing framework is integrated with the development environment, adamsreview can trigger unit tests. This provides a more direct measure of functional correctness.
  3. Survivor Commit: Only changes that pass the post-fix review and all executed tests are committed. Findings that introduce regressions or new issues are reverted.
  4. Iterative Fix Attempt: If fixes are reverted, the findings associated with those fixes are returned to the persistent state, potentially with updated information from the regression analysis, allowing for further attempts at remediation.

This disciplined approach ensures that automated fixes are safe and do not compromise existing code quality.

Comparison with Existing Tools

adamsreview distinguishes itself from existing solutions in several key aspects:

  • /review vs. /ultrareview: While /ultrareview in Claude Code offers enhanced capabilities, it draws from the "Extra Usage" pool, incurring direct costs. adamsreview operates on a standard Claude Code subscription (Max plan recommended for extensive context windows), providing a more cost-effective, deeper review.
  • Depth of Analysis: By employing a multi-stage, multi-agent approach with parallel sub-analyses and explicit validation, adamsreview aims for a more comprehensive detection rate of bugs and vulnerabilities compared to single-pass tools.
  • State Persistence: The explicit JSON state management enables multi-stage reviews and context continuity, which is not a standard feature in many AI review tools that often operate within a single conversational turn or ephemeral session.
  • Human-AI Collaboration: The /walkthrough command, using AskUserQuestion, provides a structured way for humans to guide and validate AI findings, fostering a more collaborative development process.
  • Ensemble Capabilities: The /codex-review command's integration with Codex CLI offers an ensemble review perspective, potentially improving accuracy and reducing false positives.
  • Automated Fix and Regression Prevention: The /fix command's structured approach to fixing issues, including post-fix re-reviews and regression checks, provides a more robust automated remediation process than simple patch generation.

Implementation Details and Usage

The adamsreview plugin is installed using Claude Code's plugin marketplace:

/plugin marketplace add adamjgmiller/adamsreview
/plugin install adamsreview@adamsreview

Enter fullscreen mode Exit fullscreen mode

Example Workflow:

  1. Initiate Review:

    /review
    

    This triggers the multi-stage analysis. Findings are stored in a JSON artifact.

  2. Add Specific Files (Optional): If the initial review missed certain critical files, or if the user wants to ensure specific files are considered in subsequent stages:

    /add src/config/settings.py tests/unit/test_api.py
    

    The state is updated to include these files.

  3. Interactive Walkthrough: For findings that require user input:

    /walkthrough
    

    Claude Code prompts the user with questions about specific findings. User responses update the state.

  4. Promote a Finding: If a user identifies a finding as particularly critical:

    /promote finding_id_123 --priority critical --comment "This is a major security flaw."
    

    The finding's metadata is updated in the state.

  5. Ensemble Review (Optional): To augment Claude's analysis with Codex:

    /codex-review
    

    Codex CLI is invoked, and its findings are merged into the state.

  6. Automated Fix Attempt: To fix identified issues:

    /fix
    

    Agents attempt to fix issues, followed by a re-review and regression check. Commits are made only for safe fixes.

  7. Clearing State: To start a fresh review, the JSON state file needs to be removed or managed by the utility scripts.

The recommended plan for using adamsreview effectively is Claude Code's Max plan, which typically offers larger context windows. This is beneficial for processing extensive codebases and detailed diffs, which are common in complex PRs, thereby maximizing the effectiveness of the multi-agent system.

Future Enhancements and Considerations

  • Customizable Agent Configurations: Allowing users to enable/disable specific sub-agents or tune their parameters.
  • Integration with CI/CD Pipelines: Enabling adamsreview to be triggered automatically as part of a CI/CD workflow.
  • Advanced Regression Detection: Incorporating more sophisticated static analysis tools or fuzzing techniques for regression detection.
  • Learning from User Feedback: Developing mechanisms for the AI to learn from user annotations and correction patterns over time.
  • Broader LLM Integration: Extending the ensemble review to include other large language models.

Conclusion

adamsreview presents a robust and extensible framework for AI-assisted code review, designed to overcome the limitations of simpler, monolithic approaches. By employing a multi-stage, multi-agent architecture with sophisticated state management, human-AI collaboration features, and automated regression prevention, it aims to deliver significantly more accurate and actionable insights than existing tools. The system's modular design allows for continuous improvement and adaptation, paving the way for more intelligent and collaborative code review processes.

For organizations seeking to enhance their code quality and streamline their development workflows through advanced AI-driven code review solutions, consulting services can be invaluable. Visit https://www.mgatc.com to explore how expert guidance can help implement and optimize such sophisticated systems within your development lifecycle.


Originally published in Spanish at www.mgatc.com/blog/adamsreview-better-multi-agent-pr-reviews-for-claude-code/