DevMate is a context-aware Chrome Extension that brings an AI pair programmer directly into your browser. It eliminates "Alt-Tab Fatigue" by allowing you to debug, refactor, and analyze code on websites like GitHub, Replit, or StackOverflow without ever leaving the tab.
- 🧠 Role-Based AI: Assign specific personas (e.g., Security Auditor, Senior Backend Dev, React Specialist) to get tailored advice.
- 👀 Context-Aware: Automatically scrapes and understands the code currently visible on your screen.
- ⚡ Powered by Gemini: Uses Google's Gemini 2.0 Flash model for ultra-low latency responses.
- 🎨 VS Code Aesthetic: A sleek, dark-mode sidebar that feels like a native IDE.
- 🛠️ Power Tools:
- Resizable sidebar width.
- Syntax highlighting.
- One-click "Copy Code" buttons.
- "Fire-and-Forget" instant activation.
| Component | Technology |
|---|---|
| Frontend | Chrome Extension (Manifest V3), Vanilla JS, HTML, CSS |
| Backend | Python, Django, Django REST Framework (DRF) |
| AI Model | Google Gemini 2.0 Flash |
| Styling | Custom VS Code Dark Theme |
-
Clone the repository:
git clone [https://github.com/chitres178779/devmate.git\] (https://github.com/chitresh178779/devmate.git)
cd devmate/devmate-backend -
Create and activate a virtual environment:
python -m venv venv
# Windows:
venv\Scripts\activate
# Mac/Linux:
source venv/bin/activate -
Install dependencies:
pip install -r requirements.txt -
Set up Environment Variables:
Create a .env file in the devmate-backend folder (same level as manage.py) and add your Google Gemini API Key:
GEMINI_API_KEY=your_api_key_here
DEBUG=True
SECRET_KEY=django-insecure-dev-key
🔑 Get your key here: Google AI Studio -
Run the Server:
python manage.py migrate
python manage.py runserverKeep this terminal window open!
- Open Google Chrome and navigate to chrome://extensions.
- Toggle Developer Mode (top right corner).
- Click Load Unpacked.
- Select the devmate-extension folder from this project.
- DevMate should now appear in your extensions list!
- Navigate to a code repository (e.g., any GitHub file page).
- Refresh the page (Important for the first load).
- Click the DevMate Puzzle Icon in your browser toolbar.
- Select a Role (e.g., Senior Python Engineer).
- Click Activate Sidebar.
- The sidebar will slide out. Ask questions like:
- "Explain this logic."
- "Refactor this function to be O(n)."
- "Find security vulnerabilities."
"Connection failed" or Sidebar doesn't respond?
- Ensure your Django server is running at http://127.0.0.1:8000.
- Check that you have configured CORS_ALLOW_ALL_ORIGINS = True in your Django settings.
"Uncaught (in promise) Error"?
- This usually happens if you try to open the sidebar on a restricted page (like the Chrome Web Store or a New Tab). Try it on a real website like GitHub.
Icons missing?
- Ensure you have the icons/ folder inside devmate-extension with icon16.png, icon48.png, and icon128.png.
- Write Access: Ability to create Pull Requests directly from the sidebar.
- Multi-File Context: Reading the entire file tree instead of just the active file.
- Voice Mode: Talk to your AI teammate using speech-to-text.
- Local LLM Support: Option to switch to Ollama/Llama 3 for privacy.
Contributions are welcome! Please open an issue or submit a pull request for any improvements.
- Fork the 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)
- Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.