Sqry

•
32
•

Parses source code into an Abstract Syntax Tree (AST) and builds a graph of symbols and relationships to enable semantic code search.

Sqry is a powerful command-line tool designed for semantic code search, moving beyond simple text matching. By analyzing code structure through AST parsing and building a comprehensive graph of symbols and their relationships, it allows users to query code based on its meaning rather than just its syntax. This capability is essential for tasks like finding all callers of a function, tracing execution paths, detecting circular dependencies, and integrating with AI assistants for deeper code understanding.

Características Principales

01Semantic code search with structured queries (e.g., `kind:function AND async:true`)
02Advanced code graph analysis (trace paths, find cycles, detect unused code, dependency analysis)
03Extensive language support for 35 programming languages, with 28 having full relation extraction
04Integration with AI assistants via an MCP server providing 33 JSON-RPC tools for structured code insights
05LSP server for editor integration, offering hover, definitions, references, and call hierarchy
069 GitHub stars

Casos de Uso

01Identifying all callers or callees of a specific function across a codebase
02Tracing execution paths between two symbols to understand code flow
03Detecting circular dependencies or unused code for refactoring and maintenance