tensor-grep
Apache-2.0Fast text, AST, and symbol-aware code search for AI agents.
A ripgrep-compatible search CLI with native AST search/rewrite, symbol intelligence, and blast-radius analysis — plus a built-in MCP server so agents get machine-readable code context. It is the open-source engine behind gc_blast_radius and gc_callers.
What it does
- Ripgrep-compatible text search with pure-Python BM25 re-ranking
- Symbol intelligence: definitions, references, callers, impact + blast-radius
- Native AST structural search and guarded rewrite
- Built-in MCP server, LSP support, and agent context capsules
- Rust-native engine (via maturin) — runs locally, no API key (GPU optional, opt-in)
Get started
Install from PyPI
pip install tensor-grep
Or run without installing
uvx tensor-grep
License: Apache License 2.0