Skip to content
SPECIFICTION
Get listed

ast-grep vs Sourcebot

ast-grep

ast-grep.github.io

Sourcebot

sourcebot.dev

Side by side

Figureast-grepSourcebot
Price fromFree$20/mo
Free planYesYes
Free trial—Yes
Open source——
WebYesYes
WindowsYes—
macOSYes—
LinuxYes—
APIYesYes
Self-hosted—Yes
Plans published13
Spec score · Code Search Tools9.1 (#1)8.0 (#8)
Purposeast-grep is a fast, polyglot tool for structural code search, linting, and rewriting at scale.Sourcebot is a self-hosted tool that helps humans and agents search, navigate, and understand complex enterprise codebases.
SupportThe project directs users with questions or issues to GitHub or Discord and also points to Stack Overflow and Reddit.Basic includes community support, Pro includes onboarding support, and Enterprise includes a dedicated support engineer and SLAs.

Plans

ast-grep

  • ast-grepFree

ast-grep pricing →

Sourcebot

  • BasicFree
  • Pro$20 a month
  • EnterprisePriced on request

Sourcebot pricing →

In their own words

ast-grep

ast-grep is a free, open-source tool for structural code search, linting, and rewriting. It matches patterns against syntax-tree nodes, helping developers locate and change code across a codebase rather than searching plain text. Its CLI can preview and apply rewrites interactively, and scan configurable YAML rules with error, warning, info, or hint severity. Rules can combine pattern, kind, regex, relational, and composite conditions, and CLI commands help create and snapshot-test them. The project says it supports more than 20 languages and can load custom languages. JavaScript and WebAssembly APIs allow programmatic syntax-tree work; a browser playground offers a way to try patterns without local installation. Editor options include a VS Code extension and language-server setups, including for Vim and Neovim. The tool is free, has a web interface, and is distributed through package managers or built from source. Its FAQ notes that some advanced static-analysis information is unsupported, and one rule cannot target multiple languages at once.

Visit ast-grep.github.io

Sourcebot

Sourcebot is a self-hosted tool for searching, navigating, and understanding complex enterprise codebases. Search covers repositories and branches, with regular expressions, filters, boolean logic, and suggestions. Symbol navigation includes go to definition and find references. Its MCP server gives coding agents tools to search code, read files, and resolve symbols across an organization's repositories.

Supported code hosts include GitHub, GitLab, Bitbucket, Azure DevOps, Gerrit, and Gitea, both cloud and self-managed. Ask Sourcebot connectors communicate over MCP and use the connected user's permission boundaries; documented examples include Linear and Jira. Ask Sourcebot requires at least one language model provider configured, with documented providers including OpenAI, Anthropic, Bedrock, Vertex, and Mistral. Sourcebot runs as a single Docker container on customer infrastructure, on-premises or in the cloud. The company says code, indexes, queries, and AI inputs and outputs remain within the customer's environment. Basic is free; Pro costs $20 a month billed per user and includes a 14-day free trial.

Visit sourcebot.dev