#code-search #grep #database-search #search

app siftdb-cli

Command-line interface for SiftDB - the high-performance grep-native database

2 releases

0.2.2 Sep 6, 2025
0.2.0 Sep 6, 2025

#965 in Database interfaces

MIT license

170KB
3.5K SLoC

siftdb-cli

Command-line interface for SiftDB, a grep-native, agent-oriented database for code and text collections.

Install

cargo install siftdb-cli

Usage

# Initialize a new collection
sift init my-project.sift

# Import code
sift import my-project.sift --from /path/to/code \
  --include "**/*.rs" --include "**/*.py" --include "**/*.js"

# Find patterns
sift find my-project.sift "async" --path-glob "**/*.rs" --limit 20

# Open file ranges
sift open my-project.sift --file src/main.rs --start-line 1 --end-line 50

# Benchmark performance
sift benchmark my-project.sift --source /path/to/code --format json

Performance

See the repository benchmarks/README.md for methodology and results. With the O(1) inverted index:

  • 24M+ queries/sec for non-existent terms (pure O(1) lookup)
  • Performance scales with number of matching files (O(k) processing)

License

MIT

Dependencies

~8–12MB
~192K SLoC