tilth_deps โ Blast-Radius Check¶
Shows what imports a file and what that file imports. Use to understand the fallout of a rename, signature change, or removal before you make it.
Call shape¶
Output¶
# Dependencies for src/auth.ts
โโ imports โโ
express external
jsonwebtoken external
@/config src/config/index.ts
โโ imported by โโ
src/routes/api.ts:5
src/routes/admin.ts:8
src/middleware/auth.ts:3
The โโ imports โโ block is what src/auth.ts pulls in. The โโ imported
by โโ block is the blast radius โ every file that will care if you change
this one.
When to use¶
- Before renaming a file or module โ you'll need to update every importer in the bottom block.
- Before removing or renaming an export โ same.
- Before changing a function or class signature โ visit each importer to decide whether the new shape is compatible.
- When estimating refactor scope โ count the importers and weigh whether the change is local or cross-cutting.
When NOT to use¶
- For "where is X defined" โ that's
tilth_search, nottilth_deps. - For "what does this function do" โ that's
tilth_read. - For unrelated curiosity โ every call costs tokens; only run when you're about to make a structural change.
Limits¶
tilth_depsis path-scoped, not symbol-scoped. It tells you which files import the target file, not which functions inside those files use a specific export. For that, follow up withtilth_search(query: "<symbol>", kind: "callers").- External dependencies are listed without versions. If you need version
context, check the lockfile or
package.json/Cargo.tomlseparately. - Generated, vendored, or
.gitignored files may not appear โ tilth indexes what tree-sitter can parse and what's in the repo.