Open-source tool / Python

AI Code Review

Give the reviewer the system around the diff

A command-line tool that assembles code changes, structural context and review instructions into packets for coding agents.

AI Code Review — project logo
Original AI Code Review project mark from the public repository. · View full size ↗ · Source

A review needs more than the changed lines

AI Code Review prepares a code change for a reviewer that needs the surrounding system as well as the diff. Its review packets combine the changed code, structural context, line references and instructions, so a coding agent has a more useful starting point for examining correctness, security, design, performance and maintainability.

Compressing context without discarding structure

For Python, the tool extracts class and function signatures and docstrings through the AST. JavaScript and TypeScript use structural heuristics, with optional Tree-sitter parsing. Sensitive paths such as authentication and infrastructure are flagged, and the packet builder applies redaction and exclusions before producing a prompt.

Large changes can be split into bounded prompt chunks. The command-line workflows cover working-tree changes, branch comparisons, untracked files, repository structure analysis, raw context packets and a prompt for synthesizing several agents’ reviews.

A tool for the review process

The output can be written to a file or piped into an agent CLI. A read-only mode avoids writing guide or cache files during inspection. The tool improves how review context is assembled; it does not decide whether a model’s conclusions are correct, or replace a human review of what will be shared.

Implementation at a glance

  • Extracts Python signatures/docstrings and heuristic JS/TS structure.
  • Adds risk-path context, secret redaction and bounded prompt chunks.
  • Supports commit and working-tree review workflows for different agents.

Project status

Context assembly and redaction assist the review workflow. They are not a security audit or a guarantee that model-generated feedback is complete.