How I use Claude Code to onboard into a new codebase — a complete workflow
Joining a new team is one of the most cognitively expensive experiences in software engineering. You have to simultaneously understand the domain, the architecture, the conventions, the history of decisions, and the landmines left by people who are no longer there.
I used to spend my first two weeks clicking through GitHub, running grep on hunches, and asking colleagues questions I felt embarrassed to ask.
Now I do it differently. Here's my exact workflow.
The problem with traditional codebase onboarding
Most developers onboard linearly:
- Clone the repo
- Run the README
- Read files that seem important
- Ask a senior engineer what you're missing
- Make a small change and see what breaks
This works, but it's slow. And it puts the cognitive burden on you to know which files are important before you understand the system.
Claude Code changes this completely.
My onboarding workflow
Step 1: Architecture overview (day 1, hour 1)
Before reading a single line of code, I run:
claude "Give me a complete architecture overview of this codebase. Start with: what does this system do, what are the main components, how do they communicate, and what are the entry points. Read whatever files you need."
Claude Code reads the package.json, main entry files, README, and key directories. In 2 minutes I have a mental model that would have taken me 2 days to build manually.
What the output looks like:
This is a Node.js REST API with the following architecture:
- Entry point: src/server.js (Express app, port 4000)
- Routes: 6 route modules in src/routes/
- Auth: JWT-based, tokens stored in Redis
- Database: PostgreSQL with Knex query builder
- Background jobs: Bull queue in src/workers/
- External services: Stripe (billing), SendGrid (email), S3 (storage)
The main data flow is:
HTTP request → middleware (auth, rate limit) → route handler → service layer → database
I can ask follow-up questions immediately: "What's the rate limiting strategy?" "Which parts of this codebase are most frequently changed?" "Where do bugs tend to hide?"
Step 2: Domain model mapping (day 1, hour 2)
claude "Map the domain model for me. What are the core entities, what are their relationships, and where are they defined in the code?"
This surfaces the mental model of the business, not just the technical model. I learn that user and account are different things (users belong to accounts), that order and subscription have different lifecycles, that product means something specific in this domain.
Missing this early is how you write code that technically works but violates the team's conceptual model.
Step 3: Dangerous zones identification (day 1, hour 3)
claude "Read the git history and tell me: which files change most frequently, which have the most complex logic, and which have comments suggesting they're fragile or poorly understood?"
This is the map of landmines. The files with 847 lines and a comment at the top saying # DO NOT TOUCH THIS are the files I need to understand deeply before I touch anything.
Claude Code can read git log output, identify hotspots, and flag files with warning comments — all in one pass.
Step 4: Test coverage audit (day 2)
claude "Run the test suite and give me a coverage report. Which parts of the system have no tests? Which tests are brittle or frequently fail?"
This tells me where it's safe to make changes and where I'm flying blind. Untested code is code I need to characterize before I touch it.
This is where rate limits become a real problem.
When I'm doing deep codebase exploration — reading hundreds of files, running grep across the entire repo, analyzing git history — I burn through Claude Code's context window fast. A large monorepo can exhaust a session in under an hour.
I run into rate limits at exactly the worst moments: mid-analysis, when I'm building a mental model I don't want to lose.
This is why I use SimplyLouie as a Claude API proxy — $2/month, unlimited sessions, no interruptions. When one session hits its limit, I start another and pick up exactly where I left off.
Step 5: Convention extraction (day 2)
claude "What are the coding conventions in this codebase? Look at: naming patterns, error handling approaches, logging patterns, how tests are structured, and any patterns that seem intentional but undocumented."
Every codebase has unwritten rules. Claude Code reads 20-30 files and extracts them. Now I know that errors are always wrapped in a custom AppError class, that all database calls go through a repository layer, that feature flags live in a specific config file.
I produce code that fits from day one instead of getting PR feedback about style violations.
Step 6: First change scoping (day 3)
claude "I need to add feature X. Given everything you know about this codebase, walk me through exactly which files I need to change, what the right approach is given the existing patterns, and what risks I should be aware of."
My first commit is no longer a guess. It's a well-scoped change that follows the existing conventions, has appropriate tests, and doesn't accidentally break something I didn't know was connected.
The results
My last three onboardings with this workflow:
- Joined a team with a 5-year-old Rails monolith: Productive first PR in 3 days (previously 2 weeks)
- Inherited a microservices system with 12 services: Understood the topology in 4 hours
- Took over a poorly-documented data pipeline: Found 3 undocumented failure modes in day 1
The rate limit reality
The one friction point: deep codebase analysis exhausts Claude Code sessions. A full onboarding across a large codebase involves multiple long sessions — reading hundreds of files, running analysis, asking follow-up questions.
I use SimplyLouie — it's a $2/month API proxy that gives me unlimited Claude sessions. No rate limits killing my momentum mid-analysis. No switching to ChatGPT when I hit a wall.
For onboarding specifically — where you're doing the most intensive, most context-dependent work — uninterrupted sessions are worth more than anything.
Summary
The workflow:
- Architecture overview (day 1, hour 1)
- Domain model mapping (day 1, hour 2)
- Dangerous zones identification (day 1, hour 3)
- Test coverage audit (day 2)
- Convention extraction (day 2)
- First change scoping (day 3)
Claude Code doesn't replace the process of understanding a codebase. It compresses it from weeks to days.
SimplyLouie is $2/month for unlimited Claude API access — no rate limits, no interruptions. 7-day free trial, no card required. 50% of revenue goes to animal rescue.
Top comments (0)