Back to Projects

RepoAegis

Engineering Challenge

Standard code review processes often fail to capture cross-agent risks or identify systemic regressions in complex software ecosystems. For an AI research lab, the challenge is to create an audit system that can analyze entire codebases for security, logic flaws, and architectural alignment using multiple specialized LLMs simultaneously.

Architecture

  • Multi-Agent Logic: Built on LangGraph to manage complex, multi-turn agentic workflows and cyclic graph logic.
  • Parallel Review System: Unlike sequential reviews, RepoAegis shards the codebase into logical modules and dispatches them to agents in parallel, significantly reducing audit time for large repos.
  • Regression Safeguards: Implements a validation layer that checks proposed changes against a "Ground Truth" of previous stable commits to prevent regressions.
  • Scope Controls: Enforces strict boundaries on agent behavior, ensuring that the "Auditor" agents stay within the bounds of the audit and do not attempt unauthorized code generation.

Design Trade-offs

  • Autonomy vs. Safety: We implemented a "Human-in-the-loop" (HITL) gating system for high-risk architectural changes. While this limits full autonomy, it is a non-negotiable requirement for a system performing production-grade audits.
  • Complexity vs. Utility: By choosing a cross-agent model over a single "Super-Model" (like GPT-4o), we increase architectural complexity but gain the benefit of model-specific strengths (e.g., one model's superior logic over another's better coding style).

Tech Stack: Python, LangGraph, Docker, Claude API, Codex API.