dsh-tool-ast-grep
基于 ast-grep 的 DeepSeek Harness 插件,提供 ast_search 结构化代码搜索(支持元变量、节点类型与严格模式)与 ast_outline 大纲提取(函数、类、接口等),跨多行匹配且大幅节省 token,优于
查看原仓库英文描述
AST-based structural code search and syntax outline tool for DeepSeek Harness powered by ast-grep
基础信息核对
自动核对项目活跃度
数据覆盖 60% · 有限数据 · 数据截至 2026-09-19
4 次提交 · 最近推送 1 天前
1 个样本 · 暂不计分
0 个样本 · 暂不计分
1 位近 90 天活跃贡献者
最近发布 1 天前
1 Stars · 0 Forks
安装
dsh plugin --profile web add dsh-tool-ast-grep
该插件作者推荐的安装方式与通用形式不同:基于 ast-grep 的 AST 代码搜索插件,可经插件市场或命令安装,需全局安装 @ast-grep/cli;按特殊命令判 custom。。前置要求与注意事项请查看原仓库 README。
还没有 DSH?两步开始 →
第一步:准备 Node.js 环境
DSH 依赖 Node.js(建议 20 LTS 或更新版本)。终端里运行 node -v 能显示版本号即已就绪。
已有 Node.js:直接进入第二步。
没有 Node.js:去 nodejs.org 下载 LTS 安装包(Windows/macOS 双击安装);或用包管理器:
brew install nodewinget install OpenJS.NodeJS.LTS第二步:启动 DSH
无需安装,直接运行:
npx @deepseek-ai/dsh web浏览器打开 http://127.0.0.1:3080,在 Web UI 的插件市场里搜索 dsh-tool-ast-grep,或粘贴上面的安装命令。