In short: the bus factor is estimated from the code history, by looking at who wrote and last changed which parts. A low number shows where knowledge sits with too few people. Documentation, review and shared ownership spread it.
What the bus factor is
Researchers define the truck factor, also called the bus factor, as a minimal number. It is how many developers must be hit by a truck, or quit, before a project is incapacitated. It measures how well a project withstands turnover.
A bus factor of one means one person holds knowledge the others do not. The point is not the accident. People change jobs, go on leave and fall ill. The question is what happens to the software when it occurs.
How it is estimated from the history
Every change in a Git repository records who made it and when. From that history you can estimate which parts of the code each person wrote and who last touched them. The more of the code rests on one person, the lower the estimate.
Researchers built automated methods that do this. One later method also used code review and meeting data, and was validated with surveys of engineers.
You can try a rough version yourself. The command git shortlog with the options -s and -n counts commits per author. Look at the last year and at one part of the code at a time.
Three limits apply.
- One person, several identities. The same person can appear under different names or addresses. A mailmap file maps them to one identity. Without it, the count is too high.
- The history shows who typed, not who understands. A large formatting change or a generated file can name the wrong person. When an assistant writes the code, the author in the history is the person who accepted it.
- Work outside the history stays invisible. Pair work, review and talks leave no trace in the commit list.
What a low number means, and what it does not
A low number is common. In one study of popular open-source projects, most had a truck factor of two or less. It says where knowledge is concentrated, which is useful to know.
It does not say the person is doing a poor job, or that the software is bad. In a survey of the developers of the studied projects, most agreed that the people named were the main authors. Responses to the estimated number itself were more mixed. Treat it as an estimate that tells you where to look.
It also does not say who understands the code best. It counts changes, not understanding.
What helps
- Documentation. DORA describes documentation quality through clarity, findability and reliability, and notes that it must be actively created and maintained. Start with how to run the software locally, put a version live and roll it back.
- Review. Google's guide says review teaches developers something new, and that sharing knowledge is part of improving the health of the code.
- Shared ownership. Fowler describes strong ownership, where one person changes a module, and collective ownership, where the whole team owns the code. He prefers collective ownership and notes that strong ownership causes delays.
- Practices around the code. A study of deprecated open-source projects found that contributing guidelines and continuous integration relate to whether a project fails or succeeds.
- visible in the code and its history
- only the team knows
This page does not tell you who to blame. It tells you where a second person should learn the code.
What we check of this
We read the Git history of your code. We count how many people worked on it in the last year. We show whether most of the work comes from one person, for the whole code and per part. We show how much code was last changed by someone who has changed nothing for six months or more. We count people and never show a name. We do not give a single bus factor number.
We check whether it is recorded who owns the application and its parts, and who still knows which part and what nobody dares to touch. We check whether changes to the main branch are reviewed. We read the documentation that a handover needs. We change and take over nothing.
Join the pilotSources, opened on 11 November 2026
- Avelino and others: A novel approach for estimating truck factors
- Jabrayilzade and others: Bus factor in practice
- Coelho and Valente: Why modern open source projects fail
- Git: git-shortlog
- Git: gitmailmap
- DORA: Documentation quality
- Google: The standard of code review
- Martin Fowler: Code Ownership
Written by the BlueLandscape team with the help of AI. Every statement was checked against the source above.