BXUP Track progress & test yourself — free
Software Engineering · Playbook · Core · ~4 min read
SOFTWARE ENGINEERING · PLAYBOOK · CORE

Codebase Tour Generation: An Agent-Built Onboarding Path for New Engineers

Ramping onto an unfamiliar codebase is weeks of asking interrupting questions and reading files in the wrong order.

Tier: Core · Workflow area: Documentation

An agentic assistant can walk the repo and produce what almost no team maintains by hand: a curriculum — entry points, the three flows that matter, the gotchas, and a reading order — verified by you before a newcomer sees it. For services companies this is a billable-week compression tool: the difference between an engineer productive in week one versus week three of a client engagement.

When to use

  • A new engineer (or you) is joining a project with no current onboarding doc.
  • You just inherited a client codebase and need a mental model by Friday.
  • The existing "onboarding guide" predates two refactors and actively misleads.
  • Rotation-heavy teams where ramp-up cost recurs monthly.

Skip for repos small enough to read in an afternoon, and do not substitute the tour for reading code — it is the map, not the territory.

Prerequisites

  • An agentic tool with repo access: Claude Code, Copilot agent mode/Workspace, or Cursor with the repo indexed.
  • A runnable dev setup (or at least the honest knowledge that setup is broken — the tour should say so).
  • 60–90 minutes of a context-holder's time (you, if you are the senior) for verification.

The workflow

  1. Commission the survey, not prose. First pass is structural:

    Explore this repo and produce a survey (facts only, no tutorial yet):
    1. Deployables and entry points (main/handlers/cron/consumers) with paths.
    2. The dependency direction between top-level packages — what imports what.
    3. The 3 most-modified areas over the last 6 months (git log) — that is
       where the newcomer will actually work.
    4. Config surface: how env/secrets/feature flags enter the system.
    5. Test layout and how to run the fast suite vs the full one.
    Cite file paths for every claim. List anything you could not determine.
    
  2. Pick the flows yourself. From the survey, choose the 2–3 end-to-end flows a newcomer must internalize (e.g. "order placement: API → validation → payment call → event → ledger consumer"). This selection is judgment the agent should not make alone — it will pick the architecturally interesting flows, not the ones the team touches daily (step 1's git-log ranking is your tiebreaker).

  3. Generate the traced walkthroughs. Per flow:

    Trace order placement end-to-end. Produce a walkthrough that:
    - Lists each hop as: file:function → what it does in one sentence → what it
      calls next, with exact paths and line-anchored links.
    - Flags the 3 places a newcomer would get lost (indirection, DI magic,
      naming that lies) and explains each in two sentences.
    - Notes where behavior differs between local dev and production (stubs,
      feature flags, sandbox payment mode).
    - Ends with one safe exercise: a small change + the test that proves it.
    
  4. Verify by walking it. Open every cited file; follow one flow yourself hop-by-hop. Agents most often err on: dead code presented as live, the old implementation of a recently refactored path, and confident descriptions of config precedence. Fix or annotate; the tour inherits your credibility.

  5. Add the gotcha layer from humans. Ask the team for their top five "wish I'd known" items (the migration that half-finished, the module named utils that is load-bearing, the test that needs Docker). Have the AI weave them in — this folklore is the highest-value content and exists nowhere in the code.

  6. Package as a path with checkpoints. Final structure: Day 1 (setup + system map), Day 2–3 (flow walkthroughs + safe exercises), Day 4–5 (first real ticket from the most-modified area). Commit to docs/onboarding/, and date-stamp it. Each new joiner's confusion notes become next month's revision — assign the newcomer the closing task of fixing what the tour got wrong.

Key Takeaway:

The agent supplies coverage and patience; you supply flow selection and verification; the team supplies folklore. A tour missing any of the three either misleads, bores, or omits exactly what hurts.

Tool variants

  • Claude Code: strongest for the survey + trace loop (reads, greps, follows imports, runs git log); ask it to emit Mermaid flow diagrams inline (pairs with pb-35).
  • Copilot agent mode / Workspace: comparable repo exploration inside the GitHub permission envelope services firms already sanction.
  • Cursor / Windsurf: good interactive follow-up — the newcomer asks "where does X happen" against the indexed repo during the tour itself; free tiers make this the $0 path for the exercises.

Verification

  • Every file path and line anchor in the tour resolves in the current checkout.
  • You personally walked one full flow and confirmed each hop.
  • The setup instructions ran clean on a machine that is not yours.
  • The safe exercises are actually safe (no prod credentials reachable from the dev setup they use).

Pitfalls

  • Shipping the unverified tour. A wrong map is worse than no map — the newcomer cannot tell confident from correct, and you have automated the spread of misconceptions.
  • Architecture-tourism. A tour organized by the layer diagram instead of by working flows produces newcomers who can draw the system and cannot fix a bug in it.
  • Staleness by success. The better the tour, the longer it survives unmaintained. The date stamp and newcomer-fixes ritual are the countermeasures.
  • Letting the agent guess at tribal knowledge. It will invent plausible reasons for weird code. The real reason ("vendor deadline, 2023") comes only from humans — collect it.

Restricted-environment variant

Client codebases are the canonical restricted case. Run the agent only inside the sanctioned boundary: Copilot Business with the client's GitHub Enterprise, or Claude via Bedrock/Azure inside the client tenancy. No sanctioned agent at all? Two-layer fallback: (a) generate the survey mechanically with local tooling — tree, git log --stat, dependency-graph tools like pydeps/madge — and (b) feed those artifacts (structure, not source) to a local Ollama model to draft the tour skeleton, then trace flows by hand for the walkthrough layer. Slower, but the curriculum format and checkpoints still deliver most of the ramp-up compression.

Success criteria

  • A dated tour exists in-repo: system map, 2–3 verified flow walkthroughs, gotcha layer, and a day-by-day path with exercises.
  • The next new joiner reaches first-merged-PR measurably faster (track it — this is the number that justifies the practice).
  • Interrupting-question volume to seniors drops in the joiner's first week.
  • The tour has been revised at least once by a newcomer who found its first lie.
This is the free reading view. Open BXUP to track your progress, run the hands-on labs, and prove it with original, exam-pattern assessments.
© Anvi Innovate · BXUP — Be Exponentially Upskilled · BXUP is an independent learning platform, not affiliated with or endorsed by AWS, Microsoft, Google, NVIDIA, IBM, Salesforce, Databricks, Oracle or Anthropic. All trademarks belong to their respective owners. · bxup.in