Get oriented faster
Ask what a project does, how it is organized, and where to start. Bring the README and implementation into the same conversation.
“What are the main parts of this project?”
Your repository. Your questions.
Link a public GitHub repository. Ask in plain language. Open the exact source behind each answer.
Public repositories · Source-linked answers · No code execution
Built for reading real code
Explore, locate, understand, and verify.
Ask what a project does, how it is organized, and where to start. Bring the README and implementation into the same conversation.
“What are the main parts of this project?”
Ask about a feature, function, or configuration. Retrieve relevant source passages from the repository you selected.
“Where are incoming requests validated?”
Open the cited files and line ranges to inspect the code behind an answer. Treat the explanation as a starting point you can verify.
“How does this project handle authentication?”
Save a public repository, watch indexing progress, and reindex when its default branch changes. Your saved index survives a page refresh.
One repository snapshot. A reusable knowledge base.
Inside CodeLensa
RAG means retrieval-augmented generation: find relevant passages from your repository, then give those passages to a language model alongside your question. The model does not need to memorize or train on the entire project to help explain it.
Validate the repository and resolve a commit on its default branch.
Read supported source and documentation in small, resumable batches.
Keep files in R2 and line-numbered, overlapping passages in D1.
Use the repository selected in your workspace.
Search its D1 full-text index and assemble a bounded set of passages.
Mistral answers; Gemini via LangChain is the fallback when needed.
Validate citations against stored files and open the relevant lines.
Small, overlapping passages make it possible to retrieve relevant code without sending the entire repository to a model. Line numbers preserve a route back to the source.
Indexing runs separately from page requests. Small batches keep ingestion manageable and let the workspace display progress while files are processed.
The current question path uses lexical full-text retrieval, not embeddings or a dependency graph. It favors a straightforward, inspectable repository-to-answer workflow.
The building blocks
Workspace
Vinext serves the frontend on Cloudflare Pages. TanStack Query manages API data, and Firebase supports sign-in.
API & ingestion
The backend validates GitHub URLs, serves repository APIs, and processes indexing jobs independently of the interface.
Repository storage
D1 stores repository metadata and searchable passages. R2 stores source files from the indexed commit.
Answer generation
Mistral is the primary model provider. Gemini 3.5 Flash-Lite is the fallback, with LangChain messages and validated repository-search tools.
Follow the implementation from the interface to ingestion, retrieval, and answer generation. Both repositories are available on GitHub.