Cortex is a system that analyzes entire code repositories and generates structured, AI-powered insights about the codebase, its components, and overall architecture.
Instead of manually exploring hundreds of files, Cortex helps you understand any project in minutes.
-
Accepts a public GitHub repository URL
-
Clones and processes the codebase
-
Parses and analyzes source files
-
Uses AI to generate:
- File-level summaries
- Project-level explanation
-
Returns a structured understanding of the system
Client
↓
Go API (Core Engine)
↓
Worker Pool (Concurrency Layer)
↓
Python AI Service
↓
Response (Summaries + Insights)
- Go (Golang)
- Concurrency (goroutines, channels, worker pools)
- Python
- LLM API (OpenAI or equivalent)
- Docker
- AWS EC2 (deployment)
- ⚡ Concurrent file processing using worker pools
- 🧠 AI-powered code understanding
- 🧱 Clean system architecture (Go + Python separation)
- 📦 Scalable pipeline design (ready for queues, RAG, etc.)
POST /analyze{
"repo_url": "https://github.com/user/repo"
}{
"project_summary": "This project is a REST API service handling user authentication...",
"files": [
{
"file": "main.go",
"summary": "Entry point of the application..."
}
]
}- User submits a GitHub repository URL
- The system clones the repository locally
- Files are scanned and filtered
- Files are split into manageable chunks
- Worker pool processes files concurrently
- Each chunk is sent to the AI service
- AI returns summaries
- System aggregates results into a final explanation
- Repo cloning
- File scanning
- Basic processing
- Worker pool
- Parallel file processing
- Python AI service
- File + project summaries
- Separation of concerns (Go = orchestration, Python = AI)
- Concurrency-first backend design
- Incremental system building (no overengineering)
- Real-world system architecture
go run ./cmdcurl -X POST http://localhost:8080/analyze \
-H "Content-Type: application/json" \
-d '{"repo_url":"https://github.com/user/repo"}'- Dockerized application
- Hosted on AWS EC2
- Exposed via public API
- Upload ZIP repositories
- Codebase visualization (flowcharts / graphs)
- Chat with codebase (RAG-based)
- Persistent storage of analysis
- Multi-repo comparison
Cortex is designed to demonstrate:
- Advanced Go concurrency patterns
- Distributed system thinking
- AI integration in backend systems
- Real-world problem solving
Cortex is not just a project — it's a system designed to explore how modern backend engineering and AI can work together to solve real developer problems.