All drills

Build a Codebase Knowledge Graph

What you'll be able to do

Give a coding agent the repo context it needs before it edits code it didn't write — who calls this, what does it depend on, is this actually reachable — the layer underneath any disciplined plan.

The code-intelligence layer behind Sourcegraph, GitHub code search, and the repo-level retrieval every serious coding agent needs before it can safely edit an unfamiliar codebase.
Start this internship
Create an account to unlock the 9 sections, the workbench, and AskThili.
Begin

Sections

1. Build a Codebase Knowledge Graph
🔒 locked
2. Lesson 1 - Facts Before a Graph Exists
🔒 locked
3. Lesson 2 - Resolving Calls, Honestly
🔒 locked
4. Lesson 3 - Traversal
🔒 locked
5. Lesson 4 - Embeddings, Deterministic First
🔒 locked
6. Lesson 5 - Combining Graph and Text
🔒 locked
7. Lesson 6 - Measuring Retrieval Quality
🔒 locked
8. Lesson 7 - A Real Embedding Model
🔒 locked
9. Lesson 8 - Packaging It as a Skill
🔒 locked

Dig deeper

🔗thilicodegraph — the reference implementation you build in this course
code
📄Learning to Represent Programs with Graphs (Allamanis et al., 2017)
paper
📄Repository-Level Prompt Generation for Large Language Models of Code (Shrivastava et al., 2023)
paper
🔗Ollama — run open LLMs locally
docs