GBot AI logoGBot AI

Your first week in someone else’s code

Published by GBot AI on 20 October 2026. Updated 30 November 2026.

Joining a project, starting a group assignment, or opening an open-source repository for the first time all feel the same: hundreds of files and no idea where to begin. You do not need to understand everything. You need to understand one feature well, then the next. This guide shows how, and where GBot AI helps along the way.

Read the README and run the project first

Before reading any code, get the project running on your machine. The README, a setup script, or a package file usually tells you how. Running it shows you what the code is for, and it gives you a way to test your understanding later.

Write down what you saw: the pages, the commands, the output. That list is your map. Every file you open later should connect to something on it.

Pick one feature and find where it starts

Choose something small you can trigger yourself, such as a button, a command, or an API call. Search the code for text you can see on screen, a URL, or a command name. The match is usually close to where that feature starts.

Ignore folders such as node_modules, vendor, dist, or build. They are dependencies or generated output, not the code you need to learn.

Follow the feature step by step

From the starting point, follow each function call until something is saved, sent, or shown. Keep a short list: the file, the function, and one sentence about what it does. Five lines of honest notes beat a page of guesses.

When you reach a function you do not understand, paste it into GBot AI with its caller and ask: “what are the inputs, what does it return, and what else does it change?” Ask it to explain using the names in your code, not general theory.

Check every explanation

Change one small thing, such as a log line or a printed value, and run the feature again. If the program behaves the way the explanation predicted, your understanding is right. If not, send GBot AI what actually happened. That loop of predict, run, and compare is how understanding becomes reliable.

Keep your notes and conversations in one GBot AI project for this codebase, so next week’s questions start from what you already learned.

Example: notes from following one feature

This is what useful notes look like after following the sign-up feature in a typical Node.js and Express app. Your file names will differ; the shape is what matters.

Feature: sign up (button on /register)

1. routes/auth.js         POST /signup -> validate(signupSchema), then authController.signup
2. controllers/auth.js    signup(): checks the email is free, hashes the password
3. services/users.js      createUser(): inserts a row in the users table, returns the id
4. controllers/auth.js    sends the welcome email, sets the session cookie, returns 201

Checked: added a console.log in createUser, signed up, saw the id printed.
Open questions:
- Where is signupSchema defined? (search: "signupSchema =")
- What happens if the welcome email fails? Does sign-up still succeed?
  1. Each line names a file, a function and one plain sentence. Nothing is copied from the code itself.
  2. The “Checked” line records how you proved your understanding by running the program, not by reading alone.
  3. Open questions become your next prompts. Paste the relevant function into GBot AI and ask exactly that question.
  4. When the second feature reuses a file you already noted, you will see the project start to make sense.

Short, checked notes on one feature are worth more than a long summary of files you skimmed.

Example prompt

I am new to this project. Here is the route that handles the signup form and the function it calls. In simple terms: what happens step by step when someone signs up, and which file should I read next?

Questions

Can GBot AI read my whole repository at once?

No. You paste or upload the files you are studying. Starting small is also the better way to learn a codebase.

How long should this take?

Following one feature end to end often takes an hour or two the first time. The second feature is faster because many files are shared.

Start with GBot AI