DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Codegraph — DSH Plugin for DeepSeek Harness
← Plugins
C

@meteor-system/dsh-codegraph

Codegraph

CodeGraph plugin for DeepSeek Harness — indexes the project into a relation graph and exposes codegraph_explore, one agent tool answering reachability, callers, and impact questions. · 将项目索引为代码关系图,暴露 codegraph_explore 工具回答'如何到达/谁调用/改动影响'。

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:Meteor-system/dsh-codegraph#79ac4eda3003c0b6c82c7f74306dac7116ae6006
READMECompatibilityVersions

Compatibility and provenance

Codegraph is published as @meteor-system/dsh-codegraph and currently resolves to version 0.12.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
github
Registry updated
9/20/2026

Versions

0.12.0stable
9/20/2026

Related plugins

Loading related plugins…

Latest
0.12.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
web
License
MIT
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
9/20/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in

Related plugins

More verified plugins in developer-tools.

Web App@deepseek-ai/dsh-web-appThe dsh browser-surface bundle: the web patch layer over dsh-base plus the runtime glue plugin (frontend dist serving, web-surface prompt, bash runtime variables, URL line)Sdk Minimal@deepseek-ai/dsh-sdk-minimalThe standalone minimal SDK profile bundle: JSON-RPC, one DeepSeek adapter, persistent shell, and JSONL sessionsSdk App@deepseek-ai/dsh-sdk-appThe dsh SDK profile bundle: stdio JSON-RPC serving and process lifecycle over dsh-baseSubagent Codex@deepseek-ai/dsh-subagent-codexOne-shot Codex subagent provider over the official app-server protocol

README

CodeGraph

DeepSeek Harness 插件。把当前工作区的源码编成一张关系图,给 agent 一个工具:codegraph_explore。

用来回答三件事:谁在调用 X、改 X 会影响谁、X 能不能走到 Y。不是全站搜索,也不是跨仓库的全局索引。

装一次到 DSH profile;默许关闭。和 agent 预设无关。

一句话怎么调

你不用填 JSON。在已经打开目标仓库的对话里,对 agent 说人话即可:

查一下 graphFor 都有谁在调用

其它说法同样有效:

  • 「改 activate 会波及哪些符号」→ impact
  • 「apply 能不能到达 graphFor」→ reachability

agent 会自己调用 codegraph_explore。返回路径(如 src/graph.ts)都属于当前这个工作区,不是「所有装了插件的项目」。换仓库、新开对话,查的就是那个仓库。

工作原理

  1. 插件装在 DSH profile 里。启用后,这个 profile 下的 agent 都能看到 codegraph_explore。
  2. 第一次调用才扫描当前会话的工作区根目录,抽出定义 / 调用 / 导入 / 继承 / 类型引用,写成图。
  3. 图缓存在 <项目>/.dsh/codegraph/。以后每次调用先做增量刷新,再查询;超时(默认 300s)返回 indexing,不会一直挂死。
  4. 每条边带置信度:exact(解析器证明)、inferred(跨文件名字匹配)、heuristic(猜的)。工具不会把猜测装成定论。
  5. 符号有歧义时返回候选列表,不会偷偷挑一个。

查询始终针对这次对话的工作区。GUI 进程的家目录、别的仓库,都不会混进这一次结果。

安装(每个 DSH profile 一次)

dsh plugin --profile web add @meteor-system/dsh-codegraph

本地开发包:

dsh plugin --profile web add file:./meteor-system-dsh-codegraph-0.12.0.tgz

改完 profile 的 patch 后要重启该 profile(正在跑的 GUI 不会热替换整棵插件树)。

启用

默认关闭。任选一种:

当前项目(写在仓库旁边,不进 profile):

// <project>/.dsh/codegraph/config.json
{ "enabled": true }

或整个 profile 常开($DSH_HOME/profiles/<name>/cordis.patch.yml):

- id: dsh-codegraph
  config:
    enabled: true

启用本身不扫描。改启用状态后重启会话;进行中的请求仍用旧工具集。

/codegraph

启用后可以打 /codegraph。一次运行会:

  1. Index warmup — 调 codegraph_explore,直到 metadata.index.status 不是 indexing(图落在当前工作区磁盘上)。
  2. Diff impact pass — 工作区有未提交改动时,对 diff 里最多 10 个顶层导出符号跑 callers / impact;干净树跳过这一步。

插件没开时这个命令不存在。技能不是 agent 预设,也不会在打开会话时偷偷建索引。

配置

项目级覆盖:

KeyDefaultMeaning
max_file_bytes1_000_000Skip files larger than this
max_files50_000Stop the scan at this many files
build_timeout_ms300_000First-build / refresh wait; exceeded → indexing
include—Extra globs to force-include
exclude—Extra globs to force-exclude

Scan 还尊重 .gitignore 和默认排除(node_modules、dist、build、.git、.dsh、.conda、site-packages、.venv、.claude 等)。

Storage: 索引在 <project>/.dsh/codegraph/。不要提交进 git。

三种模式

mode问什么典型人话
callers谁调用 target查一下 foo 都有谁在调用
impact改 target 影响谁(默认深度 5,上限 20)改 foo 会波及什么
reachabilitytarget 能否到达 path_tofoo 能不能走到 bar

可选:scope(包名或路径前缀)、limit(默认 50,硬顶 200)、confidence、relation、include_snippets。

Diagnostics

结果里带可枚举的 diagnostic 码。宁可部分结果 + 诊断,也不编造。

CodeWhen
partialScan or extraction skipped some files
unsupported_languageLanguage outside shipped extraction (including Razor until its wasm ships)
indexingBuild/refresh exceeded the timeout; retry
truncatedResult budget hit (default 50 paths, hard cap 200)
invalid_modemode is not reachability / callers / impact
no_pathReachability found no path
ambiguous_targetMultiple symbols matched; use candidates
file_oversize / file_binary / file_decode_failedFile skipped
file_count_stopScan stopped at max_files

Limitations

  • Syntax-level extraction plus import/export and qualified-name matching. No type checker, no control-flow graph.
  • Confidence on every edge: exact / inferred / heuristic.
  • Razor has no published grammar WASM; .razor 目前是 unsupported_language(precision: markup-reduced)。见 scripts/build-razor-wasm.md。
  • C/C++ macros are not expanded (heuristic limit).
  • Queries are read-only. The index-store write is an internal indexing side effect.
  • 工具调用上限 300s;超时返回 indexing,不会无限等待。

License

MIT