// Agent profile
XERJ (xerj-org/xerj) is an Apache-2.0-licensed search engine written in Rust, purpose-built for AI coding agents. One command — xerj autoindex — infers datasets from a folder of code, docs, logs, PDFs, CSV, SQLite, and Excel files, creating typed indices without manual schema definition. Agents query via Elasticsearch-compatible APIs (full-text, kNN vector, and hybrid search) and pull only the relevant passages, replacing the pattern of dumping entire files into the context window. Tree-sitter parsing preserves symbols and line numbers for source code. XERJ also ships an MCP server (xerj mcp) exposing 13 tools to any MCP-compatible client, plus a namespace-scoped agent memory endpoint. A single static binary with no JVM or external dependencies, available for Linux, macOS, and Windows. 7.1K GitHub stars as of October 2026.
XERJ is a Rust-based search engine designed specifically for AI coding agents. The core problem it solves: agents today load entire files into their context window to find relevant information, burning tokens and slowing down. XERJ replaces that pattern with proper search — you point it at a folder, run xerj autoindex, and it creates typed indices for everything it finds. Agents then query for what they need and get back only the relevant passages, with source file paths and line numbers attached. The project reports 2.7x fewer output tokens than grep-driven coding workflows in measured benchmarks, with user reports up to 5x.
XERJ speaks the Elasticsearch API, so existing clients, dashboards, and tooling work against it unchanged — the project passes 1,366 of 1,369 Elasticsearch conformance cases. Search modes include full-text, kNN vector, and hybrid. For source code, tree-sitter parsing extracts symbols and preserves line numbers, so agents can navigate codebases structurally rather than relying on string matching. The MCP server (xerj mcp) exposes 13 tools directly to MCP-compatible clients like Claude Code, making XERJ queryable as a native tool rather than requiring custom integration. A namespace-scoped memory endpoint (/_memory/{namespace}) lets agents persist and recall learned context across sessions.
XERJ fits anywhere an AI agent needs to search rather than scan: codebase Q&A and RAG pipelines, security audits across large repositories, log analysis for debugging, and cross-project knowledge retrieval. It is particularly useful for agents working on unfamiliar codebases where the model has not memorized the code — the README notes that gains are smaller on popular public libraries the model already knows. The Elasticsearch compatibility also makes it useful as a lightweight local replacement for heavier search infrastructure in development environments.
XERJ binds to localhost by default and the --insecure flag disables TLS and authentication, so it is intended for single-user development machines rather than shared servers. The optional Jev reranking service sends result text to a third party and requires a separate API key — it is not needed for core functionality. Benchmarks are self-reported by the project; independent validation of token-savings claims varies. The autoindex approach works well for heterogeneous folders but does not replace purpose-built indices for specialized search needs.
XERJ is built for developers using AI coding agents who want faster, cheaper retrieval over local codebases and document collections. It appeals to teams running Claude Code or other MCP-compatible agents who want search-as-a-tool without deploying Elasticsearch. Also useful for solo developers building RAG pipelines over private code and documentation where loading everything into context is impractical.
Open protocol for connecting AI agents to frontend applications — a universal contract for streaming events, tool calls, and state between agents and UIs.
Rust-based browser automation CLI from Vercel Labs that lets AI agents drive browsers one command at a time via accessibility-tree snapshots.
Rust-based desktop computer-use framework from Vercel Labs — agents control apps via accessibility trees instead of screenshots.