FICHA · MANJARO

ast-grep

CLI tool for code structural search, lint and rewriting

  • cli-tool
  • CLI
  • CODE-ANALYSIS
  • Launchable
  • Runs in terminal
official+codex · reviewed · May 27, 2026 description in en

Description

Searches and rewrites source code by syntax tree instead of plain text. This lets developers find code patterns, build lint rules, and make safer mechanical edits across a project.

Use it when text search is too broad or fragile for code changes. It is a developer tool and works best when the language parser supports the files being checked.

How to run

ast-grep

Commands: ast-grep

Permissions

Permissions not analysed for this source yet.