Reflex: local trigram code search for AI coding agents. Install one plugin: the CLI skill or the MCP server.
Trending marketplaces
7-day visitors to each marketplace page
npx claudepluginhub reflex-search/reflexSearch code with the Reflex rfx CLI instead of grep: whole-identifier matches, symbol definitions, import graph. Needs rfx on PATH (npm install -g reflex-search).
The Reflex MCP server (rfx mcp) for local code search: search_code, list_locations, find_references, get_dependencies, analyze. Needs rfx on PATH (npm install -g reflex-search).
Instant local code search — CLI, scripts, and AI agents
Reflex is a local-first, full-text code search engine. Use it from the command line, pipe it into scripts, or connect it to AI coding assistants (Claude Code, Cursor, and any MCP-compatible tool) for instant symbol lookup, dependency analysis, and codebase exploration — fully offline, fully deterministic, no cloud required.
Beyond text search, rfx refs X --at FILE:LINE keeps only the uses of one definition when other items share its name, and --tests lists the tests that run it, in 13 languages (measured).
# Via NPM
npm install -g reflex-search
# Or the native binary (no Node wrapper: ~240 ms faster per call), into ~/.cargo/bin
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/reflex-search/reflex/releases/latest/download/reflex-search-installer.sh | sh
# Or via Cargo
cargo install reflex-search
# From your project root
rfx index
# Full-text search
rfx query "extract_symbols"
# Symbol definitions only
rfx query "CacheManager" --symbols
# Every use in code, not in comments or strings
rfx refs "extract_symbols"
# The tests that run the extract_symbols defined at that line
rfx refs "extract_symbols" --at src/parsers/rust.rs:67 --tests
# JSON output for scripting
rfx query "TODO" --json --limit 20
Claude Code plugin (recommended). This repository is a plugin marketplace. Install
the reflex plugin (it needs rfx on PATH, step 1):
claude plugin marketplace add reflex-search/reflex
claude plugin install reflex@reflex
In a session, /plugin marketplace add reflex-search/reflex and
/plugin install reflex@reflex do the same. The plugin has no server: the agent runs
rfx through Bash. A SessionStart hook adds about 1 KB of routing rules to the session,
and a skill holds the full command list. It costs less than the MCP server, which adds
about 7.8 KB of instructions and tool schemas to every call (see
Measured efficiency).
claude plugin install reflex-mcp@reflex installs the MCP server (rfx mcp) instead.
Use it when your agent cannot run shell commands.
MCP server by hand. With Claude Code:
# every project
claude mcp add-json --scope user reflex '{"type":"stdio","command":"rfx","args":["mcp"],"alwaysLoad":true}'
# this project only (writes .mcp.json)
claude mcp add-json --scope project reflex '{"type":"stdio","command":"rfx","args":["mcp"],"alwaysLoad":true}'
"alwaysLoad": true makes Claude Code load Reflex's tool schemas at session start, so the
agent can call Reflex at once instead of first spending a turn on ToolSearch. The plain
claude mcp add --scope user reflex -- rfx mcp also works, without it.
For other MCP clients, register a stdio server with command rfx and args ["mcp"].
Your AI assistant can now call search_code, find_references, get_dependencies, and more.
See Claude Code + Reflex MCP Quickstart for MCP setup, key tools, and troubleshooting.
| Capability | grep / ripgrep | Built-in AI search | Sourcegraph | Reflex |
|---|---|---|---|---|
| Full-text search | ✅ | ✅ | ✅ | ✅ |
| Symbol-aware filtering | ❌ | Partial | ✅ | ✅ |
| Dependency analysis | ❌ | ❌ | Partial | ✅ |
| Deterministic results | ✅ | ❌ | ✅ | ✅ |
| Local-first / offline | ✅ | ❌ | ❌ | ✅ |
| MCP server built-in | ❌ | — | ❌ | ✅ |
| JSON output for agents | Manual | ✅ | ✅ | ✅ |
The A/B harness in benches/efficacy/ runs Claude Code on the same
code-search questions with Reflex and with only its built-in Grep/Glob, paired per
question, on pinned checkouts of open-source projects. Ratios are Reflex ÷ built-in, so
< 1.0 means Reflex costs less; cost is API-equivalent. Newest results first.
Which tests run a function, in 12 languages (2.4.0 development builds, measured up to
2026-12-01, Sonnet 5.5, held-out questions, 6 trials per arm). The Reflex arm has the
reflex plugin and calls rfx refs X --at FILE:LINE --tests. Answer keys come from real
test runs: a marker at the start of the function records which tests reach it. Accuracy
is F1 against those keys.
7-day visitors to each marketplace page
Anthropic example skills
Anthropic's Claude Code plugins, installed from the claude-plugins-official repository
Ultra-compressed communication mode. Shortens prose while preserving technical terms, code, commands, and exact errors.