ig
instant-grep
Trigram-indexed regex search · Rust · 20 tests passing

instant - grep

Faster than Instant Transmission.
Sharper than a Rasengan.

0.9ms search latency
20× vs V1 baseline
20 tests passing
38 dirs excluded
$ cargo build --release && ig "pattern" .
Scroll

Live Demo

See the jutsu in action

instant-grep — terminal
● CHAKRA ACTIVE
ig index .
Gathering chakra... indexing 1,247 files
Building sparse n-gram index
Index built: 147ms · 2.3 MB · stored in .ig/
ig "async fn" src/
src/daemon.rs:23:
pub async fn handle_connection(stream: UnixStream) {
src/index/writer.rs:89:
pub async fn build_index(path: &Path) -> Result<()> {
src/query/extract.rs:14:
pub async fn run_query(pattern: &str) -> Vec<Match> {
3 matches in 0.9ms · 47 candidates filtered
ig query "Result<" . --json
Daemon query: 0.3ms · 12 matches
0.9ms
p50 latency
0.3ms
daemon mode
20×
vs V1 baseline

Techniques

Forbidden jutsu built into the CLI

Six core techniques, each mastered to perfection. No bloat, no compromise — pure search power.

Rasengan Algorithm

Sparse N-grams

Variable-length energy spheres that concentrate query power. Port of GitHub Blackbird's sparse_ngrams — orders of magnitude better than naive trigrams.

👥
Sage Mode

Daemon Mode

Unix socket daemon keeps the index warm in memory. Sub-millisecond queries without disk I/O — like entering Sage Mode for permanent power access.

📦
Scroll of Knowledge

JSON Output

Structured JSON output for AI agents. Pipe results to Claude, Codex, or any tool without regex parsing. 35x fewer tokens than file content.

🛡️
Barrier Jutsu

38 Exclusions

Automatically excludes node_modules, target, vendor, .git, and 34 more noise directories. Search only what matters — like a perfect barrier jutsu.

🔄
Continuous Chakra

Auto-Build

ig auto-builds the index on first run. Watch mode rebuilds on file changes. Your index is always fresh — chakra flows uninterrupted.

🎯
Sharingan Precision

Regex Native

Full regex support via the Rust regex crate. The index filters candidates, full regex verifies. Every match is exact — no false positives escape.

Ready to awaken
your search power?

One command to index. One command to search. Sub-millisecond results.
No configuration. No daemons to manage. Pure speed.