Skip to content

Knowledge silos and bus factor: finding code only one person understands

Find the parts of your codebase only one person knows, using git history and team conversations, and spread that knowledge before it becomes a problem.

October 13, 2026 · 2 min read · RepoGrasp team

A team's bus factor is the number of people who would have to leave before a part of the system has nobody who understands it. For many critical modules, the honest answer is one. That's not a moral failing; it's the natural result of people specialising. But it's a risk worth measuring and reducing.

Find the silos with git

Count who has changed each area recently:

git shortlog -sn --since="12 months ago" -- src/billing/

If one person has made most of the commits in an important folder, that's a likely silo. Run it across top-level folders to get a quick picture. Commit counts are a rough measure (one big commit and ten small ones count differently), but they show patterns.

For a single file:

git log --format="%an" --since="12 months ago" -- path/to/file.ts | sort | uniq -c | sort -rn

Find the silos by asking

Git can't tell you about operational knowledge. Ask the team:

  • Which systems would you be nervous to change without asking someone first? Who would you ask?
  • Which alerts only one person knows how to handle?
  • Which parts have you never looked at?

Combine the answers with the git data in a simple table of areas, owners and backups.

Prioritise by risk

Not every silo matters equally. Focus on areas that are:

  • Business-critical (payments, auth, data pipelines)
  • Changed often, or likely to need changes soon
  • Hard to understand from the code alone

A silo in a stable, rarely touched utility is low risk. A silo in billing is not.

Spread knowledge deliberately

  • Rotate reviewers. Have a second person review every change in a silo area, and expect them to understand it.
  • Pair on real work. The expert and a learner make the next change together, with the learner at the keyboard.
  • Recorded walkthroughs. The expert traces the main flows for 30 minutes, on video.
  • Written tours. See how to write a codebase tour.
  • Swap on-call. Operational knowledge spreads fastest when someone else holds the pager, with backup.

Lower the cost of learning

People avoid unfamiliar areas because learning them is slow. Anything that makes it faster helps: good tests, a map of entry points, decision records. Tools like RepoGrasp help too. A learner can ask "how does invoice generation decide which line items to include?" and get a cited answer to check with the expert, which turns a long meeting into a short one.

Track it over time

Re-run the git analysis every quarter. A second regular contributor appearing in a critical area is a real improvement.

See also handing over a codebase when a developer leaves.