lujunjiehhh/dsh-ast-grep

Persistent ast-grep structural-search tools for DSH, running directly on the napi bindings with 32 bundled language parsers: search, help, syntax-tree dump and rule testing.

Four tools cover structural code search: ast_grep_search matches an ast-grep pattern against inline source and returns structured matches and captures, ast_grep_help retrieves focused rule-writing guidance on demand, dump_syntax_tree inspects bounded CST, AST or pattern structure, and test_match_code_rule checks an ast-grep YAML rule against inline code. Keeping the search tools resident avoids shelling out per query, which is what makes repeated structural searches practical inside a turn.

Tools & Capabilities ★ 0
View on GitHub ↗

Install

dsh plugin --profile web add dsh-ast-grep --ignore-scripts

Copied verbatim from the README's install block. package dsh-ast-grep, registry latest 0.1.0, and its repository field resolves back to github.com/lujunjiehhh/dsh-ast-grep. --ignore-scripts is intentional: the official language packages already ship prebuilt parsers, so no dependency build scripts are needed. Use your own profile name if it is not web.

Compatibility

Requires Node.js ^22.19.0 or >=24.0.0 and DSH. It runs on @ast-grep/napi directly instead of spawning the ast-grep CLI, so there is no separate binary to install; the official @ast-grep/lang-* parsers are bundled and exposed as 32 language identifiers.

Details

Alternatives

Realyujie/dsh-us-stocks · liangjieWeb/dsh-sys-monitor · GuoMonth/dsh-erp

More plugins in Tools & Capabilities

Browse more in Tools & Capabilities

Guides for Tools & Capabilities plugins