deagle
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 deagleOr from source:
git clone https://github.com/dirmacs/deagle && cd deagle
cargo install --path crates/deagle-clicrates.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 searchdeagle sg '$X.unwrap()'Structural AST search (ast-grep)deagle rg 'TODO' --lang rustRegex text search (ripgrep)deagle loc .Lines of code by languagedeagle statsGraph database statisticsArchitecture
Four-crate workspace with clean separation of concerns.
Benchmarks
Measured with hyperfine on a single VPS (release build):
dstack (14 files, 296 entities)125msdeagle (15 files, 400 entities)339msARES (94 files, 3,486 entities)2.2s