- Installation
- Setup API Key
- Basic Usage
- Created Files
- Feature Detail
- Feature Advanced
- Troubleshooting
- Python 3.10+
- Gemini API Key
- Open PowerShell and run the following command:
irm https://raw.githubusercontent.com/RenjiYuusei/CursorFocus/refs/heads/main/install.ps1 | iex- Clone repository to your machine
- Move to project directory:
cd CursorFocus- Install dependencies:
pip install -r requirements.txt- Access Google AI Studio to get API key
- Set up API key by one of the following ways:
- Create
.envfile in the root directory of the project - Add the following line to the file:
GEMINI_API_KEY=your_api_key_here
- Windows:
set GEMINI_API_KEY=your_api_key_here- Mac/Linux:
export GEMINI_API_KEY=your_api_key_here- Set up project:
python setup.py --p path/to/your/project- Run CursorFocus:
python focus.pyThis file contains:
- Summary of project
- Directory structure
- Description of files
- List and description of functions
- Warning about file length
This file contains:
- Cursor setup for project
- Auto update when project changes
- Format: JSON or Markdown
- Auto update every 60 seconds
- Display directory structure as a tree
- Detect changes in project
- Identify and describe important functions
- Check file length according to standard
- Detect project type
- Auto add project with name from directory name
- Use AI to create rules
- Auto adjust the rules according to the project type
- Up to date when there is a change
# List all configured projects
python setup.py --list
# Scan directory for projects
python setup.py --scan [directory_path]
# Remove specific projects
python setup.py --remove project_name_or_index
# Remove all projects
python setup.py --remove all
# Show project details
python setup.py --info project_name_or_index
# Export configuration
python setup.py --export config_backup.json
# Import configuration
python setup.py --import config_backup.json
# Set custom update interval (in seconds)
python setup.py --p project_path --update-interval 120
# Set maximum directory scan depth
python setup.py --p project_path --max-depth 5
# Add project automatically get name from directory name
python setup.py --p project_path
# Add multiple projects with custom names
python setup.py --projects path1 path2 --names "Project1" "Project2"| Parameter | Description |
|---|---|
--projects, -p |
Path to projects to monitor |
--names, -n |
Custom names for projects |
--list, -l |
List all configured projects |
--remove, -r |
Delete project by name/index or all |
--scan, -s |
Scan directory to find projects |
--update-interval, -u |
Set update interval (seconds) |
--max-depth, -d |
Set maximum directory depth for scanning |
--info, -i |
Show detailed information about a project |
--export, -e |
Export configuration to a file |
--import, -m |
Import configuration from a file |
-
Scan and Add Projects Automatically
# Scan current directory python setup.py --scan . # Scan specific directory python setup.py --scan "D:/Projects"
-
Manage Multiple Projects
# Add multiple projects at once python setup.py --projects "path/to/project1" "path/to/project2" --names "Frontend" "Backend" # View list of projects python setup.py --list # Delete specific project python setup.py --remove "CursorFocus"
-
Backup and Restore Configuration
# Backup configuration python setup.py --export backup.json # Restore configuration python setup.py --import backup.json
-
Customize Project Configuration
# Set update interval to 2 minutes and scan depth to 4 levels python setup.py --p "path/to/project" --update-interval 120 --max-depth 4
- Check if API key is set correctly
- Ensure API key is still valid
- Try resetting API key
- Check Python version (3.10+)
- Ensure all dependencies are installed
- Check directory access
- Check internet connection
- Ensure process is running
- Check logs for detailed error
For further assistance, please join Discord.