2026-03-16

sqry v4.8.16 → v4.10.1

sqry v4.10.1 covers the v4.9.x and v4.10.x release cycles. This post summarizes what’s new since v4.8.16.

File-Aware Symbol Resolution

Symbol lookups now consider which file you’re editing. When two crates define Config::new, sqry resolves to the one in your current file’s dependency graph instead of returning an ambiguous match.

This affects callers/callees, go-to-definition, hover info, and all MCP/LSP tools — results are now scoped by file context when available, with a fallback to global resolution.

Natural Language Queries

sqry ask translates plain English into structured queries:

sqry ask "find all async functions that call the database"

The intent classifier is a MiniLM-L6-v2 model running locally via ONNX Runtime — no network calls, no API keys. The model ships in release tarballs on all platforms so it works immediately after install.

The same NL capability is available through the MCP server (sqry_ask tool), so AI assistants can query your codebase in natural language with results grounded in the actual call graph.

CSR Graph Compaction

The graph index now compacts edge stores into Compressed Sparse Row (CSR) format before persistence. This reduces snapshot file sizes by 15–30% and speeds up edge traversal queries (callers, callees, trace-path) by improving cache locality.

Compaction runs automatically during sqry index. Existing indexes are forward-compatible — they’ll be compacted on the next rebuild.

Performance

Call hierarchy queries that previously took 47 seconds on large codebases now complete in under 100ms. The fix replaced an O(N) arena scan with O(log n) indexed name lookup combined with definition-kind node filtering.

Cycle detection (sqry cycles) on graphs with 100K+ nodes no longer requires a separate sqry analyze precomputation step — CSR adjacency matrices are built on-the-fly from the loaded graph.

MCP Server Improvements

Cross-Platform Fixes

crates.io Publishing

All 50 workspace crates are now published to crates.io:

cargo install sqry-cli

Individual crates (sqry-core, sqry-mcp, sqry-lsp, language plugins) are available for library use.

Release Artifacts

Release binaries now bundle the NL classifier model on all platforms:

PlatformArchiveContents
Linux x86_64.tar.gzsqry, sqry-mcp, sqry-lsp, models/
Linux ARM64.tar.gzsqry, sqry-mcp, sqry-lsp, models/
Windows x86_64.zipsqry.exe, sqry-mcp.exe, sqry-lsp.exe, models/
macOS ARM64binaries + sqry-models.tar.gzsqry, sqry-mcp, sqry-lsp, models

All artifacts are signed with Cosign (keyless OIDC) and include SLSA Level 2 provenance attestations.

Upgrading

cargo install sqry-cli
sqry --version
# sqry 4.10.1

Or download from GitHub Releases.

Existing indexes are forward-compatible. Run sqry index --force to benefit from CSR compaction.

← All releases