Codebase Assistant

Before you can answer a question about a codebase, you have to read the whole thing without choking on the junk. This lesson builds the ingestion step: walk a repository, keep the source files, drop everything that isn't code. What we're building. By lesson 8

8 lessons, each with runnable code in the browser.

  1. Walking the Repo, Safely
  2. Chunk by Function, Not by Character
  3. Tagging Chunks With File and Line Numbers
  4. Retrieval Tuned for Code
  5. Answering With Citations
  6. Budgeting the Retrieval Window
  7. Guarding Against Hallucinated Citations
  8. Shipping the Codebase Assistant

Compilearn home