| Crates.io | llmgrep |
| lib.rs | llmgrep |
| version | 1.0.0 |
| created_at | 2026-01-24 11:15:34.414234+00 |
| updated_at | 2026-01-25 09:38:05.332953+00 |
| description | Smart grep over Magellan code maps with schema-aligned JSON output |
| homepage | |
| repository | https://github.com/oldnordic/llmgrep |
| max_upload_size | |
| id | 2066539 |
| size | 238,312 |
v1.0 Production-Ready CLI (shipped 2026-01-25)
A command-line search tool for code indexed by Magellan. Queries SQLite graph databases to find symbols, references, and call relationships. Outputs human-readable or structured JSON for programmatic use.
Crates:
Note: llmgrep requires a Magellan database. It does not build or modify databases — Magellan handles indexing and freshness.
--sort-by {relevance|position} flag for LLM-optimized or performance modescargo build --release
cp target/release/llmgrep ~/.local/bin/llmgrep
Or install from crates.io:
cargo install llmgrep
llmgrep requires a Magellan database. First, build one:
# Install Magellan (if not already available)
cargo install magellan
# Build a database from your code
magellan watch --root /path/to/repo --db /tmp/repo.db
Then query it with llmgrep:
# Basic symbol search (relevance-ranked, LLM-friendly)
llmgrep search --db /tmp/repo.db --query "parse"
# Position-only sorting (faster, no scoring)
llmgrep search --db /tmp/repo.db --query "parse" --sort-by position
# Regex search with JSON output
llmgrep search --db /tmp/repo.db --query "^Token" --regex --output json
# Reference search
llmgrep search --db /tmp/repo.db --query "MyType" --mode references
llmgrep search --help — Built-in usage examplesMANUAL.md — Full manual with all optionsCHANGELOG.md — Version historyGPL-3.0-only. See LICENSE.md.