xerj-org/xerj
XERJ is the new way for AI to search data. Its autoindex capability activates agents to know your data without the token waste of grep and sed. One command indexes code, docs, logs and PDFs for search, RAG, security audits and agent memory, using 40x fewer tokens than grep. Elasticsearch compatible, so existing clients just work.
What it solves
XERJ is a local AI search engine designed to prevent coding agents from wasting tokens by reading entire files one by one. It allows agents to retrieve only the exact code passages or documentation they need, significantly reducing input and output token costs while maintaining high solve rates for coding tasks.
How it works
XERJ automatically indexes folders containing code, documentation, logs, PDFs, and other structured data (CSV, JSON, SQLite) without requiring a manual schema. It uses tree-sitter for AST-aware indexing of source code, ensuring that symbols and functions are indexed rather than just flat text. The system provides a REST API compatible with the Elasticsearch API, allowing it to work with existing clients and dashboards. It also supports the Model Context Protocol (MCP) to integrate directly with AI assistants as a tool.
Who it’s for
It is primarily for developers using AI coding agents (like Claude Code or Cursor) who want to reduce token usage and improve agent accuracy on private or niche codebases. It is also suitable for security auditors, log analysts, and developers building RAG applications who need a lightweight, single-binary search backend.
Highlights
- Reference Coding: Enables agents to index similar open-source projects to find existing solutions before writing new code.
- Elasticsearch Compatible: Implements the Elasticsearch REST API for seamless integration with existing tooling.
- Zero-Config Autoindexing: Automatically detects file types and creates indices for any folder.
- MCP Native: Built-in support for the Model Context Protocol for easy agent integration.
- Coded-Aware Retrieval: Uses tree-sitter to index symbols and line numbers for precise code retrieval.
- Hybrid Search: Supports full-text, vector (kNN), and hybrid search in a single query.
Related
- Project
- Project
- Project
- Project
- Project