Intelligent codebase context analyzer for faster developer onboarding
New developers often take 1–3 months to become productive in a new codebase due to:
- Difficulty finding where to start
- Understanding file and module dependencies
- Outdated or missing documentation
- Repeatedly asking common questions
CodeContext analyzes your codebase in seconds and generates:
- Interactive dependency maps to visualize structure
- Knowledge hotspots to identify critical files using PageRank
- Personalized learning paths that suggest a logical reading order
- Contextual insights including Git history, authorship, and change frequency
Result: Reduce onboarding time from 3 months to approximately 3 weeks.
| Feature | Description |
|---|---|
| Interactive Dependency Maps | Zoomable force-directed graphs showing file relationships |
| Knowledge Hotspots | PageRank-based identification of critical files |
| Learning Paths | Topologically sorted reading order |
| Git Integration | Authors, change frequency, and recent commit data |
| Team Contribution Map | Visibility into knowledge silos and bus-factor risks |
| Multi-Language Support | Java and Kotlin (additional languages planned) |
| Performance | Parallel parsing with intelligent caching |
| Reporting | Clean HTML reports with D3.js visualizations |
Interactive dependency graph with knowledge hotspot highlighting and learning path generation
Live Example
./gradlew run --args="analyze ."- JDK 21+
- Git (required for Git history analysis)
git clone https://github.com/sonii-shivansh/CodeContext.git
cd CodeContext
./gradlew build
./gradlew installDistPre-built binaries will be available on the GitHub Releases page.
./gradlew run --args="analyze /path/to/project"
./build/install/codecontext/bin/codecontext analyze /path/to/project
./build/install/codecontext/bin/codecontext analyze .open output/index.html # macOS
xdg-open output/index.html # Linux
start output/index.html # WindowsStarting CodeContext analysis for: /path/to/project
Scanning repository...
Found 247 files
Parsing code...
Parsed 247 files
Analyzing Git history...
Building dependency graph...
Hot Zones (Top 5):
- UserService.kt (0.0847)
- DatabaseConfig.kt (0.0623)
- AuthMiddleware.kt (0.0521)
- ApiController.kt (0.0498)
- DataRepository.kt (0.0445)
Generating report...
Report generated at: /path/to/project/output/index.html
Completed in 3421ms
codecontext/
├── src/main/kotlin/com/codecontext/
│ ├── cli/ # CLI commands
│ ├── core/ # Core analysis engine
│ │ ├── scanner/ # File scanning and filtering
│ │ ├── parser/ # Language parsers
│ │ ├── graph/ # Dependency graph and PageRank
│ │ ├── analyzer/ # Code analysis algorithms
│ │ └── generator/ # Learning path generation
│ ├── output/ # Report generation
│ └── server/ # Optional REST API
└── src/test/ # Test suite
- Language: Kotlin 2.1.0
- Build: Gradle 8.5+
- CLI: Clikt
- Parsing: JavaParser, Regex
- Graphs: JGraphT (PageRank, Topological Sort)
- Git: JGit
- Visualization: D3.js Force Graph
- Server: Ktor
Contributions are welcome.
- Fork the repository
- Clone your fork
- Create a feature branch
- Implement changes and tests
- Run the test suite
- Commit changes
- Push and open a Pull Request
See CONTRIBUTING.md for detailed guidelines.
- Java & Kotlin support
- Interactive dependency graphs
- PageRank hotspot detection
- Learning path generation
- Git history integration
- TypeScript/JavaScript support
- Python support
- Go support
- IntelliJ IDEA plugin
- VS Code extension
- Package manager distribution (Homebrew, Scoop)
- Docker image
- Cloud-hosted analysis service
This project is licensed under the MIT License - see the LICENSE file for details.
- Bug Reports: Open an issue
- Feature Requests: Request a feature
- Discussions: GitHub Discussions
- Email: shivanshsoni568@gmail.com
