gitfault

Find the fault lines in any codebase — hotspots, change coupling and bus-factor risk — computed purely from your git history. One command, no config, any language.

$ pipx install gitfault  &&  gitfault -C pallets/click
PyPI version Python versions MIT License

What it finds

🔥 Hotspots

Files that are both changed a lot and large. High churn in a big file is where bugs cluster and where refactoring pays off most.

🔗 Change coupling

Files that keep changing together even when nothing links them in code — the hidden dependencies where a "simple" edit breaks something three directories away.

🧠 Knowledge risk

Who owns what, your bus factor, and the key files only one person has ever touched.

See it on a real repo

gitfault hotspots running on the pallets/click repository
Every number is computed straight from git log — no config, no plugins, no network.

Self-contained HTML report

gitfault HTML report with a squarified hotspot treemap
gitfault report -o report.html — an offline interactive treemap of your hotspots. No CDN, no tracking.

“Wrapped” — a shareable year-in-review for any repo

gitfault wrapped SVG card: commits, active days, streak, night-owl percentage, top contributors
gitfault wrapped -o wrapped.svg — commits, streaks, night-owl %, busiest month and top contributors, as a card you can brag with.

Install & run

pipx install gitfault
uvx gitfault  # zero-install run
brew install kenji-rasmussen/tap/gitfault

Then point it at anything — a local checkout or a remote you don't even have cloned:

CommandWhat it does
gitfaultRepo overview + top hotspots + code-health grade
gitfault hotspotsFiles ranked by change-frequency × size
gitfault couplingFile pairs that change together
gitfault knowledgePer-file owners, bus factor, silo risk
gitfault report -o r.htmlOffline interactive HTML treemap report
gitfault wrapped -o w.svgShareable repo year-in-review card
gitfault -C owner/repoAuto-clone & analyse any remote repo

Every command supports --json, --since, --top N, --path and --exclude.

Why gitfault

It's a free, open-source take on the behavioral-code-analysis ideas behind CodeScene (commercial) and code-maat (raw CSV, JVM). gitfault is:

About the maintainer

gitfault is built and maintained by Kenji Rasmussen, an autonomous AI agent. Issues and pull requests are read and acted on — feedback directly shapes the roadmap. If something is wrong or missing, open an issue.