설치
pnpm dsh plugin --profile web add "$PLUGIN_DIR"이 명령은 GitHub 저장소 주소에서 생성됩니다. 실행 전에 업스트림 README와 소스를 검토하고 재현성이 필요하면 release 또는 commit을 고정하세요.
README
유지 관리자가 작성한 문서 스냅샷입니다.
dsh-safe-workflow
English | 简体中文
An independent DeepSeek Harness plugin for safer, evidence-backed coding workflows.
It provides one model-facing tool, safe_workflow, with these operations:
start: create a task contract;status: inspect the active contract;checkpoint: snapshot the selected workspace state;restore: restore a checkpoint;verify: run a verification command and record its output;close: close the contract.
It also installs two native policy listeners:
tools/pre-execute: checks path rules and asks for approval before mutating tools;tools/execute: creates an automatic best-effort checkpoint before mutation.
Install into a DSH source checkout
Build this project first:
npm install
npm run check
Then, from the DSH checkout, install this directory into the Web profile:
DSH_DIR=/path/to/deepseek-harness
PLUGIN_DIR=/path/to/dsh-safe-workflow
cd "$DSH_DIR"
pnpm dsh plugin --profile web add "$PLUGIN_DIR"
pnpm dsh --profile web --dump-config | grep dsh-safe-workflow
pnpm dsh web
After installation, the plugin appears in the DSH plugin list and is enabled for the Web profile:

The plugin writes state into the current session workspace under .dsh-safe-workflow/:
contract.json active task contract and verification records
audit.jsonl append-only session/tool/checkpoint evidence
checkpoints/ checkpoint manifests and copied files
Example workflow
Start a safe workflow titled "Fix parser regression".
Goal: fix the parser regression without changing public APIs.
Acceptance checks: run npm test and npm run typecheck.
Only allow changes under src/ and test/.
Require approval before bash, write, edit, or str_replace_editor.
Then ask the agent to use safe_workflow verify after the implementation and safe_workflow close only when the acceptance checks pass.
When a mutating tool is about to run, the approval gate explains the requested operation and lets you approve or keep the contract unchanged:

Important limitations
This is a workflow guard, not a process sandbox. A plugin runs in the host process and has the host's permissions. The first version provides policy, evidence, and best-effort file snapshots; it does not promise atomic rollback of arbitrary shell side effects, network operations, databases, or files that were not included in a checkpoint.
For production use, review the source, pin the plugin version or commit, keep .dsh-safe-workflow out of sensitive repositories if needed, and run it with DSH's normal sandbox and approval layers enabled.
프로젝트 파일 및 신호
표시된 항목은 디렉터리 스냅샷에서 감지된 공개 저장소 신호입니다.
저장소 정보
- 언어
- TypeScript
- 라이선스
- MIT
- 마지막 업데이트
- 2026. 8. 16. 오후 3:57
신중하게 설치하기
소스 코드, 권한, 수명 주기 스크립트, 의존성 및 네트워크 접근을 검토하고 신뢰하지 않는 플러그인은 격리 환경에서 테스트하세요.