Your coding agent reads 147 files to fix a 3-line bug because it has no map. This course teaches the three context layers that fix it â structural graphs (tree-sitter, Graphify, CodeGraph), narrative knowledge (Google's Open Knowledge Format), and vector RAG where it still belongs â plus the pipelines that keep them honest in production.
Start with Module 0 âđ The hands-on labs and the orderflow sample repo live in the course repository: github.com/varasrinivas/knowledge-graph-course â git clone https://github.com/varasrinivas/knowledge-graph-course.git
What the code is â deterministic AST call graphs. tree-sitter, Graphify, CodeGraph, okf-rs. Zero LLM cost, zero hallucination.
What engineers know â curated Markdown + YAML concepts in Google's Open Knowledge Format. Git-native, agent-readable, one required field.
The messy long tail â vector RAG over tickets, threads, and old docs. Still the right tool, once it stops being the only tool.
Nodes, typed edges, traversal vs search, communities, god nodes, blast radius â and the EXTRACTED / INFERRED / AMBIGUOUS honesty tags. Build a graph in pure Python.
M02 ¡ Module 3 of 14Shredded context, probabilistic retrieval vs canonical truth, the ACL leak, and where vector RAG still wins. Watch your own pipeline retrieve a stale definition.
M02B ¡ BridgeThe coupling with the sibling course's M03B: six context layers, the four levers (add / compress / retrieve / offload) mapped onto this course's machinery, and context rot at two altitudes. Fix the poisoned transcript the two ways M03B's lab left open.
Fault-tolerant ASTs, extraction queries, deterministic zero-LLM parsing, and the name-resolution ladder from heuristics to LSP.
M04 ¡ Module 5 of 14/graphify end-to-end: three artifacts, Leiden communities, god nodes, path queries â and the honest read of the 71.5x benchmark (replications: 6.8xâ49x).
M05 ¡ Module 6 of 14SQLite vs Markdown substrates, three-layer auto-sync, framework route recognition, per-language benchmark spread, and the comparison axes for any tool.
Bundles, concepts, one required field, index.md and log.md, progressive disclosure, and leniency by design â the one-page spec hiding a systems problem.
M07 ¡ Module 8 of 14From BigQuery tables to services: Responsibilities/Dependencies concepts, cross-links as a curated dependency graph, and the okf CLI's 13-rule lint.
M08 ¡ Module 9 of 14The two-pass agent (draft, then cite), diff-scoped scans as the entire cost model, lint gates, and the git hook that keeps the bundle honest.
graph_callers in one tool call, the composite explore, 6,000-vs-15-token arithmetic, and the startup-cache trap.
M10 ¡ Module 11 of 14Three layers, not three competitors: failure-mode-driven adoption, the staged query pipeline, the router pattern, and the ERPNext 70.8% â 82.0% case study.
Graphs don't self-heal: four documented silent hook failures, artifact desync, the O(VĂE) scale wall, and the freshness gate that catches a lying map within 24 hours.
M12 ¡ Module 13 of 14Six project-structure patterns (layered CLAUDE.md, skills, subagents, deny rules, sparse worktrees, LSP) â progressive disclosure by hand â plus the road to OKF v0.2.
Wire everything together over the orderflow monorepo: structural graph + OKF bundle + enrichment hook + MCP server + CI freshness gate â then measure your real improvement multiple and explain it honestly.
CAPSTONE 2 ¡ Bonus ¡ â â â ââGraph commons-lang (624 files) and spring-framework (9,195 files) with tree-sitter-java, serve them over MCP, and produce your own benchmark table: 33.7x per-question on spring, 567 files of exploration replaced by one tool call â with the honest per-question vs session-level framing.
orderflow running example.