ahto

Use case

Code ownership

Who owns this code?

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.

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

Why ask ahto

One answer, not a script

An owner row says who changed the symbol and how many times, with the date of the last change. The same answer carries the callers, the history and the files that change with it, so ownership is read next to the code that depends on it.

Then

What to do with the answer

For a whole folder, lone_maintainer lists the files only one person has changed. For one file, the gateway's blame call returns the git blame hunks.

An answer

explain_symbol on cleanListing

The README's example, for cleanListing in golang/example (76 commits, ahto v0.1.7-13-g6bcefbc6), shortened. Each row starts with its section.

definition internal/cmd/weave/weave.go:243 function (text string) string (33 lines) caller internal/cmd/weave/weave.go:186 main callee internal/cmd/weave/weave.go:252 leadingTabs history 7f05d217867b 2025-09-15 internal/cmd/weave: print two levels of headings in TOC owner Rob Findley 3 changes, last 2025-09-15 co_change gotypes/weave.go 1 of 7 commits that changed it

The README measured the whole answer, 22 rows in 7 sections, at 55 to 88 ms on a first call.

function_call · explain_symbol

Explain a symbol

Everything about one symbol in one answer: its definitions (kind, container, signature), doc, callers, callees, references, the tests that reach it, the commits that changed it, its owners, the files most often changed in those same commits (co_change) and the CVE or GHSA fixes among them (security). The section column says which; each section has at most limit rows, and a section cut short ends with a more row that says how many were left out. A method call is matched by name and ranked by how near it is (detail says: in package, via an import, by name only). A caller or reference detail ends with "of Name at path:line" only when the name has several definitions. A name the tree does not define answers one not_found row. section names the sections to answer and skips the rest (section=caller,test counts the call sites; each test row says its calls apart from references); empty answers all.

From your agent, over MCP

{ "name": "function_call", "arguments": { "name": "explain_symbol", "repository": "<id>", "args": { "name": "cleanListing", "limit": 20 } } }

From a terminal

$ ahto function call explain_symbol name=cleanListing limit=20

Parameters

NameTypeMeaning
namestringthe symbol's name, such as Open or ServeHTTP; a method may be written Type.Method or Type::Method, a package function pkg.Func (the function in a directory named pkg, when no type pkg holds it; the tree at the commit decides, also for the history); an empty part such as T..Run is refused
containerstringthe receiver type or class of a method, or the type of a field; empty matches any
pathpatha directory or file the definition is at or under; empty is the whole tree
sectionstringonly these sections, separated by commas (definition, doc, caller, callee, reference, test, history, owner, co_change, security); empty answers every section
limitintthe most rows per section (default 20)

The columns of the answer

ColumnMeaning
sectionwhich part of the answer the row is in; more says how many rows a section left out
paththe file the row is about
linethe line the row is about
namethe item the row is about
detailthe row's value or explanation
matchedhow the name matched when not by name: container, or directory (pkg.Func, the function in a directory named pkg); none when pkg is neither; empty for a name

Live on the demo

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