
Show HN: Eulix – Local code index and call graphs for large repos, LLM optional
Eulix parses your repository into a queryable index — symbols, call graphs, and optional embeddings — and routes every question to the cheapest mechanism that can actually answer it. The LLM is optional, and only used w…
以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。
Eulix parses your repository into a queryable index — symbols, call graphs, and optional embeddings — and routes every question to the cheapest mechanism that can actually answer it. The LLM is optional, and only used where reasoning is genuinely required.
🚀 Quick Start · 📖 Documentation
Large codebases are hard for a simple reason:
You usually don't know where the answer is.
Grep finds strings. An LSP resolves a symbol you already know. An LLM answers confidently about code it has never seen. None of them cover the space in between — callers, dependencies, types, subsystems, implementation paths, and the surrounding context that gives a symbol its meaning.
Capability ripgrep IDE / LSP LLM chat Eulix
Find exact text ✅ Yes ✅ Yes ⚠️ Context-dependent ✅ Indexed search
Navigate symbols ⚠️ Text-based ✅ Yes ⚠️ Context-dependent ✅ Symbol index
Trace callers & callees ❌ No ⚠️ Partial ⚠️ Context-dependent ✅ Call graph
Understand subsystems ❌ No ⚠️ Manual exploration ⚠️ Requires context ✅ Hybrid retrieval
Ground answers in repository code ✅ Matches ✅ Source references ⚠️ Depends on supplied context ✅ Retrieved code context
Keep processing local ✅ Yes ✅ Yes ⚠️ Provider-dependent ✅ Local-first
Analyze repository-scale code ✅ Text search ⚠️ Tool-dependent ⚠️ Context limits ✅ 37.3M LOC parsed in 57.2 s
Comparisons describe typical capabilities, not every tool or configuration. Eulix's benchmark reflects a local Linux kernel analysis run; parser performance does not imply complete semantic understanding. Remote LLM providers, when configured, may receive retrieved code context.
Eulix doesn't treat code understanding as an LLM problem. It treats it as an indexing and retrieval problem — and brings in an LLM only where reasoning is actually required.
Metric Result
Scale Linux kernel — 37.3M lines, 64,460 source files parsed in 57 s
Throughput ~650K lines/s end-to-end parser throughput on 12 threads
Graph 773K nodes / 1.51M edges, extracted with 0 parse failures
Embeddings 837,531 chunks embedded locally on a single consumer GPU
Privacy Parsing, indexing, retrieval and embedding run entirely on-device
Languages C, C++, Go, Java, JavaScript, Python, Rust, TypeScript
Key Features
Structural code intelligence Extract functions, classes, methods, symbols, imports, dependencies, entry points, project metrics, and call relationships. Navigate callers and callees with structural context.
Combine exact symbol lookup, lexical search, semantic vector retrieval, subsystem signals, call-graph expansion, and MMR-based diversity ranking.
Direct repository facts to deterministic lookups, navigation questions to structural data, and deeper semantic questions to retrieval and optional LLM reasoning.
Run parsing, indexing, retrieval, and embedding locally. Use a local LLM or explicitly configure a remote provider.
Integrate Eulix with coding agents through MCP, editors through the beta LSP server, custom Rust applications through libeulix, and your browser through the call-graph explorer.
Tune retrieval behavior through eulix.toml. Use PyTorch or ONNX Runtime, CPU or GPU execution, configurable chunking, and quantized embeddings.
Supported languages: C, C++, Go, Java, JavaScript, Python, Rust, and TypeScript. JSX and TSX are not currently supported.
Chat With codeBase
VizEulize
Quick start
Requires Linux or Windows. Linux needs bash + curl; Windows needs PowerShell and may require Visual Studio Build Tools with the C++ workload.
macOS Binaries haven't been tested yet, if you encounter an issue raise a issue.
Linux
bash <(curl -fsSL https://raw.githubusercontent.com/Nurysso/eulix/main/install.sh)
Windows
irm https://raw.githubusercontent.com/Nurysso/eulix/main/install.ps1 | iex
- Analyze a repository
cd your-project
eulix init # creates eulix.toml eulix analyze # parse + build the index
Tip
eulix analyze is fast — ~650K lines/s. On a 1M-line repo that's seconds. Semantic embeddings are the slow stage at scale and are only needed if you want open-ended questions answered. On the Linux kernel the graph builds in 57 s; embedding 837K chunks took ~27 min on RDNA2 GPU.
eulix chat # interactive eulix query "Who calls foo?" # one-shot
That's it. No cloud account, no API key required.
Each query is classified and routed to the cheapest path that can answer it:
Most questions never invoke a model — they're answered straight from generated repository data. That's fast, free, and deterministic.
Symbols, function names, and file paths act as anchors that drive exact lookup and graph expansion. Open-ended questions lean on semantic and subsystem signals instead.
When Expression.resolve_expression() processes an OuterRef, which specific Set attribute on the inner Query object is mutated to track parent table aliases? How does SQLCompiler.get_from_clause() use this set to ensure those outer tables are omitted from the subquery's FROM SQL block?
Open-ended (Django):
How are table aliases handled when generating SQL for correlated subqueries?
Cross-cutting (OpenStack Nova):
How does Nova schedule instances with PCI passthrough requirements, and which filters participate in the claiming process?
Tip
Adding a symbol or file path narrows the search and improves coverage. As with any retrieval system, completeness on deep multi-hop chains is not guaranteed.
Command Purpose
init Initialize Eulix in the current repository
analyze Parse, analyze, embed, and generate repository data
chat Start the interactive interface
query Build retrieval context or answer a direct query
mcp Expose retrieval to coding agents (stdio MCP server)
vizEulize Open the call-graph explorer in your browser
parser Access the parser wrapper
embed Run the embedding pipeline on its own
history Browse previous queries
version Show component versions
verifyBins Verify bundled binary hashes
checksum Update repository checksums
Ecosystem
The CLI is one front-end on a shared engine. Everything below reads the same local index.
An MCP server (stdio) that lets agents such as Claude Code, Windsurf, Cline, Continue, and LM Studio query any analyzed repository and get ranked source context back. It keeps the knowledge base warm between queries, switches repositories on demand, and adapts retrieval to what the agent already knows (known_symbols).
eulix analyze # once per repository eulix mcp --repo /path/to/repo # stdio MCP server
{ "mcpServers": { "eulix": { "command": "eulix", "args": ["mcp"] } } }
Tip
Use an absolute path for command if your client doesn't inherit your shell PATH.
Tools exposed: query, query_with_cot, query_without_cot, set_repo_path. Full details in the MCP README.
eulix-lsp (beta) is a multi-language language server built on libeulix: document outline, hover, go-to-definition, find references, completion, rename (open buffers), semantic tokens, call hierarchy, folding ranges, workspace symbols, and workspace diagnostics.
cd eulix-lsp cargo build --release ./target/release/eulix-lsp
Point your editor's LSP client at the built binary. See the eulix-lsp README for the full feature list and what is intentionally not implemented.
eulix analyze eulix vizEulize
Starts a local server on 127.0.0.1 and opens an interactive, searchable call graph in your browser — focus, direction and depth controls, filters, tags, categories. Everything stays on your machine. See the vizEulize README.
The parsing, PRISM call-graph, indexing, and metrics engine, shipped standalone:
cargo add libeulix
libeulix on crates.io · source in libeulix/
CODEBASE │ ▼ ┌─────────────────────────┐ │ libeulix │ │ Rust + Tree-sitter │ └────────────┬────────────┘ │ ┌─────────────────┼─────────────────┐ ▼ ▼ ▼ symbols & AST relationships indexes └─────────────────┼─────────────────┘ ▼ ┌─────────────────────────┐ │ local retrieval │ │ exact + lexical + │ │ semantic + graph │ └────────────┬────────────┘ ▼ ┌─────────────────────────┐ │ eulix CLI │ │ routing + context + LLM │ └─────────────────────────┘
Each component is written in the language best suited to its job:
Relationship resolution is powered by PRISM, Eulix's approximate resolution engine, built for large-scale code navigation rather than formal whole-program verification. See Parser Architecture.
query │ ▼ ┌─────────────────────┐ │ explicit anchors + │ │ path gates │ └──────────┬──────────┘ │ ┌─────────────────┼─────────────────┐ ▼ ▼ ▼ exact lexical semantic / symbols BM25 / keywords IVF vectors │ │ │ └─────────────────┼─────────────────┘ ▼ merge + deduplicate ▼ subsystem signals ▼ scope / test-file demotion ▼ MMR + exact-first ranking ▼ selected context
Privacy
your source → libeulix → local query engine → optional LLM
The entire analysis and retrieval stack runs on your machine. The LLM stage is optional, and cloud providers are opt-in. With a local provider such as Ollama, nothing leaves your environment.
If you configure a remote provider, the retrieved code context for each query is sent to that provider. Choose accordingly for proprietary repositories.
Eulix is configured through eulix.toml in the repository root. A minimal starting point:
[project] path = "/absolute/path/to/your/repo"
[parser] threads = 8 prismVersion = 2 # 1 = fast/direct, 2 = precise/scope-aware
[embeddings] model = "BAAI/bge-base-en-v1.5" dimension = 768 engine = "onnx" # "onnx" or "torch"
[llm] local = true # set false to use a cloud provider provider = "ollama" # ollama, openai, anthropic, gemini, deepseek, … model = "deepseek-r1:14b"
Everything else — MMR diversity, graph expansion depth, cross-root isolation, candidate limits, and the rest — is tunable under [retrievalConfig]. The full option list with comments is in the configuration reference.
path is absolute. If you move the repository or copy eulix.toml into another project, update it.
eulix analyze writes to a .eulix directory in the repository:
.eulix/ ├── kb.json # knowledge base: symbols, functions, classes, methods ├── kb_index.json # lookup indexes ├── kb_call_graph.json # call graph and reverse call graph ├── kb_summary.json # project summary and metrics ├── embeddings.bin # SQ8-quantized embeddings (~617 MB on the kernel) ├── vectors.bin # vector store (~50 MB on the kernel) └── … # other metadata
Budget roughly 1.2 GB for a kernel-scale checkout, and expect the parser to peak around 3.3 GiB RSS.
Measurements come from local engineering runs. Results vary with hardware, repository state, parser configuration, embedding model, and query shape.
64,460 files · 37.3M lines · 0 failures · 57.2 seconds (12 threads, PRISM v2)
Serialization uses a spill-to-disk architecture with slim repository views rather than the parser's full internal representation. This cut peak RSS from ~8 GB to ~3.3 GiB and reduced on-disk output from ~2.2 GB to ~1.2 GB.
Parsing quality: 32,338 clean / 32,122 partial / 0 failed. The partials are overwhelmingly C/C++ and expected without a preprocessor pass.
AMD Radeon RX 6700 XT (ROCm/HIP) · BAAI/bge-base-en-v1.5 · 768-dim · SQ8/INT8
Parsing is about a minute of that run; embedding is the throughput-bound stage and scales with accelerator capability. These figures come from a mid-range consumer GPU — hardware-specific results are benchmarked separately rather than treating one GPU as a universal baseline.
Embedding model choice affects semantic recall, particularly for cryptic identifiers and domain-specific vocabulary. The model is configurable, and newer code-oriented and long-context models are being evaluated at kernel scale. A stronger model improves ranking quality — retrieval remains a ranking system, not a proof system.
Linux kernel · Go compiler · FFmpeg · Gecko / Firefox · Django · OpenStack Nova
Eulix is a code navigation and retrieval layer. It is not a compiler, and PRISM is not a formal whole-program analysis system — it deliberately trades formal soundness for the speed and scala
正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。
