Documentation
sqry semantic code search — query reference, MCP integration, LSP setup, and more.
Quick Start
Index your first codebase and run your first query in 5 minutes.
Installation
Install sqry via pre-built binaries, package managers, or build from source.
Install via Your Agent
Copy-paste prompts to make Claude Code, Codex CLI, Gemini CLI, Cursor, or Windsurf install sqry and wire itself up as an MCP client.
Configuration
Configure sqry with .sqry/graph/config/config.json and environment variables.
Query Syntax
Boolean query syntax — operators, fields, regex, and grouping.
Field Reference
Complete reference for every sqry query field.
Examples
Real-world sqry queries for common developer tasks.
MCP Integration
Connect Claude, Codex, and Gemini to sqry via the Model Context Protocol.
Daemon (sqryd)
Keep code graphs warm in memory across CLI, LSP, and MCP sessions with the sqryd background process.
LSP Integration
Use sqry as a Language Server — standard LSP plus custom sqry methods for semantic queries.
Incremental Indexing
Hash-based change detection, cache-dir overrides, and Prometheus metrics export for fast re-indexing.
Language Support
sqry supports 37 language plugins — 28 with full relation support, 9 with symbol extraction plus imports.
Performance
Tune sqry cache, indexing speed, and query latency.
Macro Boundaries
Track Rust macro-generated symbols, filter by #[cfg] predicates, and inspect the macro-expansion cache.
Visualization
Export sqry graphs as Mermaid, Graphviz DOT, and D2 diagrams.
Cross-Language
Query across language boundaries — Rust↔C FFI, JS↔Python HTTP, SQL table access, and more.
Workspace Management
Index and query multiple repositories under a single workspace.
Interactive Shell
Explore your codebase in a REPL with warm index cache and query history.
Batch Processing
Run multiple queries from a file with parallel execution and structured output.
GitHub Action
Run sqry analysis in CI — dead code, cycles, duplicates, and semantic diffs on every PR.
VSCode Extension
Semantic code search, analysis panels, and code lenses in Visual Studio Code.
Security & Supply Chain
Signed builds, SLSA provenance, SBOMs, dependency auditing, fuzzing, and mutation testing.
Diagnostics & Troubleshooting
Diagnostic bundles, usage insights, query history, and index repair.