julescules / dsh-windows-workspace-guard

목록에 있음

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

main기타 소스 보기

설치

npx -y @deepseek-ai/dsh plugin --profile web add github:julescules/dsh-windows-workspace-guard

이 설치 명령은 GitHub 저장소 주소에서 생성된 확인되지 않은 시작점입니다.

README

유지 관리자가 작성한 문서 스냅샷입니다.

GitHub에서 보기 ↗
커밋 217173c동기화 2026. 8. 18.

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, Windows system state, processes, and Git recovery paths.

Policy decisions: allow, ask, and hard block

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, service, scheduled-task, ACL/ownership, junction/symlink, and nested-shell mutations;
  • reviews process termination and supports configurable guarded tool names;
  • 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.3.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
    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.

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

  • 28/28 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;
  • 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.
  • DeepSeek Harness is in developer preview; pin a reviewed release or commit.

License

MIT

프로젝트 파일 및 신호

표시된 항목은 디렉터리 스냅샷에서 감지된 공개 저장소 신호입니다.

테스트감지됨
문서감지됨

저장소 정보

언어
JavaScript
라이선스
MIT
최신 릴리스
v0.3.0
마지막 업데이트
2026. 8. 18. 오전 3:38

신중하게 설치하기

소스 코드, 권한, 수명 주기 스크립트, 의존성 및 네트워크 접근을 검토하고 신뢰하지 않는 플러그인은 격리 환경에서 테스트하세요.