{"full_name":"ast-grep/ast-grep","owner":"ast-grep","name":"ast-grep","shard":"1","url":"https://github.com/ast-grep/ast-grep","description":"⚡A CLI tool for code structural search, lint and rewriting. Written in Rust","homepage":"https://ast-grep.github.io/","topics":["codemod","linter","ast","babel","command-line","command-line-tool","grep","tree-sitter","codereview","rust","static-analysis","typescript","refactoring","search","structural-search"],"tag_pages":["ast","babel","command-line","command-line-tool","linter","rust","search","static-analysis","tree-sitter","typescript"],"language":"Rust","license":"MIT","avatar":"https://avatars.githubusercontent.com/u/114017360?v=4","created_at":"2022-07-01T19:21:00Z","pushed_at":"2026-11-14T15:40:02Z","metrics":{"stars":16587,"forks":503,"watchers":41,"issues":775,"prs":2157,"releases":187,"issues_open":38,"issues_closed":737,"prs_open":5,"prs_closed":283,"prs_merged":1869,"discussions":152},"growth":{"day":{"stars":7,"forks":2,"base_day":"2026-11-15"}},"history":{"dates":["2026-11-10","2026-11-11","2026-11-12","2026-11-13","2026-11-14","2026-11-15","2026-11-16"],"stars":[16528,16554,16576,16583,16571,16580,16587],"forks":[499,500,501,500,500,501,503],"watchers":[null,41,41,41,41,41,41],"issues_open":[null,38,38,38,38,38,38],"prs_open":[null,9,7,7,9,5,5]},"boards":{},"same_owner":[],"issues":[{"number":156,"title":"[refactor] use termcolor crate instead of ansi","comments":15,"created_at":"2023-01-03T17:25:40Z"},{"number":56,"title":"command `sg` is in the process of deprecation","comments":15,"created_at":"2022-09-23T10:00:52Z"},{"number":373,"title":"Who is using ast-grep?","comments":11,"created_at":"2023-05-14T16:25:24Z"},{"number":2358,"title":"Support Rule Paths from GitHub URLs","comments":10,"created_at":"2025-11-25T19:40:09Z"},{"number":1963,"title":"[feature] Plugin system","comments":9,"created_at":"2025-04-29T19:50:07Z"},{"number":1141,"title":"[feature] debugger REPL?","comments":9,"created_at":"2024-05-12T19:09:54Z"},{"number":1790,"title":"[feature] move ast-grep/napi to ESM","comments":6,"created_at":"2025-02-05T19:02:31Z"},{"number":548,"title":"[feature] Add pager for interactive search of multiple line match and context match","comments":5,"created_at":"2023-07-24T22:41:57Z"}],"discussions":[{"number":3066,"title":"Using ast-grep to turn coding-agent instructions (CLAUDE.md / AGENTS.md) into lint rules","comments":0,"category":"Show and tell","created_at":"2026-11-05T13:28:20Z"},{"number":2991,"title":"How to select statements from a single switch/case branch?","comments":4,"category":"Q&A","created_at":"2026-10-07T06:38:01Z"},{"number":2898,"title":"How to match full mod_name::mod_element in a Rust macro!()","comments":1,"category":"Q&A","created_at":"2026-08-20T21:30:36Z"},{"number":2872,"title":"let outline specified language only","comments":1,"category":"Q&A","created_at":"2026-08-06T06:29:36Z"},{"number":2866,"title":"Changed result matching comment in JS class member in ^0.45.0","comments":2,"category":"Q&A","created_at":"2026-08-03T21:00:46Z"},{"number":2826,"title":"ast-grep outline: any way to make exactly? the same output when multiple execution on the same workspace?","comments":1,"category":"Q&A","created_at":"2026-07-20T05:40:59Z"},{"number":2728,"title":"Git history suggests ast-grep's core knowledge is still highly concentrated. Does that match reality?","comments":1,"category":"General","created_at":"2026-06-17T06:19:20Z"},{"number":2618,"title":"How can I teach GitHub Copilot to use ast-grep?","comments":1,"category":"Q&A","created_at":"2026-05-04T08:15:07Z"}],"latest_release":{"name":"0.51.2","tag":"0.51.2","published_at":"2026-11-11T05:08:02Z","body":"- chore(deps): update rust crate tree-sitter-scala to v0.26.10 [`#3085`](https://github.com/ast-grep/ast-grep/pull/3085)\n- feat(language): define feature-gated languages with macros [`#3081`](https://github.com/ast-grep/ast-grep/pull/3081)\n- docs: fix dead wasm-pack installer link in the wasm crate README [`#3084`](https://github.com/ast-grep/ast-grep/pull/3084)\n- chore(deps): update dependency oxlint to v1.93.0 [`#3082`](https://github.com/ast-grep/ast-grep/pull/3082)\n- fix(config): do not split words at digits in convert transform [`#3070`](https://github.com/ast-grep/ast-grep/pull/3070)\n- chore(deps): update dependency web-tree-sitter to v0.27.2 [`#3075`](https://github.com/ast-grep/ast-grep/pull/3075)\n- chore(deps): update dependency node to v26 [`#3069`](https://github.com/ast-grep/ast-grep/pull/3069)\n- chore(deps): update rust crate toml_edit to v0.25.19 [`#3071`](https://github.com/ast-grep/ast-grep/pull/3071)\n- chore(deps): update rust crate tree-sitter-scala to v0.26.9 [`#3072`](https://github.com/ast-grep/ast-grep/pull/3072)\n- chore(deps): update dependency oxlint to v1.92.0 [`#3074`](https://github.com/ast-grep/ast-grep/pull/3074)\n- chore(deps): update rust crate smallvec to v1.16.5 [`#3073`](https://github.com/ast-grep/ast-grep/pull/3073)\n- chore(deps): update rust crate tree-sitter to v0.27.2 [`#3076`](https://github.com/ast-grep/ast-grep/pull/3076)\n- test(cli): verify npm packages on all platforms daily [`#3068`](https://github.com/ast-grep/ast-grep/pull/3068)\n- feat(cli): distribute musl Linux binaries [`#3067`](https://github.com/ast-grep/ast-grep/pull/3067)\n- Fail `ast-grep test` for unmatched IDs or when no tests run [`#3065`](https://github.com/ast-grep/ast-grep/pull/3065)\n- chore(deps): update dependency @napi-rs/cli to v3.10.12 [`#3057`](https://github.com/ast-grep/ast-grep/pull/3057)\n- chore(deps): update rust crate serde-saphyr to v2.1.1 [`#3062`](https://github.com/ast-grep/ast-grep/pull/3062)\n- chore(deps): update rust crate toml_edit to v0.25.18 [`#3063`](https://github.com/ast-grep/ast-grep/pull/3063)\n- fix(lsp): report columns in UTF-16 code units [`#3060`](https://github.com/ast-grep/ast-grep/pull/3060)\n- chore(deps): update dependency oxlint to v1.91.0 [`#3061`](https://github.com/ast-grep/ast-grep/pull/3061)\n- chore(deps): update dependency @ast-grep/napi to v0.51.1 [`#3055`](https://github.com/ast-grep/ast-grep/pull/3055)","is_prerelease":false},"readme":true,"readme_zh":false,"news":[],"stale":false,"snapshot_at":"2026-11-16T09:23:14Z","history_start":"2026-09-06"}