
The problem
Developers spend a large part of their working time understanding code they did not write; one large field study put it at around 58%. Newcomers to a project often do not know where to start. Most AI tools for developers are built to write code, and a fluent explanation can still leave out something important. My dissertation asked whether an AI-assisted tool could help someone understand an unfamiliar codebase faster and with less effort, without asking them to trust it blindly.
What CodeMap does
You paste the address of a public GitHub repository written in JavaScript or TypeScript. In the browser, CodeMap reads every eligible file, builds a search index and maps which files import which. The overview shows where the app starts, how big it is, what it is built with, which files the rest of the code depends on most, and how much of the repository was actually read.
When you ask a question, CodeMap gathers the most relevant code: files that match your words, file names and functions that match, and the files connected to them through imports. Only that evidence and the question are sent to a server function, which asks Gemini for an answer; the API key never reaches the browser. Read the architecture notes.
Evidence beside every answer
Each answer appears next to the files, line ranges and excerpts it rests on, with the reason each one was chosen. If the answer mentions a file that is not in the evidence, CodeMap flags it. On the server, every draft answer is checked against the evidence before it is shown; if a check fails, the answer is repaired or held back rather than released.
I chose plain keyword search (TF-IDF) over AI embeddings on purpose: it runs locally, gives the same result every time and can be inspected, which mattered for a controlled study. Embeddings could find more synonyms; comparing the two is left for future work.
Testing the answers
Before any participant used it, I tested CodeMap on 24 questions about two purpose-built React and TypeScript repositories, marked strictly against reference answers checked in the source code. It answered 22 of 24 correctly: 12 of 12 on one repository and 10 of 12 on the other. Both misses were incomplete rather than wrong: each left out a later step in a process that runs across several files. See how it was tested.
Testing with people
Twelve final-year Computer Science students each did four tasks by browsing the code on GitHub and four matching tasks with CodeMap, on the other repository. The order was balanced so neither the tool nor the repository always came first.
- Correct answers: 44 of 48 with CodeMap, against 27 of 48 by hand.
- Median time for the four tasks: 8.3 minutes with CodeMap, against 13.2 by hand; 11 of 12 people were faster.
- Perceived workload (NASA-TLX, lower is better): 27.1 with CodeMap, against 87.1 by hand; lower for every participant.
- Usability (SUS): an average of 89.4 out of 100, with every score above the usual benchmark of 68.
The biggest gap was on working out what a change would affect: 12 of 12 correct with CodeMap, 2 of 12 by hand.
Building it carefully
Every release passed TypeScript checks, linting, unit tests, a production build and Playwright end-to-end tests. Development still turned up bugs that would have produced misleading answers, such as one repository’s file appearing under another repository’s name. Each was fixed with a test so it could not return. I built CodeMap with AI coding assistants, as the dissertation declares; the benchmark and the study are what check the result.
What the results do not show
The participants were twelve students, the repositories were built for the study and I marked the answers myself, so the results do not carry over directly to professional developers or large real-world codebases. CodeMap was not compared with other retrieval methods or AI models, and it has not had a formal accessibility audit. The next step would be repeating the study with professional developers on real repositories. Read the full limitations.
