Real-Time AI Coding Doctor for High-Integrity Software Engineering
CodeMedic AI is a professional-grade engineering framework designed to detect, analyze, and heal code vulnerabilities in real-time. Whether you are using the responsive web sandbox or the native VS Code extension, CodeMedic delivers precise diagnostics and "one-click" syntactical healing powered by Google Gemini AI.
✨ Key Capabilities
🔍 Bug Explainer (Diagnosis): Instantly identifies why a bug exists and provides a four-stage clinical report: Diagnosis, Pathology, Treatment, and Optimized Prescription.
⚡ One-Click Healing Surgery: Automatically replaces broken logic with functional, clean, and production-ready source blocks.
🛡️ Security & Health Scanner: Scans your entire directory for exposed secrets, performance bottlenecks, and bad practices.
🌍 Multilingual Support: Includes a dedicated Bangla Mode (বাংলা) for localized diagnostic reports and beginner-friendly analogies.
🛠️ AI Refactor Surgeon: Modernizes legacy code, converts loops to map/reductions, and optimizes for performance.
🏗️ Unified Architecture
CodeMedic bridges the gap between cloud-based simulation and native IDE ergonomics:
Web Sandbox Simulator: A React 18 & Vite-powered IDE workspace with a live syntax-highlighted editor and a simulated CLI terminal.
VS Code Native Extension: Built on production-standard VS Code APIs (DiagnosticCollection, WorkspaceEdit) for real-world integration.
📂 Repository Structure
├── src/ # Web Client Dashboard (React/Tailwind)
│ ├── App.tsx # Main Workspace UI
│ └── initialFiles.ts # Lab tasks for simulation
├── server.ts # Production Express API & Gemini Engine
└── vscode-extension/ # Native VS Code Extension Core
└── src/extension.ts # Main Entry Point & Command Hooks