DEV Community

Prudhvi Duvvu
Prudhvi Duvvu

Posted on

Building CodeMind: An AI Code Review Agent With Persistent Memory

When we started working on CodeMind, we wanted to build something that could do more than just ask an AI model to review code.

Most AI code review tools can look at the current code and provide suggestions. But there is one important limitation: they usually do not remember what happened in previous reviews.

We wanted to explore a different idea.

What if an AI code reviewer could remember useful lessons from previous reviews and use them when reviewing code again?

That idea became CodeMind.

CodeMind is an AI-powered code review agent that combines static code analysis, LLM reasoning, evidence verification, deterministic scoring, and persistent memory using Hindsight.

The Problem We Wanted to Solve

A normal code review starts with the current code.

For example, a developer may submit a repository and ask an AI model to find security problems or code quality issues.

The model may find a problem and suggest a solution.

But when the developer submits another review later, the model may not remember the previous review.

This can lead to repeated suggestions and repeated analysis.

For a real software project, previous reviews can contain useful information.

There may be:

  • Security problems that were already discovered
  • Coding patterns used by the team
  • Previous fixes
  • Project-specific conventions
  • Common mistakes
  • Lessons from earlier reviews

We wanted CodeMind to make use of this information.

What Is CodeMind?

CodeMind is an AI code review agent that analyzes source code and produces an engineering-focused review.

A developer can provide a public GitHub repository or upload a ZIP file.

The system then processes the code through multiple stages.

The basic workflow is:



Code Repository
      |
      v
Static Analysis
      |
      v
Hindsight Recall
      |
      v
LLM Review
      |
      v
Evidence Verification
      |
      v
Deterministic Scoring
      |
      v
Hindsight Retain
      |
      v
Review Report

Enter fullscreen mode Exit fullscreen mode

Top comments (0)