DeepSeek Harness plugin

kgraph-plugin

DSH bundle (组合包): read-only project knowledge graph — modules, tech stack, architecture layers, file-level import graphs, observations. Provides /kgraph command, project_kgraph model tool and a

Jump to install

Source facts

Repository
lzhphantom/kgraph-plugin
Latest update
Aug 16, 2026
Category
Tools & Capabilities
GitHub stars
0
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/lzhphantom/kgraph-plugin
Plugin: kgraph-plugin
Author: lzhphantom

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer4 files
README.en.mdSource · read only
README language

dsh-kgraph-plugin — Project Knowledge Graph

English | 中文

> A DSH (DeepSeek Harness) bundle plugin that scans any project directory read-only and builds a module-level + file-level knowledge graph, so you can quickly understand the overall architecture and design of a codebase before evolving or optimizing it. > > Packaged as a standard bundle per the official DSH publishing docs. Installable via npm / GitHub / tarball.

📸 Preview

![Overall knowledge graph](asserts/pet-mall-all-kgraph.png)

![Backend module graph](asserts/pet-mall-backend-kgraph.png)

✨ Features

  • Read-only analysis: uses the DSH fs service only (resolve / listDir / stat / readText); never modifies the scanned project
  • Multi-module detection: splits monorepos automatically by manifest (pom.xml / package.json / go.mod / requirements.txt / pyproject.toml, etc.)
  • Multi-language dependency resolution: Java/Kotlin (fully-qualified class index), TS/JS/Vue (aliases + relative paths), Python (dot paths), Go (root-relative imports)
  • Layer classification: controller / service / mapper / entity / dto / config / pages / components / router / store / api / util, etc.
  • Graph output: module dependency graph, per-module file-level graph, tech stack, entry points, key files, architecture observations
  • Usage entry: floating UI panel (bottom-right, primary entry — type a path and scan) · project_kgraph model tool (Agent-readable, shares the same scan cache with the panel)

📦 Installation

Recommended (explicit version to avoid pnpm lockfile caching an older release):

dsh plugin --profile web add dsh-kgraph-plugin@0.3.0

> Add --registry=https://registry.npmjs.org if your npm default registry is a mirror. Tarball (dsh plugin add ./xxx.tgz) and GitHub (dsh plugin add github:you/dsh-kgraph-plugin) installs are also supported. > > Verify: dsh --profile web --dump-config should show the # == dsh-kgraph-plugin layer. Remove: dsh plugin --profile web remove dsh-kgraph-plugin.

🚀 Usage

After installation and startup, a 「Project Knowledge Graph」 floating panel appears at the bottom-right of the page:

1. Enter a project path (e.g. G:/code/my-project) → click Scan 2. Overview: module cards, tech stack, module dependency graph, architecture observations 3. Click a module to open its file-level layered graph (controller → service → mapper → …); click any node to view code details 4. Use for fullscreen browsing of large graphs, to collapse the panel

Agents can also call the project_kgraph tool ({ "path": "G:/code/my-project" }) to get the full graph JSON — it shares the same scan cache as the panel.

🗂️ Project Structure

kgraph-plugin/
├── package.json        # dsh.bundle + dsh.client declarations
├── cordis.patch.yml    # bundle config layer
├── index.js            # Host: scan engine + project_kgraph tool + /api/kgraph data routes
├── lib/client.js       # Browser: floating graph panel (ModuleLoader protocol)
├── asserts/            # screenshots
└── dynamic/            # legacy dynamic-plugin mode sources (optional)

📜 Changelog

VersionNotes
0.1.0Packaged as a standard bundle
0.1.1Fixed tools service injection
0.2.xAdded browser UI panel, fullscreen/collapse, shared cache, UI fixes
0.3.0Current: removed the /kgraph command; usage is now the bottom-right panel + project_kgraph tool

License

[MIT](LICENSE)