Traditional code review is slow, manual, and happens too late. By the time a senior engineer reviews a PR, the damage is done β complexity has crept in, security gaps are baked deep, and refactoring costs 10Γ more than it should have.
Engineering teams waste cycles on:
- Manual complexity audits that slow down delivery velocity
- Security vulnerabilities found at production, not at commit
- Leadership flying blind on codebase health trends
- Senior architects stuck reviewing routine quality gates instead of innovating
DevScope AI shifts all of that to the moment you write the code.
DevScope is an automated Code Intelligence Platform β a DevOps Cockpit that audits your code in real-time before it ever reaches production.
| Feature | Description |
|---|---|
| β‘ Sub-500ms Inference | Near-instantaneous refactoring suggestions powered by Groq LPU |
| π Security Auditing | Identifies critical vulnerabilities at write-time, not deploy-time |
| π Complexity Scoring | Quantifies architectural complexity and flags debt hotspots |
| π Health Trend Analytics | 100% visibility into historical codebase health via data-driven dashboards |
| π§ AI Refactor Engine | Llama 3.3 70B generates actionable refactoring suggestions in context |
graph TD
subgraph Input["π₯ Developer Input"]
A[π¨βπ» Code Submission] -->|HTTP POST| B[β‘ FastAPI Backend]
end
subgraph Intelligence["π§ AI Engine"]
B -->|Prompt + Code| C[π€ Groq β Llama 3.3 70B]
C -->|Analysis JSON| D[π Complexity Scorer]
D -->|Scored Result| E[π Security Auditor]
end
subgraph Persistence["ποΈ Data Layer"]
E -->|Write Record| F[(SQLite via SQLAlchemy)]
F -->|Historical Data| G[π Analytics Engine]
end
subgraph Frontend["π₯οΈ React Dashboard"]
G -->|Trend Data| H[π Recharts Visualizer]
C -->|Live Insight| I[π¬ AI Chat Interface]
end
style C fill:#6366f1,stroke:#fff,stroke-width:1px,color:#fff
style H fill:#6366f1,stroke:#fff,stroke-width:1px,color:#fff
style I fill:#6366f1,stroke:#fff,stroke-width:1px,color:#fff
style B fill:#009688,stroke:#fff,stroke-width:1px,color:#fff
style F fill:#003B57,stroke:#aaa,stroke-width:1px,color:#fff
style A fill:#1e1b4b,stroke:#a5b4fc,stroke-width:1px,color:#fff
| Metric | Impact |
|---|---|
| π Manual review overhead reduced | 65% |
| β‘ AI inference latency | < 500ms |
| ποΈ Codebase health visibility | 100% |
| πΈ Late-stage bug fix cost reduction | Significant |
The core intelligence layer sends code to Groq's Llama 3.3 70B with a structured prompt that returns complexity scores, security flags, and refactoring suggestions β all in a single sub-500ms inference pass.
Every analysis is stored via SQLAlchemy to SQLite, building a longitudinal record of codebase health. The analytics engine queries this history to surface trends β turning invisible debt into a visible, manageable metric.
The frontend is designed around minimizing cognitive load β a high-fidelity starfield canvas, modular component architecture, and a real-time chat interface keep engineers in a productive flow state during complex refactoring work.
| Layer | Technologies |
|---|---|
| Frontend | React 18, Vite, Tailwind CSS, Recharts |
| Backend | Python 3.10+, FastAPI, Uvicorn |
| AI / ML | Llama 3.3 (70B), Groq LPU Inference |
| Database | SQLAlchemy, SQLite |
| DevOps | Docker, Docker Compose |
| Integrations | Axios, Pydantic, python-dotenv |
devscope-ai/
βββ backend/
β βββ main.py # FastAPI entry point & API routes
β βββ analyzer.py # AI logic & Groq API integration
β βββ database.py # SQLite connection & SQLAlchemy models
β βββ .env # API keys (environment variables)
β βββ devscope.db # Generated SQLite database file
βββ frontend/
β βββ src/
β β βββ components/
β β β βββ Sidebar.jsx
β β β βββ ChatBubble.jsx
β β β βββ CodeWindow.jsx
β β β βββ MetricsBar.jsx
β β β βββ InputArea.jsx
β β β βββ IssueGraph.jsx
β β β βββ Starfield.jsx
β β βββ App.jsx # Main logic & state
β β βββ main.jsx # React entry point
β β βββ index.css # Global styles & Tailwind
β βββ tailwind.config.js
β βββ package.json
β βββ vite.config.js
βββ README.md
- Python 3.8+
- Node.js v16+ & npm
- A Groq API key (free)
cd backend
# Create and activate virtual environment
python -m venv .venv
source .venv/bin/activate # Windows: .\.venv\Scripts\activate
# Install dependencies
pip install fastapi uvicorn sqlalchemy groq python-dotenv python-multipart
# Configure environment
echo "GROQ_API_KEY=your_gsk_api_key_here" > .env
# Start the server
uvicorn main:app --reloadcd frontend
npm install --legacy-peer-deps
npm run dev# Build and start all services
docker-compose up --build
# Run in detached mode
docker-compose up -d
# View logs
docker-compose logs -f
# Stop and clean up
docker-compose down| Service | URL |
|---|---|
| Frontend UI | http://localhost:5173 |
| Backend API | http://localhost:8000 |
| API Docs | http://localhost:8000/docs |
DevScope AI is built for the community. Contributions that improve the following are especially welcome:
- Prompt Engineering β more accurate complexity and security scoring
- UI Performance β smoother canvas-based animations
- Database Adapters β PostgreSQL / PostGIS support
Please open an issue before submitting a large PR so we can align on direction.
This project is open source. See LICENSE for details.
Crafted for Engineers. Driven by AI. Orbiting the Galaxy. π
DevScope AI β shift quality left, ship with confidence.