How to Onboard to a New Codebase Quickly

Get productive in your first few weeks on a new team.

There are times when you join a new team, open the repo for the first time and see hundreds of folders you've never heard of. It's tempting to start reading files from the top and hope it eventually clicks. It won't. A codebase makes sense when you see it working, not when you read it like a book.

Here's the approach I use to get productive in the first few weeks.

TL;DR Run it, trace one feature through it, read what your teammates changed recently and ship something small. Write down everything you learn along the way.

Run it locally first

Before you read any code, get the app running on your machine. This is the first real test of the docs, and it's where you find out what the README forgot to mention: the right Node version, a missing .env value, a database seed script nobody runs anymore.

Keep notes as you go:

Local setup notes
- README says Node 18, .nvmrc says 20. 20 works.
- Needed STRIPE_SECRET_KEY in .env.local. Got a test key from Priya.
- Run `npm run db:seed` before `npm run dev` or the dashboard is empty.
- Tests: `npm test` runs unit tests only, e2e is `npm run test:e2e`.

When you're done, open a PR that updates the README with what you found. It's a small, safe first contribution, and the next person to join will thank you.

Follow one request end to end

Pick one thing a user does, like saving a form or loading a dashboard, and follow it all the way through. Start at the button, then find the click handler, the API call, the route on the server, the database query and back again.

Write the path down as you find it:

Saving a profile
1. components/ProfileForm.tsx onSubmit calls updateProfile()
2. lib/api/profile.js PATCH /api/profile with the form data
3. pages/api/profile.js validates with the profileSchema
4. services/users.js updateUser() writes to the users table
5. ProfileForm.tsx shows a toast and refetches the user

One trace like this teaches you how the project is organized, where the validation lives, how errors are handled and what the naming conventions are. After two or three of these, most new features will look familiar.

Go to Definition, Find All References and Go Back do most of the work here. If you aren't using them yet, I wrote about the VS Code shortcuts I use as a senior developer.

Read recent pull requests

The code shows you what the project is. Recent PRs show you how the team works. Spend an hour reading the last few weeks of merged pull requests and you'll learn:

  • Which parts of the codebase change the most
  • What reviewers push back on
  • How big a typical PR is and how it's described
  • Who owns which areas

That last one is the most useful. When you have a question about payments, you'll already know who to ask.

Use Copilot Chat to explain unfamiliar files

GitHub Copilot Chat became generally available in VS Code at the end of last year, and it's handy for onboarding. Select a confusing function, open the chat and type /explain. It'll walk through what the code does in plain language, which is much faster than puzzling over a 200 line reducer on your own.

/explain what does this hook return, and when does it refetch?

Treat the answer as a starting point, not the truth. Copilot only sees the code you give it, so it will happily guess at what an imported helper does or why a weird workaround is there. Check what it tells you against the actual code, and ask a teammate about anything that seems off. Pasting a file into ChatGPT has the same catch, plus you should make sure your company is okay with you sharing its code there.

Ship a small fix in your first week

Ask your team for a small bug or a "good first issue" and get it merged in your first week. The fix itself doesn't matter much. What matters is going through the whole process once: branching, running the tests, opening a PR, getting a review, and seeing it deploy.

Every team has its own little rules about this, like a PR template, a required ticket number in the title or a staging environment you need to check. It's much better to learn them on a two line change than on your first big feature.

Keep a running "things I learned" doc

Keep one document open for your first month and add to it every day. It doesn't need to be pretty:

Things I learned
- "Workspace" in the code means "Organization" in the UI.
- Feature flags live in LaunchDarkly, ask Sam for access.
- Don't touch legacy/billing, it's being rewritten next quarter.
- Deploys go out at 2pm on weekdays, not Fridays.
- Questions to ask:
- Why do we have two date libraries?
- Who decides what goes into the design system?

This doc becomes your cheat sheet, and the questions list is great material for your one on ones. If you're not sure what else to ask your manager in those first weeks, here are some questions to ask your boss in a one on one.

Nobody expects you to understand the whole codebase in your first month. Get it running, follow a few paths through it and ship something small, and you'll be contributing much sooner than if you'd tried to read it all.

Have some feedback on this post? .