XCodeReviewer is a modern code audit platform powered by Large Language Models (LLM), designed to provide developers with intelligent, comprehensive, and in-depth code quality analysis and review services.
🌟 Why Choose XCodeReviewer?
In the fast-paced world of software development, ensuring code quality is crucial. Traditional code audit tools are rigid and inefficient, while manual audits are time-consuming and labor-intensive. XCodeReviewer leverages the powerful capabilities of Google Gemini AI to revolutionize the way code reviews are conducted:
🤖 AI-Driven Deep Analysis: Beyond traditional static analysis, understands code intent and discovers deep logical issues.
🎯 Multi-dimensional, Comprehensive Assessment: From security, performance, maintainability to code style, providing 360-degree quality evaluation.
💡 Clear, Actionable Fix Suggestions: Innovative What-Why-How approach that not only tells you "what" the problem is, but also explains "why" and provides "how to fix" with specific code examples.
⚡ Real-time Feedback, Instant Improvement: Whether it's code snippets or entire repositories, get fast and accurate analysis results.
✨ Modern, Beautiful User Interface: Built with React + TypeScript, providing a smooth and intuitive user experience.
🎬 Project Demo
Main Feature Interfaces
📊 Intelligent Dashboard
Real-time display of project statistics, quality trends, and system performance, providing comprehensive code audit overview
⚡ Instant Analysis
Support for quick code snippet analysis with detailed What-Why-How explanations and fix suggestions
Get the URL and anonymous key from project settings
Run database migration scripts:
# Execute in Supabase SQL Editorcat supabase/migrations/full_schema.sql
If Supabase is not configured, the system will run in demo mode without data persistence
✨ Core Features
🚀 Project Management
One-click Repository Integration: Seamlessly connect with GitHub, GitLab, and other mainstream platforms.
Multi-language "Full Stack" Support: Covers popular languages like JavaScript, TypeScript, Python, Java, Go, Rust, and more.
Flexible Branch Auditing: Support for precise analysis of specified code branches.
⚡ Instant Analysis
Code Snippet "Quick Paste": Directly paste code in the web interface for immediate analysis results.
10+ Language Instant Support: Meet your diverse code analysis needs.
Millisecond Response: Quickly get code quality scores and optimization suggestions.
🧠 Intelligent Auditing
AI Deep Code Understanding: Based on Google Gemini(It is expected that more mainstream platform API functions will be opened in the future), providing intelligent analysis beyond keyword matching.
Select programming language (supports 10+ languages)
Paste code or upload file
Click "Start Analysis" to get AI analysis results
View detailed issue reports and fix suggestions
Project Management
Visit the /projects page
Click "New Project" to create a project
Configure repository URL and scan parameters
Start code audit task
View audit results and issue statistics
Audit Tasks
Create audit tasks in project detail page
Select scan branch and exclusion patterns
Configure analysis depth and scope
Monitor task execution status
View detailed issue reports
Build and Deploy
# Development mode
pnpm dev
# Build production version
pnpm build
# Preview build results
pnpm preview
# Code linting
pnpm lint
Environment Variables
Variable
Required
Description
VITE_GEMINI_API_KEY
✅
Google Gemini API key
VITE_GEMINI_MODEL
❌
AI model name (default: gemini-2.5-flash)
VITE_GEMINI_TIMEOUT_MS
❌
Request timeout (default: 25000ms)
VITE_SUPABASE_URL
❌
Supabase project URL
VITE_SUPABASE_ANON_KEY
❌
Supabase anonymous key
VITE_APP_ID
❌
Application identifier (default: xcodereviewer)
VITE_MAX_ANALYZE_FILES
❌
Maximum files to analyze (default: 40)
VITE_LLM_CONCURRENCY
❌
LLM concurrency limit (default: 2)
VITE_LLM_GAP_MS
❌
Gap between LLM requests (default: 500ms)
🤝 Contributing
We warmly welcome all forms of contributions! Whether it's submitting issues, creating PRs, or improving documentation, every contribution is important to us. Please contact us for detailed information.
Development Workflow
Fork this project
Create your feature branch (git checkout -b feature/AmazingFeature)
Commit your changes (git commit -m 'Add some AmazingFeature')
Push to the branch (git push origin feature/AmazingFeature)
Currently, XCodeReviewer is positioned in the rapid prototype verification stage, and its functions need to be gradually improved. Based on the subsequent development of the project and everyone's suggestions, the future development plan is as follows (to be implemented as soon as possible):
Multi-platform/Local Model Support: In the future, we will quickly add API calling functions for major mainstream models at home and abroad, such as OpenAI, Claude, Tongyi Qianwen, etc. And the function of calling local large models (to meet data privacy requirements).
Multi-Agent Collaboration: Consider introducing a multi-agent collaboration architecture, which will implement the Agent + Human Dialogue feedback function, including multi-round dialogue process display, human dialogue interruption intervention, etc., to obtain a clearer, more transparent, and supervised auditing process, thereby improving audit quality.
Professional Report File Generation: Generate professional audit report files in relevant formats according to different needs, supporting customization of file report formats, etc.
Custom Audit Standards: Different teams have their own coding standards, and different projects have specific security requirements, which is exactly what we want to do next in this project. The current version is still in a "semi-black box mode", where the project guides the analysis direction and defines audit standards through Prompt engineering, and the actual analysis effect is determined by the built-in knowledge of powerful pre-trained AI models. In the future, we will combine methods such as reinforcement learning and supervised learning fine-tuning to develop support for custom rule configuration, define team-specific rules through YAML or JSON, provide best practice templates for common frameworks, etc., to obtain audit results that are more in line with requirements and standards.
⭐ If this project helps you, please give us a Star! Your support is our motivation to keep moving forward!
📄 Disclaimer
This disclaimer is intended to clarify the responsibilities and risks associated with the use of this open source project and to protect the legitimate rights and interests of project authors, contributors and maintainers. The code, tools and related content provided by this open source project are for reference and learning purposes only.
1. Non-Professional Advice
The code analysis results and suggestions provided by this tool are for reference only and do not constitute professional security audits, code reviews, or legal advice.
Users must combine manual reviews, professional tools, and other reliable resources to thoroughly validate critical code (especially in high-risk areas such as security, finance, or healthcare).
2. No Warranty and Liability Disclaimer
This project is provided "as is" without any express or implied warranties, including but not limited to merchantability, fitness for a particular purpose, and non-infringement.
Authors, contributors, and maintainers shall not be liable for any direct, indirect, incidental, special, punitive, or consequential damages, including but not limited to data loss, system failures, security breaches, or business losses, even if advised of the possibility.
3. Limitations of AI Analysis
This tool relies on AI models such as Google Gemini, and results may contain errors, omissions, or inaccuracies, with no guarantee of completeness or reliability.
AI outputs cannot replace human expert judgment; users are solely responsible for the final code quality and any outcomes.
4. Third-Party Services and Data Privacy
This project integrates third-party services like Google Gemini, Supabase, and GitHub, and usage is subject to their respective terms of service.
Users must obtain and manage API keys independently; this project does not store, transmit, or process user sensitive credentials.
Availability, accuracy, privacy, or disruptions of third-party services are the responsibility of the providers; project authors assume no liability.
5. User Responsibilities
Users must ensure their code does not infringe third-party intellectual property rights and complies with open-source licenses and applicable laws.
This tool must not be used for illegal, malicious, or rights-infringing purposes; users bear full legal and financial responsibility for all consequences. Authors, contributors, and maintainers shall bear no responsibility for such activities or their consequences and reserve the right to pursue abusers.
6. Open Source Contributions
Code, content, or suggestions from contributors do not represent the project's official stance; contributors are responsible for their accuracy, security, and compliance.
Maintainers reserve the right to review, modify, reject, or remove any contributions.
For questions, please contact maintainers via GitHub Issues. This disclaimer is governed by the laws of the project's jurisdiction.