Probe
$ probe Official Low RiskProbe combines ripgrep speed with Tree-sitter AST parsing so AI agents get complete functions, classes, and structs instead of truncated line snippets. Includes probe search, probe query, probe extract, --format json, token limits (--max-tokens), and built-in probe mcp.
npm install -g @probelabs/probe probe search and probe extract work cleanly as fast read-only CLI commands, while probe mcp exposes the same AST-aware search to MCP clients.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Purpose-built for AI coding agents with --format json, --max-tokens, --max-results, AST-complete blocks, and probe mcp.
probe search,probe extract,--format json,--max-tokens, andprobe mcp
Local read-only code search and extraction respecting .gitignore with zero repository mutations.
- Read-only AST code search respecting
.gitignore
Ships via npm install -g @probelabs/probe, npx @probelabs/probe, Cargo, and standalone binaries across macOS, Linux, and Windows.
- Distributed via npm (
@probelabs/probe), Cargo, and binaries
Combines ripgrep filtering, Tree-sitter AST expansion, and BM25 ranking so agents read complete functions in one call.
- Ripgrep + Tree-sitter AST block expansion + token budgeting
Actively maintained by Probe Labs (probelabs/probe) under MIT license.
- Active
probelabs/proberepository under MIT
Clear docs at probeai.dev and GitHub README covering CLI flags, Tree-sitter queries, and MCP mode.
- Official docs at
probeai.devand GitHub README
Security, Auth & Guardrails
Offline local code search requires no credentials; optional probe agent LLM features read provider API keys from env.
100% free and MIT open-source.
# Probe Agent Rules - Always pass `--max-tokens` and `--format json` on `probe search` to keep context bounded. - Prefer `probe search` / `probe extract` over whole-file reads on large codebases.
Agent-Ready Command Recipes
Safe Read-Only Queries
probe search "rate limit" ./src --format json --max-tokens 6000
Finds matching code blocks expanded to complete AST nodes and caps response size at 6000 tokens in JSON.
probe extract src/server.ts:45-90 --format json
Extracts complete AST blocks around the requested file range as JSON.
Strengths for Agents
- + Returns complete AST functions/classes rather than arbitrary grep context lines.
- + Built-in
--max-tokensand--format jsonprevent context overflow. - + Works identically as a standalone CLI (
probe search) or MCP server (probe mcp).
Caveats & Pitfalls
- ! Language support depends on bundled Tree-sitter grammars; unsupported filetypes fall back to text chunks.
- ! First
npx @probelabs/proberun fetches a platform-specific native binary.