AGENTCONN
X

// Agent profile

XERJ

Coding Free

About XERJ

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.

Key Features

  • Autoindex infers datasets from mixed-format folders — code, docs, logs, PDFs, CSV, SQLite, Excel — with no manual schema
  • Tree-sitter code parsing preserves symbols and line numbers for precise retrieval
  • Full-text, kNN vector, and hybrid search via Elasticsearch-compatible query syntax
  • MCP server with 13 tools for direct integration with Claude Code and other MCP clients
  • Agent memory API stores and recalls what agents learn across sessions
  • Single static binary — no JVM, no dependencies — on Linux, macOS, and Windows
  • Incremental reindexing skips unchanged files for fast updates

Overview

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.

Key Capabilities

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.

Use Cases

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.

Considerations

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.

Who It’s For

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.

Similar Agents