Use cases
4 questions, the call for eachWhat you can ask ahto about your code
Four questions an agent or a person asks before changing code. Each has the built-in function that answers it, the call as an agent and as a terminal command make it, and its parameters and columns.
Single-owner files and bus factor
Which files does only one person know?
> which files does only one person know? ⏺ ahto · function_call lone_maintainer path=src/runtime/ min_commits=3 limit=20Files 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.
Change blast radius
What does this change reach?
> what does this change reach? ⏺ ahto · function_call impact paths=gotypes/weave.go limit=20Before a change merges, the useful question is what it touches: the symbols it changes, who calls them, the tests that reach them and the files that usually change with them. impact answers from a diff or a list of paths.
Code ownership
Who owns this code?
> who owns this code? ⏺ ahto · function_call explain_symbol name=cleanListing limit=20Who wrote a symbol, who changed it last and how often, and who to ask: explain_symbol puts the definition, the callers and the owners in one answer.
Code archaeology
When and why did this code appear?
> when and why did this code appear? ⏺ ahto · function_call introduced_by text=leadingTabs limit=5 ⏺ ahto · function_call symbol_history name=cleanListing changes=changed limit=10Which commit added a line of text, and how a symbol changed over time: introduced_by finds the commit that added or removed a text, and symbol_history lists the commits that changed a symbol.
Live on the demo