An interactive Streamlit application that analyzes your development environment and provides actionable recommendations to optimize it for better efficiency and performance, powered by Google's Gemini AI model.
- System Analysis: Collects detailed system information including CPU, memory, disk usage, GPU stats, and running processes.
- AI-Powered Recommendations: Generates optimization recommendations using Google's Gemini AI model.
- IDE Settings Optimization: Applies recommended changes to your IDE settings (e.g., Visual Studio Code). (Work in Progress)
- Interactive UI: User-friendly interface built with Streamlit, including tabs for system info, recommendations, and processes.
- Process Monitoring: Displays running processes and their resource usage.
-
Clone the Repository
git clone https://github.com/anubhab-m02/dev-env-optimizer.git cd dev-env-optimizer -
Create a Virtual Environment (Optional but Recommended)
python3 -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install Dependencies
pip install -r requirements.txt
If
requirements.txtis not available, install dependencies manually:pip install streamlit psutil pandas dotenv google-generativeai
Optional dependencies for GPU and screen info:
pip install GPUtil screeninfo
-
Set Up Environment Variables
Create a
.envfile in the project root directory and add your Gemini AI API key:GEMINI_API_KEY=your_gemini_ai_api_key_here
-
Run the Application
streamlit run main.py
-
Navigate the App
- Run Analysis: Click on "Run Analysis" in the sidebar to analyze your system.
- View Recommendations: Go to the "💡 Recommendations" tab to see AI-generated suggestions.
- Apply Recommendations: Click on "Apply Recommendations to IDE Settings" to update your IDE settings.
- Refresh Analysis: Click on "Refresh Analysis" to reset and start a new analysis.
GEMINI_API_KEY: Your Gemini AI API key. Obtain it from Google Generative AI.
- Python 3.7 or higher
- Operating System: Windows, macOS, or Linux
- IDE Supported: Visual Studio Code (modify paths if using a different IDE)
Contributions are welcome! Please follow these steps:
-
Fork the repository.
-
Create your feature branch:
git checkout -b feature/your-feature-name
-
Commit your changes:
git commit -m 'Add some feature' -
Push to the branch:
git push origin feature/your-feature-name
-
Open a pull request.