How Probe Works
Probe combines fast text scanning with structure-aware parsing to return grounded, reliable context from real codebases. This page covers Probe internals (not Visor workflows).
The retrieval pipeline
- Scan: ripgrep finds candidate files and matches while honoring ignore rules.
- Parse: tree-sitter builds an AST for structural understanding.
- Match: query terms are matched against code and structure.
- Rank: results are scored for relevance and stability.
- Extract: full functions, classes, or modules are returned.
- Shape output: JSON/SARIF or human output, with token limits when needed.
Why results are reliable
- Complete context: full code blocks, not partial snippets.
- Deterministic ranking: consistent ordering across runs.
- Local-first processing: your code stays in your environment.
Agent bootstrap (optional)
If you run Probe in agent mode (MCP/ACP), it will also load repo guidance files when present: AGENTS.md, ARCHITECTURE.md, and the AgentSkills standard.
Raw CLI/MCP usage stays unchanged and only exposes retrieval tools.
Where it runs
- CLI in local dev or CI
- GitHub Actions for reviews and automation
- MCP + SDKs for agents and custom tooling
- Web UI for non-engineers