fathohm CLI is an offline reading tool based on git records that answers "how much of your code has gone 'dark'—that is, code not touched by any commit written or prompt-generated by a human in the past 180 days." It relies only on local git history, does not read source code contents, does not connect to the network, does not write configuration files, and does not require an account.
Main capabilities:
- Calculate the dark code share: measured in bytes, it counts the proportion of code not committed by a human author (or human prompt) within the scorer's 180-day window, presents the result as a single number, and can be independently verified via git log.
- Comprehension debt reading: this metric measures code that has not recently been written, reviewed, or explained by a human; the tool prints a lower bound (counting no review at all) and an upper bound (assuming all files went through pull request review), presented as two separate labels rather than a single estimate.
- Multiple commands: read outputs the dark code share; explain explains a specific dark file by line number; fade predicts the trend; check acts as a gate (supports Markdown format); paydown estimates the cost of reducing debt; offboard simulates how the score changes after someone leaves; map generates an interactive HTML treemap; team shows the distribution of human contributors in the history.
- Scope filtering: --scope <dir> limits the analysis to a subdirectory, and the denominator changes accordingly.
- Terminal interaction: in eligible terminals, the read command is followed by a selector that supports arrow keys or j/k to move and Enter to print the explain result.
- Output formats: terminal card by default, with --json (machine-readable) and --format markdown (for comments or CI gates) supported.
Usage: It can be run via npx without installation (the materials do not provide the specific command), or the executable can be added to PATH. All commands accept an optional path argument [path], defaulting to the current working directory. Requires Node.js ≥ 20.9.
Use cases:
- Assess recent changes in human involvement in a repository.
- Use as a quality gate in CI (check command).
- Simulate the impact of personnel departures on code comprehension debt.
- Generate visual reports of the degree to which code has gone dark.
Limitations:
- It relies only on git records and cannot measure review depth (git does not record reviews), so comprehension debt can only be given as upper and lower bounds.
- Agent authorship detection is based only on agent declarations (such as Co-Authored-By trailers); undeclared agents are indistinguishable from humans, so all agent share numbers are lower bounds.
- It does not read source code contents, does not perform network communication, and does not write files (except that the map command generates one HTML file).
- The check command does not support --scope.
- An empty repository or a tree with no code outputs "nothing to fathom here yet" and exits with 0.
All of the above information is based on the provided official text; no specific fees, prices, or additional platform support are mentioned.