From f1531a64d4ca5a5bd1c048d2f35eb0540e92c967 Mon Sep 17 00:00:00 2001 From: endergebnis Date: Tue, 8 Sep 2026 19:49:36 +0200 Subject: [PATCH] Add caller/reference analysis, C# imports, and de-noised search Agent-workflow tooling and search quality improvements: - find_callers / find_references (by id or exact name), with caller attribution to the innermost enclosing symbol and import-graph narrowing - index file (single-file re-index) and workspace glob member resolution - search symbols: exact > prefix > fulltext > substring fallback, inline source and line numbers, --limit on all search paths - search text: reads live from disk (no stale FTS snapshot), collapses duplicate snippets, correct multi-word phrase matching - find dead-symbols: excludes framework-wired entry points (pytest test_*, #[test] tests, FastAPI/Flask routes, Celery tasks, click/typer commands) - find references: filters the definition line and string/comment occurrences (incl. Rust raw strings) - C# import edges via new extract_csharp (using directives) - richer MCP tool descriptions; brace-in-string tokenizer fix Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- README.md | 41 ++- src/cli.rs | 31 ++- src/config.rs | 14 +- src/index/hashing.rs | 9 - src/index/imports.rs | 74 +++++- src/index/pipeline.rs | 359 +++++++++++++++++++++++-- src/index/schema.rs | 63 +++-- src/index/store.rs | 66 +++-- src/main.rs | 25 +- src/mcp/mod.rs | 140 +++++++--- src/ops.rs | 601 ++++++++++++++++++++++++++++++++++++++---- src/search/mod.rs | 108 ++++++-- 12 files changed, 1317 insertions(+), 214 deletions(-) diff --git a/README.md b/README.md index 83f4b58..2790d0e 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,8 @@ coding agent retrieve **symbols and functions** instead of whole files — savin context tokens. Language coverage (via ctags): Rust, Java, Python, C/C++, TypeScript, -JavaScript, HTML. HTML import edges are extracted directly (not via ctags), and -``/`