EVERYTHING XIAOMI
Get listed
Side by side

ast-grep vs Sourcery

ast-grep logo

ast-grep

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

Sourcery

7.9#1 in code refactoring toolsFrom $12 a month
Free planWebAPIExtensionLinux
Visit

What both publish

Factast-grepSourcery
Custom rulesRules are written in YAML and can combine pattern, kind, regex, relational, and composite matching conditions.Users can define project-wide review rules in a .sourcery.yaml file and use public rulesets such as the Google Python Style Guide.
IntegrationsThe documentation describes editor integrations, including a VS Code extension and language server support for editors such as Vim and Neovim.GitHub, GitLab, GitHub Enterprise Server, self-hosted GitLab, VS Code, Cursor, Windsurf, JetBrains, Jira

ast-grep plans

  • ast-grepFree

Sourcery plans

  • Open SourceFree
  • Pro$12 a month
  • Team$24 a month
  • EnterprisePriced on request

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 Sourcery if…

Sourcery may suit developers and teams seeking automated pull request reviews and security checks across supported Git hosts. Its IDE extension and deployment options also serve users who want code review within their development workflow.

Charts they share