deagle

v0.1.3

Rust-native code intelligence

7 languages · 4 search modes · Incremental indexing · MCP server

🔍

Code Graph

Index functions, structs, traits, methods, imports into a queryable SQLite graph. Search by name, kind, language.

🌳

7 Language Parsers

Rust, Python, Go, TypeScript/JavaScript, Java, C, C++. Tree-sitter AST extraction with precise definitions, methods, and imports.

Fast

94-file Rust project: 2.2s. 14-file project: 125ms. SQLite WAL mode, batch inserts, rayon parallel parsing. No Docker, no external services.

🧬

Semantic Search

Optional ares-vector integration for embedding-based code search. Find code by meaning, not just name.

Install

cargo install deagle

Or from source:

git clone https://github.com/dirmacs/deagle && cd deagle
cargo install --path crates/deagle-cli

crates.io/crates/deagle · deagle-core · deagle-parse · deagle-server

Commands

deagle map . [--force]Index a codebase (incremental by default)
deagle search <q> [--fuzzy]Search entities (substring or fuzzy)
deagle keyword <q>Full-text BM25 keyword search
deagle sg '$X.unwrap()'Structural AST search (ast-grep)
deagle rg 'TODO' --lang rustRegex text search (ripgrep)
deagle loc .Lines of code by language
deagle statsGraph database statistics

Architecture

Four-crate workspace with clean separation of concerns.

deagle-core — Graph types (Node, Edge) + SQLite WAL storage + FTS5 + fuzzy search
deagle-parse — Tree-sitter parsers: Rust, Python, Go, TypeScript, Java, C, C++
deagle-cli — CLI: map, search, keyword, sg, rg, loc, stats
deagle-server — MCP server (6 tools) + HTTP API (6 endpoints)

Benchmarks

Measured with hyperfine on a single VPS (release build):

dstack (14 files, 296 entities)125ms
deagle (15 files, 400 entities)339ms
ARES (94 files, 3,486 entities)2.2s