ahto

Use case

Single-owner files and bus factor

Which 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.

> which files does only one person know? ⏺ ahto · function_call lone_maintainer path=src/runtime/ min_commits=3 limit=20

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

{ "name": "function_call", "arguments": { "name": "lone_maintainer", "repository": "<id>", "args": { "path": "src/runtime/", "min_commits": 3, "limit": 20 } } }

From a terminal

$ ahto function call lone_maintainer path=src/runtime/ min_commits=3 limit=20

Parameters

NameTypeMeaning
pathpatha directory or file; empty is the whole tree
min_commitsintthe fewest commits a file needs to count (default 3)
limitintthe most rows (default 50)

The columns of the answer

ColumnMeaning
paththe file's path from the repository root
languagethe file's language; empty when unknown
lineslines in the file
commitscommits that changed the file, all by one author
last_timeauthor time of the last change, Unix seconds

Live on the demo

Ask it about your own code. On the live demo, or on your own machine.