dsh-multi-root
Run the following command in DeepSeek Harness:
dsh plugin install luoyu-xingu/dsh-multi-root
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install luoyu-xingu/dsh-multi-root in the terminal, then restart dsh web to see the Roots entry in the sidebar; source code is available at https://github.com/luoyu-xingu/dsh-multi-root .
About this plugin
DSH's web GUI was built around a single working directory. When your source code, configs, and documentation live in several independent folders, every operation means manually switching context. dsh-multi-root brings a VS Code-style multi-root workspace to DSH: attach any number of folders from a sidebar panel, and all roots are equal, shared across every session and agent, hot-pluggable via a cordis bundle with zero DSH source changes.
The real payoff shows up on the agent side. The plugin registers five workspace tools into DSH's tool pipeline: list the root set, list a directory, read a file (256 KB cap with truncation reported), write a file (auto-creates parent directories, 5 MB cap), and glob-match (1,000 result cap). An agent calls workspace_roots to discover every attached root, then uses the remaining tools to operate inside any of them without the user needing to spell out paths. On the GUI side, a path input and a native directory browser (starting at the drive level on Windows, the home directory on Linux and macOS) make attaching folders straightforward, with a live status indicator on each row showing whether the directory is available or missing.
Security is enforced at every operation: paths are joined root-relative, canonicalized with fs.realpath, and verified to stay inside the registered root. Path traversal, absolute paths, drive letters, and symlinked escapes are rejected on both read and write; globbing never follows symlinks; all API routes are loopback-only. The trust boundary is simply the set of roots the user attached in the GUI, and agents can never add or remove roots themselves. If you find yourself juggling multiple independent directories in DSH — source in one repo, configs in another, docs in a shared folder — dsh-multi-root is built for exactly that workflow.
Use Cases
- Source, config, and docs live in separate folders and the agent needs to operate across all of them
- Maintaining several independent project directories without repeatedly switching the working directory
- Letting the agent auto-discover, read, write, and glob across a set of related but independent folders
Best For
- DSH users who need to work across multiple independent directories
- Developers accustomed to the VS Code multi-root workspace experience
- Engineers who want agents to batch file operations across several project folders
Related Plugins
A service-oriented sidebar framework for DSH, offering a full workbench with file explorer, embedded browser, real terminal, Git panel, and extensible plugin services.
A beautiful, practical Claude Code-style TUI plugin with pixel whale top bar, flowing glow title, real-time status line, streaming thought expansion, time rewind, context progress bar and TPS gauge — zero core changes.
The plugin market for DeepSeek Harness: browse/search/one-click install community plugins and themes, with updates, backup/restore, hot disable, diagnostics, and AI fix.
A persistent whale widget on the DSH web UI that shows DeepSeek balance, today's usage, and per-turn cost, with drag-and-snap and sound effects.