Where next

Ask it in your own words

On this page

Where next · Ask it in your own words

You want to: find the code for a thing you can describe but cannot name.

You leave with: a question in your words answered with the function whose surroundings are about that thing, even when its name is not, and an agent that stops guessing identifiers. Axon only.

Before you start

Continue in the repository from step 1. Think of a question you would ask a colleague rather than a search box: where do we charge cards, what happens when a webhook is late, who decides a user is inactive.

Prepare once

Search by meaning needs a one-time pass over the index:

axon anchors status --json
axon anchors embed --embed-provider local --json
axon anchors status --json

What you should notice: coverage went from nothing to the whole index in one pass, stored under .axon/ with the rest.

Does not prove: quality. Coverage is a count of what was prepared, not a claim about what it will find.

Ask the question you would ask a colleague

axon anchor-search "<where do we charge cards>" --embed-provider local --limit 10 --json

Then run the search you would have run instead, on the identifier you would have grepped for:

axon search <the-identifier>

Each result of the first command says whether it matched your words, their meaning, or both.

What you should notice: a hit whose name shares no word with your question but whose surroundings do: the comments, the parameters, the names around it. The identifier search finds what you already knew to look for; this finds what you could only describe.

Does not prove: that the top hit is the implementation. Open it, as in step 1, and check it belongs to the feature you mean.

Widen or narrow

axon anchor-search "<your question>" --embed-provider local --granularity file --json
axon anchor-search "<your question>" --embed-provider local --include-tests --json

The first groups hits by file, which answers "which part of the repository is this about". The second lets tests in, which are usually the place where the behaviour is already described in plain words.

What you should notice: the test suite as an index of behaviours written in sentences, which it always was.

Does not prove: that no hit means no such behaviour. Search by meaning narrows where to look; it does not establish absence.

What you have

A way to ask the repository a question in the words you think in, and an agent that can do the same instead of grepping for a guess. Give it the first command in place of a search when the task is described in concepts rather than names.

Next: when the answers should come from a model you run yourself, Your own hardware; when the hits are thin, the index probably is, so Your index is thin. The Axon command reference covers the remaining search options.