CodeSage is an AI-driven, multi-agent coding assistant that helps developers write better code, detect bugs, optimize performance, and receive real-time mentorship — all within a seamless development environment.
Whether you're a beginner or a seasoned engineer, CodeSage accelerates your workflow with intelligent feedback, one-click fixes, and contextual AI guidance.
- 🔍 AI Code Review – Get instant feedback on readability, structure, and best practices.
- 🐞 Real-Time Bug Detection – Identify and resolve logic errors and vulnerabilities early.
- ⚙️ Performance Optimization – Receive suggestions to improve code speed and maintainability.
- 💬 AI Chatbot Mentor – Chat with a context-aware assistant for best practices and explanations.
- ⚡ One-Click Fixes – Instantly accept or reject AI-suggested improvements.
- Write Code in the Monaco editor.
- AI Agents Process the code using the multi-agent CrewAI backend.
- Receive Insights:
- Code review feedback
- Bug and security analysis
- Performance optimization suggestions
- Apply Fixes with a single click.
- Ask Questions to the Gemini-powered chatbot mentor for guidance.
- AI Models: Gemini 2.0 family via OpenRouter
- Frontend: Next.js, Tailwind CSS, shadcn/ui
- Backend: CrewAI (multi-agent framework), FastAPI, Judge0
- Editor: Monaco Editor
- Deployment: Vercel
Fork and clone the repo from github.com/avinashv4/CodeSage
git clone https://github.com/avinashv4/CodeSage.git
cd CodeSageCreate a .env file in both the frontend and backend folders with the following variables:
NEXT_PUBLIC_BACKEND_URL=http://localhost:8000
NEXT_PUBLIC_OPENROUTER_API_KEY=your_openrouter_api_keyGEMINI_API_KEY=your_gemini_api_key
OPENAI_API_KEY=your_openai_api_keycd backend
uv venv # create a virtual environment using uv
source .venv/bin/activate # or use the appropriate command for your OS
uv pip install -r requirements.txt
uvicorn main:app --reload # runs FastAPI serverIn a separate terminal:
cd frontend
npm install
npm run devYour app should now be running locally at:
Frontend → http://localhost:3000
Backend API → http://localhost:8000
Contributions are welcome! If you'd like to fix a bug, suggest a feature, or contribute improvements, please open an issue or submit a pull request.