mirage
strukto-ai
The World's First Unified Virtual Filesystem For AI Agents
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:julescules/dsh-windows-workspace-guard
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
中文 | 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.
original/, signing files, or any configured path immutable;reset --hard, clean -fdx, worktree restore, stash deletion, and force push;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;block, one-time ask, and audit-only report modes;v0.1.0-rc.7 or newer);System.IO bypasses, and protected paths.dsh plugin --profile web add github:julescules/dsh-windows-workspace-guard#v0.4.0
dsh --profile web --dump-config
Restart DSH after installation.
- 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
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. DSH v0.1.0-rc.8 or newer is recommended for the persistent Windows PowerShell integration.
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.
| Result | block |
ask |
report |
|---|---|---|---|
| Safe | allow | allow | allow |
| Needs review | deny | ask once | allow + audit |
| Hard block | deny | deny | deny |
Hard blocks cannot be bypassed by allowExact or report mode.
The plugin registers windows_workspace_guard_check. The agent can inspect a command and receive stable PASS, REVIEW, or FAIL JSON without executing it.
dsh.bundle.patch package shape;settings.plugin.item card and settingsScope live-config contract;tools/pre-execute allow/deny/ask contract;@deepseek-ai/dsh@0.1.0-rc.8 profile install, config composition, Web Host boot-graph discovery, and served client bundle;npm run check
npm pack --dry-run
pwsh is intercepted by default; add other PowerShell tool names in toolNames.CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: audit-log、security。