Knowing Your Codebase: Graphify and XERJ
A map of how the code connects, and a search that finds the definition first.
After this course: You can build and keep current a knowledge graph of a codebase, ask it how parts connect, search code by definition and by meaning, and give both to an AI agent so it can work in a large codebase without getting lost.
7 lessons, 80 minutes of reading. $49, yours for good.
- The file that "did not exist" (free): An assistant searched for a script, found nothing, and reported that the capability did not exist. Work was planned around its absence. A search that finds nothing has only proved something about the search. Never bound a search more tightly than the real tree, and for questions about how code connects, ask a tool built for connections.
- Building the graph, and keeping it current for free: A team builds a beautiful map of their codebase once. Three weeks later it describes a system that no longer exists, and nobody trusts it. Rebuild the cheap part of the map on every commit, automatically. Keep the expensive part (naming, summaries) on a schedule, and know which is which.
- The names drift, the merge goes stale: keeping the map honest: The graph says a community is called "Simulation Core", but the code in it now does something else entirely. An agent asking about the whole workspace gets answers from last month. For every part of a map, know what refreshes it and when. Write down the parts that need a human or a schedule, and put them on one.
- Asking the graph: query, path and explain: To understand one feature, someone (or an AI) reads the 4,000-line architecture report from top to bottom and still misses how two parts connect. Ask the narrowest question the graph can answer: a query for a topic, a path between two things, an explanation of one concept. Read the full report only for broad architecture review.
- XERJ: find the definition first, with real field names: A code search for a function name returns forty files. The one that defines it is twenty-third, below every file that merely calls it. Rank the defining file first and return the passage, not the file. For structured searches, ask the index what fields it has before writing a query against it.
- A second brain whose links keep their history: Notes and links between ideas pile up. When a link turns out to be wrong it is deleted, and nobody can later see what the team used to believe or when it changed. Store memories so they can be recalled by meaning, and retire links instead of deleting them, so the past state can always be replayed.
- Capstone: map an unfamiliar codebase, with evidence: An AI agent dropped into a large codebase reads files at random, fills its memory with the wrong ones, and answers questions from guesses. Structure first, passage second, claim last: ask the graph where to look, ask the search for the exact code, read it, and answer with the evidence attached.
Every course