# ast-grep vs Ruff

**Leader by Vioscale score:** Ruff

| Attribute | ast-grep | Ruff |
|---|---|---|
| **Vioscale score** | 59.5 (45% (low)) | 74 (76% (high)) |
| activity.commits_last_30d | 49 | 100 |
| adoption.dependent_repos | 177 | 5,870 |
| adoption.github_stars | 15,649 | 49,341 |
| adoption.package_downloads_weekly | - | 77,677,334 |
| deployment.options | `{"self_hosted":true}` | `{"self_hosted":true}` |
| description.long | A structural code search and rewriting tool that uses AST analysis to locate and modify code patterns across thousands of files, with support for linting and programmatic access via Node.js bindings. | A fast Python linter built in Rust that consolidates multiple linting tools into a single interface. It supports over 500 rules, provides automated fixes for common issues, and runs significantly faster than traditional Python linters on even very large codebases. |
| features.capabilities | `{"autofix":true,"function":"static_analyzer","deployment":"cli_local","open_source":"oss","config_model":"rule_packs","custom_rules":true,"impl_language":"Rust","pricing_model":"free","language_scope":"multi_language","editor_integration":true}` | `{"autofix":true,"function":"linter","deployment":"cli_local","incremental":true,"open_source":"oss","impl_language":"Rust","pricing_model":"free","language_scope":"single_language","editor_integration":true}` |
| integrations.count | - | 6 |
| integrations.list | - | `[{"name":"Flake8"},{"name":"isort"},{"name":"Autoflake"},{"name":"Pyflakes"},{"name":"pycodestyle"},{"name":"Pylint"}]` |
| language.primary | Rust | Rust |
| license.spdx | MIT | MIT |
| market.availability | - | `{"hqCountry":"US","primaryMarkets":["US"],"availabilityScope":"global","availableCountries":[],"notAvailableCountries":[]}` |
| platform.support | `{"cli":true}` | `{"cli":true,"mac":true,"linux":true,"windows":true}` |
| pricing | `{"type":"open_source","freeTier":true,"sourceUrl":"https://ast-grep.github.io","retrievedAt":"2026-08-14T09:19:23.517Z"}` | - |
| pricing.free_tier | yes | - |
| pricing.model | commercial | commercial |
| pricing.price_level | free | - |
| release.cadence_days | 14 | 7 |
| release.history | `[{"url":"https://github.com/ast-grep/ast-grep/releases/tag/0.45.2","date":"2026-08-23T19:48:48Z","type":"stable","version":"0.45.2"},{"url":"https://github.com/ast-grep/ast-grep/releases/tag/0.45.1","date":"2026-08-07T15:13:34Z","type":"stable","version":"0.45.1"},{"url":"https://github.com/ast-grep/ast-grep/releases/tag/0.45.0","date":"2026-07-23T16:07:00Z","type":"stable","version":"0.45.0"},{"url":"https://github.com/ast-grep/ast-grep/releases/tag/0.44.1","date":"2026-07-04T14:06:40Z","type":"stable","version":"0.44.1"},{"url":"https://github.com/ast-grep/ast-grep/releases/tag/0.44.0","date":"2026-06-22T01:49:47Z","type":"stable","version":"0.44.0"},{"url":"https://github.com/ast-grep/ast-grep/releases/tag/0.43.0","date":"2026-05-25T17:54:30Z","type":"stable","version":"0.43.0"},{"url":"https://github.com/ast-grep/ast-grep/releases/tag/0.42.3","date":"2026-05-19T15:18:18Z","type":"stable","version":"0.42.3"},{"url":"https://github.com/ast-grep/ast-grep/releases/tag/0.42.2","date":"2026-05-10T21:58:34Z","type":"stable","version":"0.42.2"},{"url":"https://github.com/ast-grep/ast-grep/releases/tag/0.42.1","date":"2026-04-04T16:01:20Z","type":"stable","version":"0.42.1"},{"url":"https://github.com/ast-grep/ast-grep/releases/tag/0.42.0","date":"2026-03-16T03:29:14Z","type":"stable","version":"0.42.0"},{"url":"https://github.com/ast-grep/ast-grep/releases/tag/0.41.1","date":"2026-03-10T14:04:27Z","type":"stable","version":"0.41.1"},{"url":"https://github.com/ast-grep/ast-grep/releases/tag/0.41.0","date":"2026-02-22T18:57:13Z","type":"stable","version":"0.41.0"},{"url":"https://github.com/ast-grep/ast-grep/releases/tag/0.40.5","date":"2026-01-10T17:57:43Z","type":"stable","version":"0.40.5"},{"url":"https://github.com/ast-grep/ast-grep/releases/tag/0.40.4","date":"2026-01-05T01:22:05Z","type":"stable","version":"0.40.4"},{"url":"https://github.com/ast-grep/ast-grep/releases/tag/0.40.3","date":"2025-12-15T15:38:42Z","type":"stable","version":"0.40.3"},{"url":"https://github.com/ast-grep/ast-grep/releases/tag/0.40.2","date":"2025-12-14T22:38:05Z","type":"stable","version":"0.40.2"},{"url":"https://github.com/ast-grep/ast-grep/releases/tag/0.40.1","date":"2025-12-11T05:41:28Z","type":"stable","version":"0.40.1"},{"url":"https://github.com/ast-grep/ast-grep/releases/tag/0.40.0","date":"2025-11-16T04:57:10Z","type":"stable","version":"0.40.0"},{"url":"https://github.com/ast-grep/ast-grep/releases/tag/0.39.9","date":"2025-11-07T02:08:26Z","type":"stable","version":"0.39.9"},{"url":"https://github.com/ast-grep/ast-grep/releases/tag/0.39.7","date":"2025-10-27T16:06:30Z","type":"stable","version":"0.39.7"}]` | `[{"url":"https://github.com/astral-sh/ruff/releases/tag/0.16.4","date":"2026-08-20T17:44:56Z","type":"stable","version":"0.16.4"},{"url":"https://github.com/astral-sh/ruff/releases/tag/0.16.3","date":"2026-08-13T15:18:05Z","type":"stable","version":"0.16.3"},{"url":"https://github.com/astral-sh/ruff/releases/tag/0.16.2","date":"2026-08-07T13:31:55Z","type":"stable","version":"0.16.2"},{"url":"https://github.com/astral-sh/ruff/releases/tag/0.16.1","date":"2026-07-30T19:37:52Z","type":"stable","version":"0.16.1"},{"url":"https://github.com/astral-sh/ruff/releases/tag/0.16.0","date":"2026-07-23T19:12:22Z","type":"stable","version":"0.16.0"},{"url":"https://github.com/astral-sh/ruff/releases/tag/0.15.22","date":"2026-07-16T15:15:10Z","type":"stable","version":"0.15.22"},{"url":"https://github.com/astral-sh/ruff/releases/tag/0.15.21","date":"2026-07-09T20:02:30Z","type":"stable","version":"0.15.21"},{"url":"https://github.com/astral-sh/ruff/releases/tag/0.15.20","date":"2026-06-25T17:21:46Z","type":"stable","version":"0.15.20"},{"url":"https://github.com/astral-sh/ruff/releases/tag/0.15.19","date":"2026-06-24T01:11:40Z","type":"stable","version":"0.15.19"},{"url":"https://github.com/astral-sh/ruff/releases/tag/0.15.18","date":"2026-06-18T18:26:34Z","type":"stable","version":"0.15.18"},{"url":"https://github.com/astral-sh/ruff/releases/tag/0.15.17","date":"2026-06-11T17:57:00Z","type":"stable","version":"0.15.17"},{"url":"https://github.com/astral-sh/ruff/releases/tag/0.15.16","date":"2026-06-04T16:34:11Z","type":"stable","version":"0.15.16"},{"url":"https://github.com/astral-sh/ruff/releases/tag/0.15.15","date":"2026-05-28T14:18:02Z","type":"stable","version":"0.15.15"},{"url":"https://github.com/astral-sh/ruff/releases/tag/0.15.14","date":"2026-05-21T14:35:54Z","type":"stable","version":"0.15.14"},{"url":"https://github.com/astral-sh/ruff/releases/tag/0.15.13","date":"2026-05-14T13:45:27Z","type":"stable","version":"0.15.13"},{"url":"https://github.com/astral-sh/ruff/releases/tag/0.15.12","date":"2026-04-24T18:18:25Z","type":"stable","version":"0.15.12"},{"url":"https://github.com/astral-sh/ruff/releases/tag/0.15.11","date":"2026-04-16T18:47:31Z","type":"stable","version":"0.15.11"},{"url":"https://github.com/astral-sh/ruff/releases/tag/0.15.10","date":"2026-04-09T14:07:15Z","type":"stable","version":"0.15.10"},{"url":"https://github.com/astral-sh/ruff/releases/tag/0.15.9","date":"2026-04-02T18:18:12Z","type":"stable","version":"0.15.9"},{"url":"https://github.com/astral-sh/ruff/releases/tag/0.15.8","date":"2026-03-26T19:09:30Z","type":"stable","version":"0.15.8"}]` |
| security.gdpr | - | yes |
| security.vulnerabilities | `{"count":0,"source":"https://advisories.ecosyste.ms/api/v1/advisories?ecosystem=npm&package_name=%40ast-grep%2Fnapi&per_page=100","last_12m":0,"max_severity":null}` | `{"count":0,"source":"https://advisories.ecosyste.ms/api/v1/advisories?ecosystem=pypi&package_name=ruff&per_page=100","last_12m":0,"max_severity":null}` |

## Capabilities (Code Quality Tools)

| Capability | ast-grep | Ruff |
|---|:--:|:--:|
| **Core** |  |  |
| Function | Static analyzer | Linter |
| Language scope | Multi-language | Single-language |
| Implementation language | Rust | Rust |
| **Capability** |  |  |
| Autofix | ✓ | ✓ |
| **Config** |  |  |
| Config model | Rule packs | - |
| **Extensibility** |  |  |
| Custom rules | ✓ | - |
| **Deployment** |  |  |
| Deployment | CLI-local | CLI-local |
| **Delivery** |  |  |
| Editor integration | ✓ | ✓ |
| CI / VCS gating | - | - |
| **Insight** |  |  |
| Code metrics | - | - |
| **Performance** |  |  |
| Incremental / monorepo aware | - | ✓ |
| **Licensing** |  |  |
| Open-source | OSS | OSS |
| **Commercial** |  |  |
| Pricing model | Free | Free |

*Source: Vioscale. Generated 2026-09-01T17:34:36.500Z. "-" = undocumented, not absent.*
