返回目录
模型与 MCP 插件

dsh-project-sources

yanguohong1/dsh-project-sources

Codex-style project sources for DeepSeek Harness: attach extra folders to one workspace, alias them, and share read/write/exec permissions

Stars
0
Forks
0
Issues
0
更新
19 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:yanguohong1/dsh-project-sources

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

dsh-project-sources

npm version License: MIT

中文 | English

Codex-style project sources for DeepSeek Harness: one workspace, many folders, each with an alias the agent can use.

A DeepSeek Harness plugin bundle that attaches extra folders to a workspace. The session keeps the workspace as its cwd; every attached folder gets the same read / write / edit / command permissions under the session's current sandbox mode, and each one carries a short alias the model can refer to.

  • Project editor — “编辑项目” dialog from the session header, or the “📁 项目源文件夹” pill on the session-creation page. Add folders, rename aliases, remove them.
  • Aliases in the conversation — one system-prompt section maps every alias to its absolute path, so @web/src/a.ts is unambiguous to the model.
  • @ menu coverage — the shipped @ provider is single-root; this plugin contributes a companion group that searches every source (by alias, by folder name, or by absolute path).
  • Source-folder skills — / finds skills under <source>/.dsh/skills, <source>/.agents/skills and <source>/skills, recursively.
  • No new tools — read/glob/grep already work anywhere; write/edit/pwsh/bash are intercepted and re-rooted at the matching source.

Requirements

  • DeepSeek Harness 0.2.1-rc.5 … 0.2.x (engines.dsh: ^0.2.1-rc.5)
  • Node.js ≥ 20

Install

From the Web UI: Settings → Plugins → Add, then paste dsh-project-sources.

From the CLI:

dsh plugin --profile <profile> add dsh-project-sources@0.1.0

Or from a local checkout (the agent tool plugin_manager accepts a directory):

plugin_manager install_bundle   target: D:\work\dsh-project-sources

Restart the Host after a source change (the Host module is imported at boot); the browser bundle reloads on a page refresh.

Usage

Action Where
Edit the project “项目” button in the session header
Edit before the first message “📁 项目源文件夹” above the composer on the session-creation page
Add a folder Click “添加文件夹” → the OS folder chooser opens
Rename Type in the alias field of a row
Remove × on the row (the workspace itself cannot be removed)

Aliases must be letters/digits/./_/-, at most 48 characters; duplicates get a -2 suffix.

Where it stores data

<DSH_HOME>/storages/project-sources/<workspace-key>.json — one record per workspace, outside every agent sandbox root. Only user-driven flows write it; the agent cannot add folders to itself.

Platforms

Windows macOS Linux
Folder chooser powershell -STA + FolderBrowserDialog osascript … choose folder falls back to the Host picker, then the manual path field

The sandbox re-rooting, @ menu and skill discovery are platform-neutral. macOS support is implemented but not yet tested on a Mac.

Limitations

  • One writable root per command. A shell run writes inside only the directory its workdir resolves to. Pass an absolute workdir inside the source; a relative one resolves against the workspace, and git -C <source> / cd <source> inside the command does not widen the root.
  • The session cwd is fixed: there is no “primary folder” concept, and the workspace root stays the default working directory.
  • Cannot run beside another plugin that intercepts the same tool pipeline (e.g. dsh-multi-folder).
  • Background shell runs are supported through the jobs runtime, but a denial that happens after the call returns is only visible in job_output.

Development

No build step. npm test runs both suites without the DSH runtime:

node test/smoke.mjs   # config store, interception, prompt, remote API
node test/skills.mjs  # source-folder skill discovery

Release workflow (version bump, npm publish with passkey, rollback, pitfalls) is documented in docs/RELEASING.md (Chinese).

Acknowledgements

The tool-interception and sandbox re-rooting approach follows dsh-multi-folder by Yutong Zou (MIT). See NOTICE.

License

MIT

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类模型与 MCP
规则置信度中

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。