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.
Install
dsh plugin --profile web add dsh-ast-grep --ignore-scriptsCopied 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
- Repo: lujunjiehhh/dsh-ast-grep
- Category: Tools & Capabilities
- Stars: 0
- Version: 0 stars, JavaScript, MIT, created 2026-09-08; install source is npm (dsh-ast-grep, latest 0.1.0, registry repository field resolves back to this repo); English README only.
Alternatives
Realyujie/dsh-us-stocks · liangjieWeb/dsh-sys-monitor · GuoMonth/dsh-erp