adithyanraj03/dsh-graft-plugin
A DeepSeek Harness plugin that puts graft — a prebuilt graph of every symbol, its file:line span, and who calls what — in front of both you and the model.
Project Overview项目介绍
This is a native DeepSeek Harness (DSH) plugin built exclusively to integrate the Graft code graph tool into DSH sessions. It adds a status chip to the DSH composer that displays the current graft index status, whether it is in sync with the codebase, and how many tokens it has saved for the current session. It also exposes five Graft tools for the DSH agent to use, adds a /graft slash command to rebuild the index, and includes a button to visualize the code graph in the DSH sidebar. It works with both DSH 0.1.5+ native right sidebar and the older dsh-better-sidebar extension, falling back to opening the graph in a browser tab if no sidebar is available.
This plugin is targeted at DSH developers working with large codebases who want to reduce context bloat by leveraging code graph indexing. The typical workflow starts with installing the plugin via the DSH CLI, installing the Graft CLI globally to your system PATH, and building an initial code index for your target repository. After that, the plugin will automatically trigger a reindex whenever the DSH agent edits files, keeping the index in sync with the current codebase. The agent can then use the Graft tools to query symbol locations, caller relationships and get a skeleton of the codebase to work from. You can also configure the plugin to disable specific features like auto-rebuild or tool access via your DSH profile's cordis.patch.yml file if you only need the status chip.
The plugin requires Node.js version 22 or newer, and the Graft CLI must be installed and available on your system PATH before you can use it. If you are using pnpm 10 or newer, the default configuration blocks postinstall scripts for unapproved packages, so you will need to run pnpm approve-builds in your DSH profile directory after installing the plugin to complete the setup. After installation, you should verify that the plugin is listed both in dependencies and DSH bundles in your profile's package.json to confirm it mounted correctly. The plugin is released under the open-source MIT license, and all core features work on all supported DSH versions from 0.1.2-rc.1 up to the latest 0.1.5 release.
这是一款专为 DeepSeek Harness 开发的原生插件,用于将 Graft 的代码图谱能力集成到 DSH 工作流中。它在 DSH 的编辑器面板提供状态芯片,显示当前代码索引状态和已节省的 Token 数量,还为模型提供五个代码图谱查询工具,支持索引构建/重建操作,模型修改代码后可自动重建索引,还可通过可视化按钮在侧边栏打开代码图谱。它同时兼容 DSH 0.1.5+ 内置侧边栏和第三方 dsh-better-sidebar,适配不同版本的 DSH。
该插件面向需要在 DSH 开发会话中利用代码图谱优化大模型上下文的开发者。典型工作流是:先安装插件和 Graft CLI,在目标项目仓库构建初始代码索引,开发过程中插件会自动在模型修改代码后保持索引同步,开发者可让大模型调用 Graft 工具查询符号位置、调用关系等信息,还能可视化查看整个仓库的代码结构,帮助大模型减少上下文冗余,提升对大型代码库的理解效率。
该插件要求 Node 版本不低于 22,需要预先将 Graft CLI 安装到系统环境变量路径中。使用 pnpm 10 及以上版本安装时,默认会阻止未批准包的 postinstall 脚本,需要手动执行 approve-builds 命令完成安装。插件采用 MIT 许可证开源,可通过 DSH 的插件命令一键安装,安装后需要手动确认插件已正确挂载到当前配置文件中。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-graft-plugin(adithyanraj03/dsh-graft-plugin)
仓库:https://github.com/adithyanraj03/dsh-graft-plugin
本站详情页:https://www.yhbd.top/plugins/adithyanraj03-dsh-graft-plugin/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 4 · 最近提交 2026-09-23 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 4 stars - very few users, little community feedback星标只有 4,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add dsh-graft-plugin
把 adithyanraj03/dsh-graft-plugin 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-graft-plugin
A DeepSeek Harness plugin that puts graft — a prebuilt graph of every symbol, its file:line span, and who calls what — in front of both you and the model.
It does four things:
- A chip in the composer naming the graft index the current session is actually serving, whether it still matches the code, and how many tokens graft has saved in that repo.
- Five tools for the model —
graft_ask,graft_grep,graft_callers,graft_skeleton,graft_map— resolved per session, so one dsh can serve several workspaces at once. /graftto build or rebuild the index, and auto-rebuild after the model edits files.- A
graft vizbutton that opens the graph in dsh's built-in right sidebar (0.1.5+), in dsh-better-sidebar if you still run it, and in a browser tab as the last resort.
Install
dsh plugin --profile web add dsh-graft-plugin
dsh --profile web
pnpm 10 and later block postinstall scripts from unapproved packages, and dsh skips writing the plugin's bundle row whenever the install exits non-zero — the dependency lands, the plugin stays invisible, and dsh starts up cleanly with no error to search for. If add ends with ERR_PNPM_IGNORED_BUILDS, approve and re-run it:
cd ~/.dsh/profiles/web && pnpm approve-builds # tick dsh-graft-plugin
dsh plugin --profile web add dsh-graft-plugin # re-run so the bundle row gets written
Confirm it mounted — the plugin must appear in both dependencies and dsh.profile.bundles in the profile's package.json:
cd ~/.dsh/profiles/web && node -e "const p=require('./package.json');
console.log(p.dependencies['dsh-graft-plugin'],
p.dsh.profile.bundles.includes('dsh-graft-plugin'))"
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
freestylefly/awesome-gpt-image-2
awesome-dsh-plugin/awesome-dsh-plugin
zhu1090093659/dsh-web