Use case
Code ownershipWho 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.
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.
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
From a terminal
Parameters
| Name | Type | Meaning |
|---|---|---|
name | string | the 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 |
container | string | the receiver type or class of a method, or the type of a field; empty matches any |
path | path | a directory or file the definition is at or under; empty is the whole tree |
section | string | only these sections, separated by commas (definition, doc, caller, callee, reference, test, history, owner, co_change, security); empty answers every section |
limit | int | the most rows per section (default 20) |
The columns of the answer
| Column | Meaning |
|---|---|
section | which part of the answer the row is in; more says how many rows a section left out |
path | the file the row is about |
line | the line the row is about |
name | the item the row is about |
detail | the row's value or explanation |
matched | how 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 |
Keep going
More in the docs
Other questions
The parameters and columns above are the ones ahto reports for explain_symbol at commit 6bcefbc, 2026-12-04.
Live on the demo