ahto

Use cases

4 questions, the call for each

What 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=20

    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.

    The call, its parameters and columns

  • Change blast radius

    What does this change reach?

    > what does this change reach? ⏺ ahto · function_call impact paths=gotypes/weave.go limit=20

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

    The call, its parameters and columns

  • Code ownership

    Who owns this code?

    > who owns this code? ⏺ ahto · function_call explain_symbol name=cleanListing limit=20

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

    The call, its parameters and columns

  • 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=10

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

    The call, its parameters and columns

Live on the demo

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