DeepSeek Harness plugin

dsh-windows-workspace-guard

Windows workspace, immutable-path, Git-risk, approval, and audit guard for DeepSeek Harness.

Jump to install

Source facts

Repository
julescules/dsh-windows-workspace-guard
Latest update
Aug 22, 2026
Category
Security & Permissions
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/julescules/dsh-windows-workspace-guard
Plugin: dsh-windows-workspace-guard
Author: julescules

Check the source files

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

File explorer4 files
README.mdSource · read only
README language

dsh-windows-workspace-guard

中文 | English

> [!IMPORTANT] > Unofficial community plugin. Independently developed and maintained; not reviewed or endorsed by DeepSeek.

Safety policy for DeepSeek Harness on Windows. It checks model-issued PowerShell calls before execution and protects workspaces, original files, persistent shell state, Windows system state, processes, and Git recovery paths.

![Policy decisions: allow, ask, and hard block](docs/demo.svg)

What it does

  • keeps destructive PowerShell targets inside trusted workspace roots;
  • makes original/, signing files, or any configured path immutable;
  • reviews risky Git commands such as reset --hard, clean -fdx, worktree restore, stash deletion, and force push;
  • hard-blocks registry, WMI/CIM, service, scheduled-task, ACL/ownership, junction/symlink/hardlink, NTFS alternate streams, and nested-shell mutations;
  • validates Out-File, Tee-Object, export cmdlets, and >/>> output targets against trusted workspace roots;
  • blocks native shell/script-host escapes and download-to-file bypasses by default;
  • reviews process termination and supports configurable guarded tool names;
  • protects the persistent pwsh session added in DSH v0.1.0-rc.8: relative mutation targets, command shadowing, dot-sourcing, detached work, remote execution, module state, environment state, and current-directory changes;
  • supports block, one-time ask, and audit-only report modes;
  • adds a live settings card to the official DSH plugin settings page (DSH v0.1.0-rc.7 or newer);
  • writes optional append-only JSONL audit records with redacted previews and command hashes;
  • permanently blocks disk operations, broad roots, encoded execution, System.IO bypasses, and protected paths.

Install

dsh plugin --profile web add github:julescules/dsh-windows-workspace-guard#v0.5.0
dsh --profile web --dump-config

Restart DSH after installation.

Recommended config

- id: windows-workspace-guard
  name: dsh-windows-workspace-guard
  config:
    mode: ask
    workspaceRoots:
      - 'D:\projects\current-project'
    protectedPaths:
      - 'D:\projects\current-project\original'
    guardGit: true
    guardSystem: true
    guardProcesses: true
    guardNativeEscapes: true
    guardPersistentShell: true
    requireAbsoluteMutationPaths: true
    auditPath: 'D:\projects\current-project\operation_logs\dsh-guard.audit.jsonl'

On DSH v0.1.0-rc.7 or newer, the same fields can be changed from Settings → Plugins → Windows Workspace Guard and apply immediately without restarting the plugin. This release is validated against DSH v0.1.1-rc.2 while retaining the persistent PowerShell contract introduced in rc.8.

requireAbsoluteMutationPaths is enabled by default. Read-only commands may still use relative paths, but file deletion, move, copy, rename, and overwrite operations must use drive-qualified or UNC paths. This prevents an earlier persistent Set-Location call from changing the meaning of a later command.

Resultblockaskreport
Safeallowallowallow
Needs reviewdenyask onceallow + audit
Hard blockdenydenydeny

Hard blocks cannot be bypassed by allowExact or report mode.

Check without running

The plugin registers windows_workspace_guard_check. The agent can inspect a command and receive stable PASS, REVIEW, or FAIL JSON without executing it.

Verified

  • 38/38 unit, browser-contract, and adversarial tests pass;
  • official dsh.bundle.patch package shape;
  • official keyed settings.plugin.item card and settingsScope live-config contract;
  • official tools/pre-execute allow/deny/ask contract;
  • real @deepseek-ai/dsh@0.1.1-rc.2 profile install, config composition, Web Host boot-graph discovery, and served client bundle;
  • package contains no install-time build step;
  • UTF-8 append-only audit with common secret redaction.
npm run check
npm pack --dry-run

Limits

  • Static inspection is not a complete PowerShell parser or OS sandbox.
  • pwsh is intercepted by default; add other PowerShell tool names in toolNames.
  • Existing junction/symlink targets are not resolved against the live filesystem; creation is hard-blocked.
  • The plugin cannot introspect the live PTY current directory, so absolute mutation paths are the default safety boundary.
  • DeepSeek Harness is in developer preview; pin a reviewed release or commit.

License

[MIT](LICENSE)