A multi-agent AI system for automated code review. Five specialized agents collaborate sequentially to analyze Python code for bugs, security vulnerabilities, performance issues, and documentation quality.
Note: Live demo not hosted (each review runs 5 LLM agents sequentially — available on request for demonstrations).
- Code Analyst — Identifies logical errors, edge cases, and exception handling issues
- Security Expert — Scans for OWASP Top 10 vulnerabilities and security flaws
- Performance Optimizer — Detects algorithmic bottlenecks and inefficient patterns
- Documentation Specialist — Reviews docstrings, comments, and code clarity
- Quality Assurance — Compiles the final report with prioritized recommendations
- File Upload — Drag-and-drop Python file upload for instant review
- GitHub Integration — Clone and analyze public repositories directly from a URL
- Real-time Agent Status — See which agent is currently analyzing your code
- Detailed Reports — Markdown reports with severity levels, line numbers, and suggested fixes
- Multi-Agent Workflow — Sequential task execution with shared context between agents
- Dark Mode UI — Modern FastAPI interface
- Backend: FastAPI + Python 3.8
- AI Framework: CrewAI (multi-agent orchestration)
- LLM: OpenAI GPT-4
- Frontend: Vanilla JavaScript, HTML, CSS
- Containerization: Docker
- Python 3.8+
- OpenAI API key
- Clone the repository:
git clone https://github.com/francis-rf/code-review-crew.git
cd code-review-crew- Install dependencies:
pip install -r requirements.txt- Create
.envfile:
cp .env.example .env
# Edit .env and add your OPENAI_API_KEY- Run the application:
python app.py- Open browser:
http://localhost:8000
docker build -t code-review-crew .
docker run -p 8000:8000 --env-file .env code-review-crew- Select Upload File mode
- Drop your
.pyfile onto the upload area - Click Start Code Review
- Wait for all 5 agents to complete their analysis
- Download the generated Markdown report
- Select GitHub Repository mode
- Paste a public GitHub repo URL
- Select the files to analyze
- Click Analyze Selected Files
code-review-crew/
├── app.py # FastAPI application
├── src/
│ ├── crew.py # CrewAI orchestration logic
│ ├── logger.py # Logging configuration
│ └── config/
│ ├── agents.yaml # Agent definitions (role, goal, backstory)
│ ├── tasks.yaml # Task definitions
│ └── settings.py # Application settings
├── static/ # Frontend
│ ├── index.html
│ ├── app.js
│ └── style.css
├── examples/ # Sample Python files for testing
├── output/ # Generated review reports
├── logs/ # Application logs
├── Dockerfile
└── requirements.txt
| Method | Endpoint | Description |
|---|---|---|
| GET | / |
Serves frontend UI |
| GET | /health |
Health check |
| POST | /api/review/upload |
Review an uploaded Python file |
| POST | /api/review/github |
Review a GitHub repository |
| GET | /api/files/list |
List Python files in a GitHub repository |
Code Review Interface showing multi-agent analysis
MIT License