Where next

Your index is thin

On this page

Where next · Your index is thin

You want to: know why Axon missed things in step 1, and fix it.

You leave with: a module list that matches your layout, framework-mediated reach restored to your deltas, and, where a language server exists for your language, cross-file references the lexical pass could not resolve. Axon only.

Before you start

Continue in the repository from step 1. This track is for the case where the results there were sparse: the module list did not match how you think about the repository, a trace stopped at a framework boundary, or a file you know is central showed no symbols.

Ask what was parsed, not what was found

axon status --json

Read past the counts. Status says which languages were detected, whether your framework was recognised, which languages are in a partial state, and which files degraded during extraction. A file can be in the index because it was discovered without having its symbols extracted; some languages are discovered but not parsed.

What you should notice: the gap between files in the index and files with symbols, and whether your framework was detected at all. The sparse result from step 1 usually has its explanation on this screen.

Does not prove: that a detected language was extracted completely. Detection is a claim about files, not about every relationship in them.

Give it the layout

Where status contradicts what you know, say so in axon.yaml at the repository root, and only there:

scan:
 ignore_patterns: ["<generated-code-dir>/**"]
deps:
 module_boundary: "<packages-dir>/{name}"
frameworks:
 laravel: true

Use only the lines you need; an unknown key is refused rather than ignored. Then index in full and look again:

axon index --full --json
axon status --json

What you should notice: the module list now matches how you think about the repository, and deps-impact from step 2 answers in your module names rather than in directory names it guessed.

Does not prove: better edges. A boundary changes how symbols are grouped, not how many were found.

Go full when it says partial

Ordinary edits update the index incrementally, and the incremental path leaves framework-mediated relationships for some languages until the next full index. When status lists a language as partial:

axon index --full --json
axon delta --base main --json

What you should notice: reach that the incremental index had dropped, through routes, listeners or templates, appears in the delta again. If a delta in step 2 looked smaller than you expected, this is the first thing to check.

Does not prove: completeness. A full index restores the enrichment the incremental path skipped; it does not find relationships the extractor cannot see.

Let a language server fill in the rest

For TypeScript, PHP, Vue or Go, Axon can ask the language server you already run in your editor to resolve what the lexical pass could not. Name it in axon.yaml:

lsp:
 enrichers:
 - language_id: <typescript|php|vue|go>
 server_command: <the server command your editor runs>
axon index --lsp --json

The summary lists enrichment failures by language; read it before trusting the result. Then trace the function from step 1 again.

What you should notice: a caller or callee across files that was missing in step 1, resolved the way your editor resolves it.

Does not prove: that the server resolved everything, or that it ran at all when failures are listed. Enrichment is as good as the server and its view of the project.

What you have

An index whose shape you set rather than guessed, with framework reach restored and a language server behind it where one exists. The step-1 and step-2 results are worth rereading now; the surprises will be different.

Next: when the question is one you cannot put in an identifier, Ask it in your own words; otherwise back to step 2 with the better index. The Axon command reference covers the remaining configuration.