AI Agent Context Engine — give your coding agent a brain beyond code
Project description
probe
Give your AI agent a brain beyond code.
probe is a CLI tool and MCP server that indexes your project's documentation, specs, and code, then serves curated, reranked context to AI coding agents in milliseconds.
The Problem
AI coding agents waste time searching. When you ask Claude Code or Cursor "how does our auth flow work?", they grep through files, read them one by one, and piece together an answer over multiple tool calls. On a large project with docs, specs, ADRs, and runbooks, this takes 30-60 seconds and often misses the most relevant context entirely.
probe makes this instant. It indexes everything -- markdown docs, code, PDFs, plain text -- into a hybrid search engine powered by ZeroEntropy's state-of-the-art embedding and reranking models. One query, one API call, sub-second results with the best context from docs AND code ranked together.
What You Get
- Claude Code plugin that bundles the MCP server and usage skill
- One-command manual Claude Code setup with
probe install - Automatic first-use indexing with incremental refresh-before-search
- Hybrid keyword + semantic retrieval across docs, code, text, and PDFs
- Cross-encoder reranking with
zerank-2 .gitignoreand.probeignoreaware file discovery- Local index storage in
.probe/ - MCP tools for Claude Code, Cursor, and other MCP-compatible agents
Quick Start
Claude Code plugin (recommended)
Get a free ZeroEntropy API key at https://dashboard.zeroentropy.dev. Then run these commands inside Claude Code:
/plugin marketplace add zeroentropy-ai/probe --sparse .claude-plugin plugins
/plugin install probe@zeroentropy
/reload-plugins
Claude Code will ask for your ZeroEntropy API key during plugin install. The
plugin starts probe with uvx --from probe-search==0.3.0 probe mcp, so you do
not need to install probe separately for Claude Code.
If you use the claude plugin install shell command instead of the /plugin
slash command, export ZEROENTROPY_API_KEY before starting Claude Code.
Open any project in Claude Code and ask a question. probe will auto-index on
first search, refresh on subsequent searches, and guide Claude to call
probe_search before broad file sweeps.
The plugin marketplace is published from this repo at
.claude-plugin/marketplace.json.
Manual CLI/MCP setup
# 1. Get a free API key at https://dashboard.zeroentropy.dev
# 2. Install probe as a durable command
uv tool install probe-search
# or: pipx install probe-search
# 3. Set your API key
export ZEROENTROPY_API_KEY="ze_xxx"
# 4. Register probe with Claude Code (one-time, machine-wide)
probe install
# 5. Verify Claude Code sees probe
claude mcp get probe
# Now open any project in Claude Code and ask a question —
# probe will auto-index on first search and refresh on subsequent ones.
probe install stores the path to the probe executable in Claude Code. Use
uv tool install or pipx so that path stays valid. If you install probe in a
temporary virtual environment, rerun probe install after recreating that
environment.
Claude Code may ask you to approve probe the first time it calls probe_search.
Allow it once, and future searches will use the same MCP server.
probe stores local index data in .probe/; add .probe/ to your project's
.gitignore.
For CLI-only use:
pip install probe-search
export ZEROENTROPY_API_KEY="ze_xxx"
probe index .
probe search "how does authentication work"
The index auto-refreshes before each search; set PROBE_REFRESH_TTL=0 to
force refresh every time, or -1 to disable refresh.
Verify your setup
After installing the CLI, run:
probe doctor
probe smoke
probe doctor checks your API key, Claude Code wiring, MCP registration, and
local index health without printing secrets or uploading project content.
probe smoke creates a tiny sample project, indexes it, searches it, and
confirms probe can retrieve the expected file. Use probe smoke --current to
validate the current repo.
MCP Server Setup (Claude Code, Cursor)
Claude Code users: the plugin in Quick Start is the best default. Use
probe install if you prefer direct user-scope MCP registration without a
plugin.
For Cursor or advanced use: add a .mcp.json file to your project root:
{
"mcpServers": {
"probe": {
"command": "uvx",
"args": ["--from", "probe-search", "probe", "mcp"],
"env": {
"ZEROENTROPY_API_KEY": "ze_xxx"
}
}
}
}
This works with Claude Code, Cursor, and any MCP-compatible agent. No pip install required -- uvx handles it.
On first use, probe automatically indexes your project. Your agent may ask you to approve the probe tool before the first search.
Your agent gains four tools:
| Tool | What it does |
|---|---|
probe_search |
Semantic search across docs and code with automatic refresh and reranking |
probe_index |
Index or re-index project files, skipping unchanged files by default |
probe_status |
Show what's indexed |
probe_read |
Read a file, optionally with focused line ranges |
Index Freshness
probe keeps the local index current without running a background daemon.
On the first probe_search, an empty project index is created automatically.
Before later CLI or MCP searches, probe checks for added, changed, and deleted
files, then refreshes only the affected chunks. The refresh pass uses a fast
mtime/size sweep, hash-confirms likely content changes, removes deleted files
from SQLite and the vector store, and skips files that were only touched without
content changes.
Refresh checks are debounced for 5 seconds by default. Set
PROBE_REFRESH_TTL=0 to check before every search, or PROBE_REFRESH_TTL=-1
to disable automatic refresh. If refresh fails, probe reports the error and
continues searching the last good local index.
Supported Files
probe indexes Markdown, MDX, plain text, reStructuredText, AsciiDoc, TeX, YAML, JSON, PDFs, and code in Python, JavaScript, TypeScript, TSX, JSX, Go, Rust, and Java.
File discovery respects root .gitignore and .probeignore files. It also
always skips .git/, .probe/, __pycache__/, .venv/, and *.pyc.
Chunks keep useful location metadata: Markdown header paths, code symbol names, PDF page numbers, and line ranges. Search results include that metadata so agents can cite the right file section instead of dumping whole files into context.
How It Works
1. Hybrid Retrieval Each query runs through two parallel search paths: semantic vector search (cosine similarity against zembed-1 embeddings) and keyword search (BM25 via SQLite FTS5). This catches both conceptual matches and exact term hits.
2. Cross-Source Reranking Results from both paths are fused using Reciprocal Rank Fusion, then passed through zerank-2, a neural cross-encoder reranker that scores each chunk against the original query. Docs and code are ranked together -- the best answer wins regardless of file type.
3. Smart Context Assembly Results are deduplicated, trimmed to your token budget, and returned with source citations. Each result includes its file path, location metadata (header paths for markdown, symbol names for code, page numbers for PDFs), and a relevance score.
Example Output
$ probe search "how does authentication work"
Found 5 results (342 chunks searched)
[0.94] docs/design/auth.md > Authentication > OAuth Flow
We use PKCE-based OAuth 2.0 with Auth0 as the identity provider.
The flow works as follows: 1) Client generates a code verifier
and challenge, 2) User is redirected to Auth0's /authorize...
[0.87] src/auth/oauth.py:42-71 > class OAuthHandler
class OAuthHandler:
"""Handles OAuth2 PKCE flow for web and mobile clients."""
def __init__(self, client_id: str, redirect_uri: str):
self.client_id = client_id...
[0.82] docs/adr/003-auth-provider.md > ADR-003: Auth Provider Selection
## Decision
We chose Auth0 over Cognito because: 1) Better PKCE support,
2) Built-in MFA, 3) Superior documentation...
------------------------------------------
zembed-1 + zerank-2 | 1,847 tokens | 0.3s
One query returns the design spec, the implementation code, and the architectural decision record -- ranked by relevance, in under a second.
For scripts and agents, use JSON output:
probe search "how does authentication work" --json
probe status --json
probe doctor --json
probe smoke --json
CLI Reference
| Command | Description |
|---|---|
probe index [paths...] |
Index project files for semantic search |
probe index --full |
Force full re-index (ignore file hashes) |
probe install |
Register probe as a user-scope MCP server in Claude Code |
probe search "query" |
Search project knowledge with natural language |
probe search --top-k N |
Limit number of results (default: 10) |
probe search --type code |
Filter by file type (markdown, code, pdf, text) |
probe search --no-rerank |
Skip reranking (faster, lower quality) |
probe search --max-tokens N |
Token budget for results (default: 4096) |
probe search --json |
Emit machine-readable results with line ranges |
probe status |
Show index stats and model config |
probe status --json |
Emit machine-readable index status |
probe list |
List all indexed files |
probe config |
Show current model configuration |
probe init |
Create local config from environment |
probe doctor |
Diagnose API key, Claude Code, MCP, and index setup |
probe doctor --json |
Emit machine-readable diagnostics |
probe smoke |
Run an end-to-end indexing and search validation |
probe smoke --current |
Smoke-test the current project instead of a temp sample |
probe mcp |
Start MCP server (stdio transport) |
probe uninstall [--purge] |
Unregister probe; --purge also deletes .probe/ in cwd |
Why ZeroEntropy?
zembed-1 is a 4B-parameter open-weight embedding model built for high-quality retrieval across domains including code, legal, finance, and healthcare. Combined with zerank-2 for cross-encoder reranking, it gives probe strong semantic recall and precise final ranking.
Pricing: $0.05 per 1M tokens for embeddings, $0.025 per 1M tokens for reranking. Free trial available.
Configuration
probe stores its index and config in .probe/ at your project root. Add it to .gitignore.
# .probe/config.yaml
providers:
embedding:
name: zeroentropy
model: zembed-1
dimensions: 1280
reranker:
name: zeroentropy
model: zerank-2
How Data Is Handled
Documents are chunked and stored locally in .probe/ (SQLite + numpy). Only chunk text is sent to the embedding/reranking API for processing. Documents are never uploaded or stored on any external server.
What's NOT in v1
- Web sources (Notion, Confluence, Google Docs)
- Git-aware context (commit history, blame)
- Image/diagram understanding within PDFs
- Background filesystem watcher; probe refreshes before search instead
- Custom chunking strategies
Links
- ZeroEntropy -- the AI retrieval engine powering probe
- API Dashboard -- get your API key
- Documentation -- ZeroEntropy API docs
- Models -- zembed-1 and zerank-2 details
License
MIT -- see LICENSE for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file probe_search-0.3.0.tar.gz.
File metadata
- Download URL: probe_search-0.3.0.tar.gz
- Upload date:
- Size: 73.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74711439cf1b27eb88f4b7165bc720714a35c0a7a19473d178f560d749ecf54d
|
|
| MD5 |
a07a8bfee63d2036dc9e0153f242d679
|
|
| BLAKE2b-256 |
2ced35d7167acf82e009d4be77a6dd8fd0049442fcc6184ba8a4d0161a2fe71f
|
File details
Details for the file probe_search-0.3.0-py3-none-any.whl.
File metadata
- Download URL: probe_search-0.3.0-py3-none-any.whl
- Upload date:
- Size: 40.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45a3f5797d9fa1abf5a1a7cce5ea1a5a872d369c109a10aad3db2155206bb05e
|
|
| MD5 |
ad52c8f7e10d79126e3b1dc09b8e35da
|
|
| BLAKE2b-256 |
021461a993b80fe464f7ad9aa096bc4d4ec5d36d901295416694db1016b5b8d0
|