grep-ast

JSON →
library 0.9.0 ·python
verified Apr 11, 2026

grep-ast is a command-line tool designed to search through the Abstract Syntax Tree (AST) of source code files. Unlike traditional `grep` which operates on text, `grep-ast` provides a context-aware output, showing how matching lines fit into the broader code structure (functions, classes, etc.). It leverages `tree-sitter` and `tree-sitter-languages` for parsing various programming languages. The current version is 0.9.0, released in May 2025.

total hits 11
actors 6 distinct systems
last hit 2d ago Bingbot
Script
3
GPTBot
2
Search engines
2

top countries 🇺🇸 United States · 🇳🇴 Norway · 🇩🇪 Germany · 🇮🇳 India · 🇨🇦 Canada