Back to Coding

How Do You Use an Assistant on an Unfamiliar Codebase?

How Do You Use an Assistant on an Unfamiliar Codebase?
AI Tutorials Team 8 June 2026

Joining a project means weeks of reading before you can change anything safely. It is the slowest part of any developer's job and the part these tools help with most, because comprehension of supplied material is what they do best.

What should you ask first?

Structure rather than detail. What the system does, how it is arranged, where the entry points are and which directories matter. That map makes everything afterwards navigable.

Explain the structure of this project: what it does overall, the main components and how they relate, where a request enters and how it flows through, and which three files somebody new should read first.

What is the most valuable question?

Tracing a flow end to end. Following one operation from the entry point to the database and back teaches more about a system than reading any number of files individually, and it is tedious to do manually.

Asking what a piece of code is responsible for, rather than what it does line by line, is the version that scales. A summary of responsibility is checkable against the rest of the system; a line-level walkthrough of forty files is not.

What else works well?

  • What calls this. Before changing anything.
  • What would break if I changed this. A safety question with a checkable answer.
  • Why is this here. Which occasionally surfaces a real reason from comments or history.
  • Where is this concept implemented. When you know the idea and not the name.
  • What is unusual about this codebase. Which surfaces local conventions quickly.

Why is the vocabulary question so useful?

Because searching requires knowing the term, and every codebase names things idiosyncratically. Describing a concept in plain language and asking what it is called here converts a fruitless search into a productive one.

What can it not tell you?

Why decisions were made. The reasoning behind an odd design usually exists in somebody's memory, an old discussion or a constraint that no longer applies, and none of it is in the code.

A model asked why something is done a particular way will produce a plausible rationale, which may be entirely invented and is the most misleading output in this area.

How do you tell a real reason from a plausible one?

By asking for the evidence. A reason drawn from a comment, a commit message or a test is checkable; one drawn from general knowledge about how systems usually work is a guess presented as an explanation.

Requiring the source for each claim separates them.

What about the history?

Underused and frequently decisive. Commit messages, old branches and issue references explain far more about why a system looks the way it does than the current code, and asking for a summary of how a file changed over time is a good use of a tool with repository access.

Asking the same question in two separate sessions is a quick consistency check, and a description that differs between them tells you at least one was constructed.

Should you trust the explanation?

Enough to guide your reading, not enough to act on. The correct use is to shorten the path to the right file, then read it yourself, since the explanation is generated and the code is authoritative.

What should you do before making a change?

Ask what depends on it, and check the answer yourself. A model reporting three call sites is a starting point for a search rather than a complete list, particularly where a project uses dynamic references that no analysis reliably finds.

The habit worth keeping is treating the answer as a shortcut to the right search rather than as the search result. That preserves the time saving, which is real, without adopting a confidence about coverage that nothing in the process supports.

What does this change about onboarding?

The reading is faster and the asking of colleagues is less necessary for mechanical questions, which frees those conversations for the things only people know. That is the genuine benefit, and it is substantial: the questions worth a colleague's time are exactly the ones the tool cannot answer.