pip install -r requirements.txtGet your API key from Google AI Studio
Windows (PowerShell):
$env:GOOGLE_AI_API_KEY="your-api-key-here"Linux/Mac:
export GOOGLE_AI_API_KEY='your-api-key-here'python main.pypython test_system.pypython examples/sample_usage.pyfrom main import CodeReviewOrchestrator
# Initialize
orchestrator = CodeReviewOrchestrator()
# Review code
code = '''
def calculate_total(items):
total = 0
for item in items:
total += item['price'] * item['quantity']
return total
'''
results = orchestrator.review_code(code, language="python")
# Check results
print(f"Quality Score: {results['agents']['quality_reviewer']['quality_score']}/100")
print(f"Issues Found: {results['summary']['issues_found']}")✅ Code Structure: Complexity, functions, classes
✅ Security: Vulnerabilities, hardcoded secrets, injection risks
✅ Quality: Code smells, best practices, documentation
After running reviews, you'll find:
review_results_*.json- Detailed review resultslogs/code_review.log- System logsevaluation_results.json- Evaluation metrics (if tests run)
- Review the demo output in
main.py - Try examples in
examples/sample_usage.py - Run full tests with
python test_system.py - Customize agents in
agents/directory
- ✅ Multi-Agent System - Sequential agents (3 specialized agents)
- ✅ Custom Tools - CodeAnalysisTools for AST parsing, complexity analysis
- ✅ Sessions & Memory - InMemorySessionService + MemoryBank
- ✅ Context Engineering - Progressive context sharing between agents
- ✅ Observability - Logging, tracing, metrics collection
- ✅ Evaluation - Agent performance testing framework
API Key Error:
ValueError: API key required
→ Set GOOGLE_AI_API_KEY environment variable
Import Error:
ModuleNotFoundError: No module named 'google.genai'
→ Run pip install -r requirements.txt
No Results:
→ Check logs in logs/code_review.log
- GitHub Issues: Report bugs
- Documentation: See README.md for detailed info