Skip to content

scry v0.1.0 — first tagged release

Choose a tag to compare

@fiveapplesonthetable fiveapplesonthetable released this 16 May 11:21
· 206 commits to master since this release

First tagged release of scry — a single static Rust binary that indexes ~1M source files of AOSP + Linux in ~13 minutes, then answers symbol / reference / content queries at interactive latency. 30–45× faster than rg for the same patterns and >700× faster than POSIX grep -rF on the live corpus.

What's in this release

Coverage

  • Source: C, C++, Java, Kotlin, Rust, Go, Python, shell, assembly (tree-sitter)
  • Build: Soong (Android.bp), Android.mk, Bazel, CMake, GN, Kconfig, Makefile, Gradle
  • Android platform: aconfig flags, init.rc services, SELinux .te, AndroidManifest.xml, api/*.txt
  • IPC: AIDL (interface + method + parcelable), HIDL
  • Ownership: OWNERS

Querying — def, ref, callers, prefix, fuzzy, grep (literal + regex), outline, coverage, stats, ask (semantic), diff --since, recall, owner, module-of. Every command has a --json variant.

Incremental indexing — scry index --incremental opens the existing index, diffs the source tree against per-file content digests, re-parses only changed + added files, replays unchanged records, and atomically swaps the new index into place. Old index stays queryable for the entire rebuild; a mid-process crash leaves it intact. Sub-second on small change sets — the editor-loop refresh path.

Transports — stdio CLI, JSON-RPC via scry serve (stdio / Unix socket / TCP), MCP via scry mcp (Claude Desktop, Cursor, Continue, custom agents). MCP negotiates protocol versions 2024-11-05 through 2025-11-25 per spec.

Precision uplift — scry callers NAME --precise shells out to clangd for type-aware C++ references when a compile_commands.json is available.

Engineering posture

  • 129 tests across the workspace (~3 s end-to-end)
  • Zero clippy warnings under a strict [workspace.lints] policy
  • Pre-release discipline: no back-compat shims carried; clean codebase
  • Production indexer — cgroup-enveloped, OOM-resumable, jemalloc-backpressured (see docs/OPERATIONS.md)

Getting started

git clone https://github.com/fiveapplesonthetable/scry
cd scry && . ./env.sh
cargo build --release
./target/release/scry index ~/dev/aosp -o /path/to/scry-index
./target/release/scry def ActivityManagerService --kind class

Full reference in docs/USAGE.md. Setup walk-through in docs/DEVELOPMENT.md. Benchmark numbers and reproducibility recipe in docs/BENCHMARKS.md.

What's not in v0.1

Documented and measured in docs/ROADMAP.md:

  • Transformer-based embeddings (today: deterministic hashing-trick)
  • True in-place append-only writer (today: replay-and-swap)
  • io_uring for the candidate scan — measured, not shipping (disk-bound on this host; upside < noise floor)