Intelligent Code Review & Security Analysis powered by Cerebras AI
An AI-powered tool that automatically analyzes codebases for:
- 🛡️ Security vulnerabilities
- 🐛 Code quality issues
- ⚡ Performance bottlenecks
- 📚 Documentation gaps
- 🎯 Best practice violations
- Real-time Analysis: Instant feedback on code commits
- Multi-language Support: Go, JavaScript, Python, Java, and more
- Security Focus: OWASP Top 10, injection attacks, auth issues
- Performance Insights: Memory leaks, inefficient algorithms
- GitHub Integration: Seamless PR reviews
- Beautiful Reports: HTML/JSON output with actionable insights
- AI Engine: Cerebras Llama models for code analysis
- Backend: Go with Gin framework
- Frontend: React with modern UI
- Analysis: AST parsing + pattern matching
- Integration: GitHub API, Git hooks
- Security Audit: Scan popular repos, find real vulnerabilities
- Live Analysis: Real-time feedback as you type
- Batch Processing: Analyze entire organizations
- CI/CD Integration: Automated PR reviews
hackathon-ai-auditor/
├── backend/ # Go API server
├── frontend/ # React dashboard
├── analyzer/ # Core analysis engine
├── integrations/ # GitHub, Git integrations
├── demo/ # Demo scripts and data
└── docs/ # Documentation
- Cerebras Integration: Replaced OpenAI with Cerebras for enhanced code analysis.
- Security Analysis: Identifies security vulnerabilities, including SQL injection, XSS.
- Performance Optimization: Detects memory leaks, inefficient algorithms.
- Code Quality Checks: Highlights code smells, best practices, and maintainability issues.
- GitHub Webhook Support: Seamless integration with CI/CD pipelines.
- Demo Scripts: Ready-to-run scripts to showcase the tool's capabilities.
- Enhance Frontend: Implement a responsive React dashboard for better visualization.
- Extend Language Support: Add support for more programming languages.
- Advanced Configurations: Allow user-defined rules and custom setups.
- Real-time Collaboration: Live analysis while coding in shared environments.
-
Environment Setup
cp backend/.env.example backend/.env # Fill in your credentials and configuration # Ensure Cerebras API is configured correctly export CEREBRAS_API_KEY="your_cerebras_api_key" export CEREBRAS_API_URL="https://api.cerebras.ai/v1/chat/completions"
-
Start the Backend
cd backend go run main.go -
Run the Demo
bash demo/test-analysis.sh
Built with ❤️ for the Cerebras Hackathon