Use case
Single-owner files and bus factorWhich files does only one person know?
Files that changed several times but only ever by one person are the bus factor of a codebase. ahto groups every file's commits by author and lists those files, biggest first, in one call.
Why ask ahto
One answer, not a script
With plain git this is a loop over every file's log and a count of its authors. ahto has the commits and their authors as tables, so it is a grouped query, and generated and vendored files are left out.
Then
What to do with the answer
Read the rows from the top: a large file with many commits and one author is the one to pair on or document first. last_time says whether that person is still touching it.
The front page runs this question across seven repositories in its demo. See it on the front page.
function_call · lone_maintainer
Files with one author
Files that changed several times but only ever by one person: the bus factor of the code, biggest first. Generated and vendored files are left out.
From your agent, over MCP
From a terminal
Parameters
| Name | Type | Meaning |
|---|---|---|
path | path | a directory or file; empty is the whole tree |
min_commits | int | the fewest commits a file needs to count (default 3) |
limit | int | the most rows (default 50) |
The columns of the answer
| Column | Meaning |
|---|---|
path | the file's path from the repository root |
language | the file's language; empty when unknown |
lines | lines in the file |
commits | commits that changed the file, all by one author |
last_time | author time of the last change, Unix seconds |
Keep going
More in the docs
Other questions
The parameters and columns above are the ones ahto reports for lone_maintainer at commit 6bcefbc, 2026-12-04.
Live on the demo