Skip to content

Guide

How to understand a large codebase by asking it questions

Index the repository on your own computer, ask it plain questions such as "where are payments retried?", and read the passage it finds in the file it names. Start from entry points and data flow, keep a short notes file as you learn, and check every answer against the code itself.

Written by the AssistClue team. Last reviewed .

Why is a large codebase so hard to learn?

Because the knowledge you need is spread thin: the name of a concept in one module, its rules in another, and the reason for both in a commit or a design note nobody links to.

Text search finds a word, not an idea. If you do not yet know that "settlement" is what this team calls a payout, searching for "payout" finds nothing useful. Asking in plain words, and getting back the passage that matches the meaning, closes that gap faster than reading files in alphabetical order.

Which kind of AI tool is best for understanding a codebase?

One that finds and quotes the code that answers your question, with the file it came from, rather than one that only writes new code. Coding assistants in the editor are built to generate and change code; learning a codebase needs answers you can open and check.

  • Shows its source: every answer names the file, so you can read the code around it.
  • Keeps the code where it is: the repository is indexed on your computer, not uploaded.
  • Labels what is not from your code: a general-knowledge answer says so, and a Private session says "Not in your documents" instead.
  • Starts small: point it at one service or folder first, not the whole repository, and widen once the answers check out.

What you can try for free is listed on the facts page.

How do I set up a repository for questions without uploading it?

Add the folder on the AssistClue desktop app. It is indexed locally and never uploaded. Passages from it reach a cloud model only if you allow that for the folder, which begins switched off and does not apply in Private sessions. The privacy and security page explains what stays on your computer.

  1. Check that your employer allows the code on your laptop to be indexed by a local tool; most do, but the policy decides.
  2. Add the repository folder, plus any design docs and decision records kept beside it.
  3. Wait for the first index to finish; source code and text files are read, other binary files are skipped.
  4. Ask a question you already know the answer to, and confirm the file it names is the right one.

Which questions should I ask a new codebase first?

Ask about the shape before the details: where things start, where data goes, and what can fail. These answers give you a map that every later question hangs on.

  • "Where does a request enter the system?" finds the router, the handler list or the main loop.
  • "Where is the order saved?" leads to the storage layer and its naming.
  • "What happens when the payment provider times out?" shows the retry and error handling.
  • "Where are feature flags read?" tells you how behavior changes without a deploy.
  • "Which module owns user permissions?" points at the boundary you must not cross by accident.

How far can I trust an answer about code?

Trust the passage, then verify the behavior. A matched passage shows you where to look; it does not prove the code still runs that way in every path.

Answers from a kept-local folder are passages found on this machine, quoted with their file (how it works shows the answer card and its source), so you can open the file and read the code around them. When a question is about general knowledge rather than this repository, such as what a pattern means, Cloud AI can reply in a session that allows it, labeled as general knowledge; in a Private session you get "Not in your documents" instead. Run the tests or a debugger before you change anything an answer told you about.

An answer card close-up, showing its source document and an "On this computer" badge.
Every answer names the document it came from, and whether it left this computer.

How do I make the knowledge stick after the first week?

Write a short notes file as you go and add it beside the code. Your own explanations become the best passages to find later, for you and for anyone you onboard next.

Then test yourself. Practice draws questions from your notes and gives feedback on each answer, which is a quick way to find the parts of the system you cannot yet explain. If you will be asked about it in an interview or a design review, the developers page covers that angle.

Onboarding to a payments service: a worked example

Say you joined a team last week and added the payments repository and its docs folder in the Mac or Windows app. Three questions on day two:

Where
"Where do we retry failed charges?" The answer is the passage in the charge worker that schedules a retry with a doubling delay, with its file path under it.
Why
"Why three retries and not five?" The passage comes from a decision record in the docs folder, written when the limit was set.
General
"What is an idempotency key?" The repository uses one but never defines it. In a session that may use Cloud AI, a labeled general-knowledge answer follows; the code itself was never sent.

Each answer named where it came from, so you knew which to open in the editor and which was background. Your own notes file, added the same day, will answer the next question faster.

What to have before you start

  • The repository checked out on your computer, and permission to index it locally.
  • The design docs, decision records and READMEs that live beside it.
  • An empty notes file for what you learn, added to the same folder.
  • Three questions you already know the answers to, to test the index.

What AssistClue does not do with a codebase

  • It does not run, build or change your code; it finds and quotes passages.
  • It reads files on your computer only: it does not connect to a code host or read pull requests.
  • It does not prove behavior: an answer is a place to look, and the tests decide.
  • It is built for one person's material; a shared index for a whole team is planned, not shipped.

Ask your own code a question

Add a repository in the Mac or Windows app and ask where something happens.