An AI-powered code review and project analysis tool that provides intelligent, contextual descriptions of your codebase.
- 🔄 Automated Code Reviews with AI-powered insights
- 📝 Intelligent file and function documentation
- 🌳 Project structure analysis and visualization
- 📏 Code quality metrics and alerts
- 🎯 Smart project type detection
- 🔍 Duplicate code detection
- 🧩 Modular and extensible design
- 🎛️ Customizable rules and configurations
- 🔄 Real-time project monitoring
- Clone the repository:
git clone https://github.com/Dror-Bengal/CursorFocus.git
- Create and activate a virtual environment (recommended):
python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
- Install the package in development mode:
cd CursorFocus
pip install -e .
- Create a
.env
file from the template:
cp .env.example .env
- Add your Gemini API key to the
.env
file:
GEMINI_API_KEY=your_api_key_here
From your project directory:
cursorfocus-review
This will generate a CodeReview.md
file in your project root with:
- Project structure analysis
- File-by-file review
- Function documentation
- Code duplication alerts
- Project metrics
To start real-time project monitoring:
cursorfocus
This will create and update a Focus.md
file in your project root with:
- Current project state
- Directory structure
- File analysis
- Development guidelines
You can customize CursorFocus by creating a config.json
file in your project root:
{
"ignored_directories": [
"node_modules",
"venv",
".git"
],
"ignored_files": [
"*.pyc",
".DS_Store"
],
"max_depth": 3,
"update_interval": 60
}
- Python 3.8 or higher
- Google Gemini API key
See CONTRIBUTING.md for guidelines on how to contribute to this project.
This project is licensed under the MIT License - see the LICENSE file for details.
See CHANGELOG.md for a list of changes and version history.