Introduction¶
When having agents modify code or run commands in DSH, the common approach is to open sandboxes directly in the main session or rely on prompt-based constraints. The main session’s message stream and model context carry the entire task process; if results need to be written back to the main session, they are often auto-injected. For scenarios requiring the “main session to remain clean, with both results and file exports requiring human approval,” these default behaviors are not sufficiently reliable.
Below is an introduction to the community plugin dsh-isolation-pod (maintainer Teow9, category admin-security): it launches sandbox-constrained isolated tasks outside the DSH main session, leaving the main session completely untouched by default; returning results and exporting files both require manual confirmation.
What This Is¶
Isolation Pod is a Cordis plugin for DeepSeek Harness (DSH), currently at version v0.2.0 (MIT license). It consists of a Rust sidecar isolation-pod-core, a thin JS Host shell, and the official session UI client; tasks execute in independent regular root sessions without writing messages to the main session or entering the main session’s model context.
Plugin attribution and source code: GitHub - Teow9/dsh-isolation-pod; community directory page: skillhub.cn/plugins/Teow9/dsh-isolation-pod. The directory site is a community ecosystem index with no official affiliation with DeepSeek / 幻方 (High-Flyer).
Core Features¶
Zero Automatic Traces in the Main Session¶
Task sessions are separated from the main session. The only path to bring content back to the main session is the manually confirmed “Return to Main Session” action in the task action bar; upon confirmation, only a single user message is injected (with a character limit). Export and return do not trigger each other.
Official Session UI, No Custom Transcription¶
When opening a task, the DSH official session panel is entered via uiWorkspace.openSession; the message stream, tool cards, thinking process, and input box are all rendered by the official UI; the isolation pod only saves state summaries, audit records, and export records.
Sandbox Enforced by DSH¶
The task session’s working directory is the sandbox root, with sandbox/mode=workspace-write; writes outside the sandbox are hard-rejected by the DSH file sandbox. There is also a boundary-write probe before the first model turn. The tool whitelist is enforced by tools.guard; missing presets do not clear the whitelist.
Rust Sidecar Handles Persistence and Security Details¶
Configuration, task state machines, FIFO queues, per-turn timeouts, leases, file manifests and previews, export/revoke, audit and diagnostics are handled in the sidecar; the Host handles DSH integration. Export supports copy/move, conflict policies, BLAKE3 hashes, and backup before overwriting; each export is confirmed individually. Cross-platform file and export logic does not depend on PowerShell.
Queue, Recovery, and Diagnostics¶
Tasks exceeding concurrency limits can be queued; after a host restart, interrupted tasks can be marked as interrupted, with support for reopening/resuming task sessions. Observability features include /status, diagnostic pages, core restart, and stderr ring logs.
Environment Requirements¶
- DSH 0.2.1+ (desktop version or
dsh web; README documents verification on desktop 0.2.1-rc.2; 0.1.7 is not supported, v0.1.3 is the last version of 0.1.x). - A profile with Web UI (CLI/TUI profiles without
webServerwill not activate the plugin). - Rust sidecar: Windows x64 binaries are included in the repository; Linux x64 / macOS can obtain binaries from Release or build from source (Rust stable ≥ 1.85). Optional environment variable
ISOLATION_POD_CORE_BINto point to a custom sidecar path.
Installation and Activation¶
Installation via the DSH sidebar bundle is recommended; command forms should follow the README (do not construct dsh plugin add github:... based on the plugin name).
- Open DSH sidebar → “Plugins”;
- “Add Plugin” → “Install Third-party Plugin” (supports npm packages, Git repositories, local directories);
- Select the absolute path of this repository or the Release extracted directory, then install;
- Confirm the
dsh-isolation-podbundle is selected and the plugin row is enabled; - If prompted “Please restart DSH for changes to take effect,” restart once (after Host half-update, Node caches old modules, so restart is required).
After installation, status can be checked via HTTP (replace <port> with the current Web port):
curl.exe -s http://127.0.0.1:<port>/isolation-pod/status
You should see fields like pluginVersion: "0.2.0", coreStatus: "ready", and the “隔离舱” (Isolation Pod) entry should appear in the sidebar.
For development or rollback, you can also append a patch line pointing to lib/index.js at the end of the profile’s cordis.patch.yml; do not enable it simultaneously with the bundle to avoid duplicate Client entries and configuration confusion.
Security Note: The plugin runs with the current DSH process privileges; please read the source code and MIT license before installation and evaluate whether it suits your environment.
Typical Usage¶
Configure first, then create a task, and finally observe and finalize in the official session.
- Configure sandbox root directory: Panel “Configuration” → fill in an absolute path outside the workspace (e.g.,
E:\pod-work) or “Select Directory” → save. - Create new task: “New” → task description (optional sandbox subdirectory) → select main session → “Start Isolated Task”.
- View execution: The official session opens automatically; you can also click “Open Session” in the task list.
- Continue conversation: Send in the official input box; sandbox, approval, guard, and system prompt sections remain unchanged.
- Stop: Use the task action bar or official input box stop button; status becomes “Cancelled”.
- Return to main session (optional): Task action bar “Return” → edit preview → “Confirm Return to Main Session”; the main session must be live, otherwise returns
MAIN_SESSION_NOT_LIVE. - Export (optional): “Export” → check files, specify target directory outside sandbox, choose copy/move and conflict policy → confirm again.
- Cleanup: Can delete only sandbox files, or clean up records and files; the sandbox root directory itself is protected.
For a more complete step-by-step walkthrough, see 使用教程.md (Usage Tutorial) in the repository.
Use Cases and Notes¶
Suitable for: Running high-risk or lengthy tasks outside the main session without auto-polluting the main session message stream; needing to export to directories outside the sandbox with manual confirmation for each exit; operational usage requiring queueing, per-turn timeout billing, and task session recovery after restart.
Notes:
- Task sessions are regular root sessions and may appear in DSH session search/history, but will not appear in the workspace sidebar list.
timeoutMsis the per-turn timeout (default 10 minutes), not the total task duration.- Export limits: 5000 files / 2 GiB total / 1 GiB per file; revoke is only for copy mode and is safer in hash-verification scenarios; for older versions without hash records, revoke behavior is more aggressive, and the README requires backing up first.
- Platform: Windows x64 has been verified natively; Linux / macOS are built by CI, and the README notes that native panel acceptance testing has not been performed.
Conclusion¶
dsh-isolation-pod clearly separates “isolated execution” and “main session invisibility”: sandbox and tool guard are delegated to DSH, state and export are handled by the Rust sidecar, and interaction lands in the official session UI. If you are extending admin-security capabilities in the DSH ecosystem, you can obtain v0.2.0 and accompanying documentation from the directory page or GitHub (architecture, protocol, migration notes are under docs/).
- Directory page: https://www.skillhub.cn/plugins/Teow9/dsh-isolation-pod
- Source code: https://github.com/Teow9/dsh-isolation-pod