Secure, efficient, and explainable AI platform for end-to-end code quality
πΊοΈ Repository-wide dependency mapping and hotspots
π Dynamic runtime analysis for regressions
π¬ Chat-first, explainable reviews with diffs and one-click fixes
π― Adaptive style learning (project-specific)
π§ͺ AI test generation (Java via Diffblue, JS/Python via GPT)
π° ROI-ranked refactoring guidance
π‘οΈ CVE-enriched security remediation
ποΈ Confidence-scored noise filtering
This repository is a monorepo with backend, frontend, AI orchestration, infrastructure, and comprehensive documentation with automated changelogs and governance.
graph TB
subgraph "User Interface"
UI["π¨ UI<br/>Monaco Editor + D3 Viz"]
end
subgraph "API Gateway"
GW["πͺ API Gateway<br/>Authentication & Routing"]
end
subgraph "Core Services"
AUTH["π Security<br/>User Management"]
ANALYSIS["π Analysis<br/>Static & Runtime"]
AI["π€ AI Orchestrator<br/>LLM Integration"]
REVIEW["π Review<br/>Code Analysis"]
end
subgraph "Testing & Quality"
TEST["π§ͺ Tests<br/>Generation & Execution"]
METRICS["π Metrics<br/>Quality Scoring"]
end
subgraph "Data Layer"
DB[("π PostgreSQL<br/>Application Data")]
CACHE[("π΄ Redis<br/>Session & Cache")]
STORAGE[("π¦ MinIO<br/>File Storage")]
end
UI --> GW
GW --> AUTH
GW --> ANALYSIS
GW --> AI
GW --> REVIEW
ANALYSIS --> TEST
AI --> REVIEW
REVIEW --> METRICS
AUTH --> DB
ANALYSIS --> DB
AI --> CACHE
REVIEW --> DB
TEST --> STORAGE
METRICS --> DB
Architecture diagram showing the core components and data flow
Codie/
βββ π§ codie-backend/ # FastAPI microservices
β βββ API Gateway
β βββ Analysis orchestration
β βββ Static/runtime analysis
β βββ Style ML & LLM review
β βββ Security & scoring
βββ π¨ codie-frontend/ # Next.js/React with Tailwind
β βββ Radix UI components
β βββ Monaco editor
β βββ D3/VisX visualizations
βββ π€ ai-agents/ # AI prompts & automation
β βββ Prompts & pipelines
β βββ .clinerules
β βββ Codemods & scripts
βββ π³ infra/ # Infrastructure & DevOps
β βββ Docker Compose (local)
β βββ Kubernetes manifests
β βββ CI/CD configurations
βββ π docs/ # Comprehensive documentation
βββ PRDs & architecture
βββ Service documentation
βββ DevOps runbooks
βββ ADRs & OpenAPI specs
β’ π³ Docker & Docker Compose
β’ π’ Node.js 18+
β’ π Python 3.11+
β’ πΎ Git
-
Clone the repository
git clone https://github.com/Cyril-36/Codie.git cd Codie -
Set up environment
# Copy environment templates cp .env.sample .env # Fill in your secrets and configuration
-
Start the application
docker compose up --build
-
Access the services β’ π Frontend: http://localhost:5174
β’ π‘ Backend API: http://localhost:8000/docs
β’ ποΈ MinIO: http://localhost:9001
β’ π PostgreSQL: localhost:5432
β’ π΄ Redis: localhost:6379
β’ Framework: FastAPI
β’ Language: Python 3.11+
β’ Database: PostgreSQL
β’ Cache: Redis
β’ Storage: MinIO
β’ Container: Docker
β’ Framework: Next.js/React
β’ Styling: Tailwind CSS
β’ Components: Radix UI
β’ Editor: Monaco
β’ Visualization: D3, VisX
β’ LLM Integration: GPT-4, Claude
β’ Code Analysis: AST parsing
β’ Test Generation: Diffblue (Java)
β’ Style Learning: Custom ML models
β’ Containerization: Docker, Docker Compose
β’ Orchestration: Kubernetes
β’ CI/CD: GitHub Actions
β’ Monitoring: Custom metrics
Coming soon - Dashboard interface
Coming soon - Analysis report view
Coming soon - AI chat interface
Screenshots will be updated with actual application images
β’ π TLS encryption in production
β’ π« Least-privilege tokens
β’ π¦ Sandboxed runtimes
β’ π SBOM & vulnerability scans
β’ π€ Secret/PII redaction to LLMs
β’ π Python: ruff, black, mypy
β’ π TypeScript: ESLint, strict mode
β’ π§ͺ Testing: Unit, integration, E2E
β’ π Coverage gates enforced
β’ π Keep a Changelog + SemVer
β’ π Per-module CHANGELOGs
β’ π€ CI-enforced docs updates
β’ π OpenAPI sync with Spectral lint
β’ π Optional metrics: Docs/Test Coverage, Performance, Security
We welcome contributions! Please see our Contributing Guide for details.
Backend Development:
cd codie-backend
python3 -m pip install -r requirements.txt
# Configure optional probes via .env
export ENABLE_POSTGRES_PROBE=true
export POSTGRES_DSN=postgresql://postgres:postgres@localhost:5432/postgres
export ENABLE_REDIS_PROBE=true
export REDIS_URL=redis://localhost:6379/0
uvicorn app.main:app --reloadHealth Checks:
curl http://localhost:8000/livez # Liveness probe
curl http://localhost:8000/readyz # Readiness probeFrontend Development:
cd codie-frontend
npm install
npm run devβ’ π Fork the repository
β’ π Create a feature branch
β’ β
Add tests for new features
β’ π Update documentation
β’ π Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
Contact Email: cyrilchaitanya@gmail.com