How suchi-bits/code-review-agent-with-context-engineering works
This repository describes a code-review agent that accepts a diff, retrieves relevant standards and prior patterns, performs isolated security, performance, and style reviews, compresses findings, stores reusable patterns, and presents a review. The architecture is documented primarily in the README; the sampled source confirms the knowledge-base and memory components and parts of the review implementation. Since the workflow wiring is not shown in the excerpt, its documented stage relationships are cited to the README.
Main entry points: code.py Retrieve Context
Components 13
Review Workflow
- Parse Diff
code.py - Security Review
code.py - Performance Review
code.py - Style Review
code.py - Compress Findings
code.py - Review Report
code.py
Context Systems
- Retrieve Context
code.py - Coding Standards RAG
code.py
Memory
- Past Patterns
code.py - Store Patterns
code.py - Checkpoint State
code.py
Other components
- Code Author
- Review Consumer
Connections 12
- Code Author → Parse Diff: submits diff
README.md - Parse Diff → Retrieve Context: passes metadata
README.md - Retrieve Context → Coding Standards RAG: queries standards
README.md - Retrieve Context → Past Patterns: selects patterns
README.md - Retrieve Context → Security Review: provides context
README.md - Security Review → Performance Review: continues review
README.md - Performance Review → Style Review: continues review
README.md - Style Review → Compress Findings: passes findings
README.md - Compress Findings → Store Patterns: extracts patterns
README.md - Store Patterns → Past Patterns: writes patterns
README.md - Compress Findings → Review Report: provides summary
code.py - Review Report → Review Consumer: presents review
README.md