# siftdb-cli
Command-line interface for SiftDB, a grep-native, agent-oriented database for code and text collections.
## Install
```bash
cargo install siftdb-cli
```
## Usage
```bash
# 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