EVERYTHING XIAOMI
Get listed
Side by side

ast-grep vs sqry

ast-grep logo

ast-grep

7.0#3 in code search toolsFree plan
Free planWebAPIExtensionLinux
Visit
sqry logo

sqry

6.4#11 in code search toolsFree plan
Free planLinuxmacOSWindows
Visit

What both publish

Factast-grepsqry
LanguagesThe project says it supports 20+ languages and allows custom languages to be loaded.sqry lists 37 language plugins; 28 support full relation tracking and nine provide symbol extraction and import tracking.
Language supportThe site says ast-grep supports 20+ programming languages and can load custom languages.sqry has 37 language plugins: 28 provide full relation support and nine provide symbol and import extraction.
Purposeast-grep is a fast, polyglot tool for structural code search, linting, and rewriting at scale.sqry parses source code into an abstract syntax tree and symbol graph to answer structural code queries such as who calls a function.

ast-grep plans

  • ast-grepFree

sqry plans

  • sqryFree

Pick ast-grep if…

It suits developers who need syntax-aware search, linting, or bulk code changes across supported languages. Teams wanting advanced static-analysis information or one rule spanning multiple languages should note its stated limits.

Pick sqry if…

sqry suits developers who want to query code relationships locally or connect code navigation to an LSP-compatible editor. Its MCP server also supports several AI assistants, including Claude, Codex, Gemini, Cursor, and Windsurf.

Charts they share