DeepSeek Harness 插件

LiuHe

LiuHe (Six Harmonies) tool suite as a DeepSeek Harness (dsh) plugin bundle — 44 MCP tools with dynamic workspace injection(英文原文)

跳到安装方式

来源信息

GitHub 仓库
wulun811/LiuHe
最近更新
2026年8月20日
分类
工具与能力
GitHub stars
1
载体类型
plugin
包路径
malong/dsh/bundle
目录证据
上游声明已找到 dsh.bundle
证据路径
malong/dsh/bundle/package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/wulun811/LiuHe/tree/HEAD/malong/dsh/bundle
插件名:LiuHe
作者:wulun811

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览

@jieai/dsh-malong-bridge

Official DSH (DeepSeek Harness) plugin for LiuHe / malong. One command puts all 44 malong__* MCP tools into dsh web, and malong's workspace automatically follows the current conversation's workspace — no need to pass a path manually.

dsh plugin --profile web add @jieai/dsh-malong-bridge
pkill -f "dsh web"
dsh web --port 3456 --host 0.0.0.0

Works out of the box: the bridge locates the bundled server/mcp-server.js (complete toolset backend; the only native dependency, better-sqlite3, ships cross-platform precompiled binaries), so no extra deployment is needed.

> pnpm 10 warns Ignored build scripts: better-sqlite3: that is pnpm's > default security policy (blocks dependency postinstall scripts). Run > pnpm approve-builds and check better-sqlite3 in the list (or edit > ~/.dsh/profiles/web/pnpm-workspace.yaml and add better-sqlite3 under > onlyBuiltDependencies, then pnpm rebuild better-sqlite3). > Without this, better-sqlite3 has no native binary and tool calls will fail. > > Native build fallback: better-sqlite3 ships prebuilt binaries for common > platforms (Node 20+); if your platform lacks a prebuilt and you have no build > toolchain (Windows: Visual Studio Build Tools for node-gyp), the server > automatically falls back to the vendored sql.js WASM backend > (malong/vendor/, zero native deps) — the startup log shows which backend is > active. Both backends use SQLite with compatible data files.

Uninstall

dsh plugin --profile web remove @jieai/dsh-malong-bridge
pkill -f "dsh web"
dsh web --port 3456 --host 0.0.0.0

Configuration (optional, zero-config by default)

Env varDefaultDescription
MALONG_SERVER_PATHbundled server/mcp-server.jsOverride the mcp-server entry (e.g. point at your own LiuHe dev copy)
MALONG_STATE_DIR~/.local/state/malong-dshIndex/state storage dir (all workspaces isolated under it by hash)
MALONG_TOOL_TIMEOUT_MS300000Per tool call timeout

You can also write a config: override on the malong-dsh-bridge entry in the profile's cordis.patch.yml (user layer, applied later).

How It Works

DSH Agent → malong__read_symbol(...) (no workspace_dir)
         → dsh-bridge injects workspace_dir = current session workspace
         → malong mcp-server (spawned subprocess) → per-path-hash isolated indexes
  • Dynamic workspace follow: every tool invocation carries the session

workspace (exec.agent.session.header.cwd); the bridge injects it automatically; explicit paths from the model are respected (cross-workspace management).

  • State isolation: indexes are hash-isolated by workspace path under

MALONG_STATE_DIR, unrelated to any project directory.

  • Zero intrusion: does not touch dsh's node_modules; dsh upgrades are safe.

> Platform support (automatic): malong-parse (the Rust parsing service) > ships as esbuild-style platform subpackages — the main package declares > @jieai/malong-parse-linux-x64 / -darwin-x64 / -darwin-arm64 / > -win32-x64 in optionalDependencies, and npm/pnpm pulls only the binary for > the current os/cpu at install time. Other platforms / custom binaries can be > provided via the MALONG_PARSE_BIN env var.

Differences vs. the official dsh-mcp-client

The official dsh-mcp-client bridges a single MCP server; this plugin's bridge adds dynamic workspace injection (fills workspace_dir per invocation from the session workspace, so the model never needs to know the path) — a capability unique to LiuHe.

Troubleshooting

| Symptom | Fix | |---|---| | Log shows mcp tools/list timeout | Verify the install is complete (dsh plugin reports no node_modules errors); restart dsh | | No malong__* tools in the conversation | Confirm the bundle layer is attached (dsh web --dump-config \| grep malong); hard-refresh the browser | | Call fails with missing_parameter: workspace_dir | The conversation has no workspace (no cwd) to inject; pass a path in the prompt | | Plugin stops working after a dsh upgrade | The plugin lives at the profile layer, upgrades do not affect it; if the cordis interface changes, reinstall the plugin |

Index Rules (Transparency)

  • Default ignored: node_modules, .git, dist, build, target,

coverage, __pycache__, .venv, .malong, .ai-transactions, vendor, etc.

  • md/json not indexed: only code files are indexed; use a read tool for documents
  • .malongignore customization: a .malongignore file at the project root

excludes directories allowlist-style (one per line; * wildcards supported; max 100 entries)

License

MIT