Spaces:
Running
Running
A newer version of the Gradio SDK is available: 6.20.0
metadata
title: AI Code Review Agent
emoji: π€
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 5.31.0
app_file: gradio_app/app.py
pinned: false
π€ AI Code Review Agent
A multi-agent AI platform that simulates a software engineering team reviewing your code.
What it does
- Repository Analysis β Detects language, frameworks, architecture
- Bug Detection β Runs Ruff + Bandit static analysis, then LLM review
- Test Generation β Creates pytest test cases for uncovered functions
- Code Review β Reviews SOLID principles and suggests refactors
- Full Report β Combines everything into a structured engineering report
Setup
This Space requires one secret:
| Secret | Description |
|---|---|
OPENROUTER_API_KEY |
Your OpenRouter API key |
Go to Space Settings β Secrets and add OPENROUTER_API_KEY.
Local development
git clone https://github.com/Padmanav-Mohanty/ai-code-review-agent.git
cd ai-code-review-agent
pip install -r requirements.txt
export OPENROUTER_API_KEY=your_key_here
python gradio_app/app.py
Tech Stack
- Agents: Custom multi-agent pipeline (repo analysis, bug detection, test gen, code review)
- LLM: OpenRouter (default:
meta-llama/llama-3.3-70b-instruct) - Frontend: Gradio
- Static Analysis: Ruff, Bandit
- Repo Cloning: GitPython