EveryDev.ai
Subscribe
Home
Developers

3,669+ AI companies

  • Radar
  • Trending
AI Tools by Topic
  • AI Coding Assistants
  • Agent Frameworks
  • MCP Servers
  • AI Prompt Tools
  • Vibe Coding Tools
  • AI Design Tools
  • AI Database Tools
  • AI Website Builders
  • AI Testing Tools
  • LLM Evaluations
Follow Us
  • X / Twitter
  • LinkedIn
  • Reddit
  • Discord
  • Threads
  • Bluesky
  • Mastodon
  • YouTube
  • GitHub
  • Instagram
Get Started
  • Users
  • Rate Tools
  • About
  • Editorial Standards
  • Corrections & Disclosures
  • Community Guidelines
  • Advertise
  • Contact Us
  • Newsletter
  • Submit a Tool
  • Start a Discussion
  • Write A Blog
  • Share A Build
  • Terms of Service
  • Privacy Policy
Explore with AI
  • ChatGPT
  • Gemini
  • Claude
  • Grok
  • Perplexity
Agent Experience
  • llms.txt
Theme
With AI, Everyone is a Dev. EveryDev.ai © 2026
    1. Home
    2. Developers
    3. ast-grep

    ast-grep

    ast-grep is an open-source, fast, polyglot tool for structural code search, linting, and rewriting at scale. It lets developers use code-like patterns against abstract syntax trees rather than imprecise text matching, with CLI, editor, library, and AI-oriented workflows.

    Visit Website

    At a Glance

    1Tool Listed
    10Products
    10Capabilities
    Discussions
    2022Est.
    Focus Areas
    Code Intelligence
    Linters & Formatters
    Command Line Assistants
    Connect
    Latest News
    How ast-grep Rewrote Tree-sitter in Rust and Made It 30% FasterJul 22, 2026
    Rewriting Tree-sitter's C Core in Rust: Migration and CompatibilityJul 21, 2026
    Markets
    • Software developers and developer-tool teams
    • Open-source maintainers and framework authors
    • Organizations performing large codebase migrations
    • Teams needing custom linting/static analysis
    • +2 more

    AI Tools by ast-grep

    (1)
    View ast-grep
    ast-grep tool icon

    ast-grep

    Structural Code Search and Rewrite

    Code IntelligenceLinters & FmtsCLI Assistants

    Discussions

    No discussions yet

    Be the first to start a discussion about ast-grep

    Latest News

    07/22/2026

    How ast-grep Rewrote Tree-sitter in Rust and Made It 30% Faster

    ast-grep.github.io
    07/21/2026

    Rewriting Tree-sitter's C Core in Rust: Migration and Compatibility

    ast-grep.github.io
    07/20/2026

    Improving Tree-sitter's GLR Algorithm and Memory Layout

    ast-grep.github.io
    07/19/2026

    Optimizing Tree-sitter for End-to-End ast-grep Performance

    ast-grep.github.io

    Products & Services

    10
    ast-grep CLI (sg)
    2022

    MIT-licensed Rust command-line tool for AST-based structural search, linting, rewriting, interactive codemods, rule testing, and language-server operation; installable through npm, pip, Cargo, Homebrew and other package managers.

    ast-grep scan and rule engine
    2022

    YAML- and pattern-based linter/rule system with composable matching, constraints, rewrites, diagnostics, tests, JSON output, and interactive fixes.

    ast-grep NAPI / Node.js API
    2022

    Programmatic Node.js bindings for traversing and manipulating syntax trees, including opt-in type safety; published as @ast-grep/napi.

    ast-grep Playground
    2022

    Browser-based interactive environment for trying patterns, rules, searches, and rewrites, powered by WebAssembly.

    Market Position

    ast-grep positions itself between text grep/sed and heavier AST tooling: it offers grep-like, code-shaped patterns with AST precision, Rust/multi-core performance, and a progression from one-line CLI queries to YAML lint rules, interactive codemods, language-server tooling, and programmatic APIs. Its official documentation names Semgrep, comby, shisho, gogocode, and gritQL as comparable or predecessor tools; its differentiation is polyglot syntax matching, batteries-included rewriting, and native Rust performance.

    Leadership

    Founders

    HD

    Herrington Darkholme

    Web developer and open-source enthusiast specializing in TypeScript and Rust; previously worked at ByteDance contributing to React.js and Flow. He identifies himself as ast-grep's author and describes ast-grep as his hobby project.

    Founding Story

    Herrington Darkholme started ast-grep as a hobby project to make searching and rewriting code easier using abstract syntax trees. The initial vision was to combine the accessibility of grep/sed with syntax-aware precision, while progressively supporting linting, codemods, editor integration, and programmatic APIs.

    Business Model

    Revenue Model

    The core software is open source and MIT-licensed. Project sustainability is supported through GitHub sponsorships and sales of the Mastering ast-grep book; there is no evidence of a paid hosted SaaS or usage-based API for ast-grep itself.

    Pricing Tiers

    Mastering ast-grep
    $20 suggested price; $10 minimum

    Paid Leanpub technical book; the author page says book purchases directly support ongoing development and maintenance of the project.

    Target Markets

    Industries & Segments
    • Software developers and developer-tool teams
    • Open-source maintainers and framework authors
    • Organizations performing large codebase migrations
    • Teams needing custom linting/static analysis
    • AI coding-tool and agent developers
    • Users of Rust, TypeScript/JavaScript, Python, Go, Java, C/C++, HTML/CSS, Kotlin, Swift, YAML and related ecosystems
    Use Cases
    • Large-scale API migrations and breaking-change upgrades
    • Automated refactoring and codemods
    • Custom static analysis and lint rules
    • Code review and policy enforcement in CI
    • Searching large polyglot repositories by syntax rather than text
    • Editor-assisted interactive code fixes
    Notable Customers
    • SWC
    • Shopify Hydrogen
    • Modern.js
    • CodeRabbit

    Quick Facts

    Founded
    2022

    History & Milestones

    January 2, 2026

    The project announced Mastering ast-grep, a paid technical book intended to support project sustainability.

    March 15, 2026

    ast-grep 0.42 introduced parameterized utilities, ESQuery-style selectors, and improved LSP diagnostics for injected languages.

    May 25, 2026

    ast-grep 0.43 added Markdown support and direct ESQuery-style selectors to ast-grep run.

    June 22, 2026

    ast-grep Outline was introduced, providing a fast syntax-aware table of contents for source code and coding-agent workflows.

    March 4, 2025

    ast-grep announced reaching 8,000 GitHub stars and described its growing open-source community.

    Key Capabilities

    10
    AST/syntax-aware search and replace using code patterns and metavariables
    Linting with composable YAML rules, constraints, diagnostics, and tests
    Large-scale parallel Rust performance across tens of thousands of files
    Support for 20+ languages including C/C++, Rust, Go, Java, Python, JavaScript/TypeScript, HTML, CSS, Kotlin, Swift, JSON, YAML, HCL, Lua, and Nix
    Interactive rewrite/codemod mode and JSON output for tooling pipelines
    Language-server integration and VS Code diagnostics/code fixes

    Integrations & Partnerships

    Platform Integrations

    • npm (@ast-grep/cli and @ast-grep/napi)
    • PyPI (ast-grep-cli)
    • Cargo, cargo-binstall, Homebrew, Scoop, MacPorts, Nix, mise, and Repology
    • VS Code via ast-grep-vscode
    • GitHub Actions via ast-grep/action
    • Node.js through NAPI bindings
    • Browser/WebAssembly playground
    • Model Context Protocol via ast-grep-mcp

    Key Partnerships

    Microsoft GenAIScript provides a wrapper around ast-grep for AST search and transformation.
    The project integrates with Cursor and Claude Desktop through its experimental MCP server.
    The project is used by and links to ecosystem projects including SWC, Shopify Hydrogen, Modern.js, CodeRabbit, Codemod, OpenNext, Dify, vue-macros, and unplugin-vue-cssvars.

    Connect

    Website
    ast-grep.github.io/
    GitHub
    ast-grep

    AI Topics

    3

    ast-grep focuses on these topics:

    Code Intelligence(1)
    Linters & Formatters(1)
    Command Line Assistants(1)
    Back to all developersSuggest an edit