ahto

Use case

Change blast radius

What does this change reach?

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.

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

Why ask ahto

One answer, not a script

The answer comes in sections (symbols, callers, tests, files changed together), each cut at limit, and a section cut short ends with a row that says how many were left out.

Then

What to do with the answer

Run the tests the rows name before the rest. The same call takes a unified diff in diff, read against the commit it starts from, so an agent can check its own patch before it proposes it.

function_call · impact

Impact of a change

The blast radius of a change, from a unified diff (git diff), a list of paths, a symbol name or a directory: the symbols it changes, their callers, the tests that reach them (the ones that call or use a changed symbol first, then the other tests in a changed directory), and the files usually changed with these. The diff is read against the commit (its old side); a path without a diff counts as changed whole. name and path are read only when there is no diff and no paths: a name is the change of its definitions, a path alone every file at or under it. Each section has at most limit rows; a section cut short ends with a more row that says how many were left out. A caller detail ends with "of Name at path:line" only when several symbols match.

From your agent, over MCP

{ "name": "function_call", "arguments": { "name": "impact", "repository": "<id>", "args": { "paths": "gotypes/weave.go", "limit": 20 } } }

From a terminal

$ ahto function call impact paths=gotypes/weave.go limit=20

Parameters

NameTypeMeaning
diffstringa unified diff, as git diff prints it
pathsstringchanged paths, separated by commas or spaces
namestringwith no diff and no paths: the symbol to change, as explain_symbol takes it
containerstringthe receiver type or class of a method, or the type of a field; empty matches any
pathpathwith a name, the directory or file its definition is under; alone, the directory or file to change
testschoiceall lists the tests that call or use a changed symbol first, then the other tests in a changed directory; direct lists only the first (default all)
limitintthe most rows per section (default 50)

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

Live on the demo

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