CodeLens
A code context engine that gives AI coding tools the right method or class instead of dumping whole files into the prompt.
Tech Stack
Python Tree-sitter Gradle Qdrant FastEmbed SQLite Docker
Overview
CodeLens is an indexing and retrieval layer for AI coding workflows. Instead of stuffing whole files into context, it breaks Java repos into smaller pieces so the model can pull just the part it needs.
Why this exists
Most coding assistants miss in the same way. They grab too much shallow context and not enough build-aware context. That gets worse in Java monorepos once symbols cross module boundaries.
What it does
- Parses Java into methods, fields, constructors, and class shells with Tree-sitter.
- Resolves symbols across source sets, project dependencies, external jars, and the JDK.
- Ranks the most useful chunks first instead of flooding the model with whole files.
- Supports full rebuilds and file-level refreshes so the index stays current as the repo changes.
Result
The system gives AI workflows smaller, better-grounded context windows and a much better starting point for navigation and explanation in large Java codebases.