بنقرة واحدة
tensor-grep
// Use tensor-grep for repository code search, symbol lookup, blast-radius analysis, and edit planning when solving codebase tasks or preparing patches.
// Use tensor-grep for repository code search, symbol lookup, blast-radius analysis, and edit planning when solving codebase tasks or preparing patches.
Use when searching code, logs, or repositories with tensor-grep; validating rg or AST parity; using tg MCP tools; checking GPU/search routing; or producing agent-friendly context, source, refs, or blast-radius output.
Use tensor-grep for repository code search, symbol lookup, blast-radius analysis, and edit planning when solving codebase tasks or preparing patches.
Handles Python-side work: sidecar IPC, benchmark scripts, corpus generators, MCP server extensions, GPU benchmarks, documentation, and compatibility tests.
Handles all Rust-side work: control plane, native search engine (grep crates), native GPU engine (cudarc/CUDA), routing, index subsystem, rewrite substrate, and benchmark gates.
| name | tensor-grep |
| description | Use tensor-grep for repository code search, symbol lookup, blast-radius analysis, and edit planning when solving codebase tasks or preparing patches. |
Use this skill when you need to locate code precisely, understand likely edit impact, or prepare a minimal patch in a real repository. Treat tg as an agentic code-intelligence layer over a validated rg-compatible subset, not as a blanket faster-grep, full ast-grep, GPU, or LSP claim.
tg --versiontg search --format rg "PATTERN" REPO_PATHtg search --format rg --sort path "PATTERN" REPO_PATHtg "PATTERN" REPO_PATH, tg -t js "PATTERN" REPO_PATH, and tg --count-matches "PATTERN" REPO_PATH.tg agent REPO_PATH --query "change invoice tax" --jsontg edit-plan REPO_PATH --query "change invoice tax" --jsontg context-render REPO_PATH --query "invoice flow" --json--symbol:
tg defs --symbol SYMBOL REPO_PATH --jsontg source --symbol SYMBOL REPO_PATH --jsontg refs --symbol SYMBOL REPO_PATH --jsontg callers --symbol SYMBOL REPO_PATH --jsontg blast-radius --symbol SYMBOL REPO_PATH --jsontg blast-radius-plan --symbol SYMBOL REPO_PATH --jsontg session open REPO_PATH --jsontg session edit-plan SESSION_ID REPO_PATH --query "change behavior" --jsontg session edit-plan SESSION_ID REPO_PATH --query "change behavior" --daemon --jsontg identifies the likely file/span, make the change directly instead of stopping at analysis.git-style unified diff only.tg over repeated manual grep loops when working inside a real repository.--format rg for automation that expects ripgrep-shaped text output.tg PATTERN PATH, tg -t js PATTERN PATH, and tg --count-matches PATTERN PATH are treated as tg search ....tg ranks highest.ambiguity before editing; tie_requires_confirmation is a stop sign for autonomous edits.tg already identified the primary file and span.lsp_proof=true.NativeGpuBackend, sidecar_used=false, 1GB/5GB correctness, and speed wins over both rg and tg_cpu.--glob, --type, or --max-depth; unbounded generated-root scans can be refused unless explicitly opted in.nativetg defs --symbol SYMBOL REPO_PATH --provider lsp --jsontg blast-radius --symbol SYMBOL REPO_PATH --provider hybrid --jsonUse lsp or hybrid only if native lookup seems ambiguous or incomplete. Provider availability is not semantic proof; check health_status, lsp_proof, and fallback fields.
$NAME or escape $.cmd.exe, quote or caret-escape metacharacters such as | and &.tg.exe path reported by tg doctor --json over a .ps1 shim.git-style unified diff with diff --git headers and enough context lines to apply cleanly.See REFERENCE.md for current command patterns and examples.