luoyuejun9 / dsh-workstate

목록에 있음

Structured work-state checkpoints and safe agent handoffs for DeepSeek Harness

main기타 소스 보기

설치

npx -y @deepseek-ai/dsh plugin --profile web add github:luoyuejun9/dsh-workstate

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

README

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

GitHub에서 보기 ↗
커밋 0b1b147동기화 2026. 8. 18.

dsh-workstate

A structured work-state protocol for handing off AI coding tasks between agents.

dsh-workstate is a local-first plugin for DeepSeek Harness. It captures what an agent is doing now: task state, progress, decisions, failures, verification, changed paths, next actions, and a Git integrity fingerprint. It is not a conversation dump.

中文文档

Why

Normal handoffs preserve prose. Workstate preserves a machine-readable state packet and checks that the workspace still matches before another agent resumes it.

  • checkpoint: pause and preserve current work.
  • transfer: create a shareable export for another agent or developer.
  • resume: validate and inject an existing packet; never changes Git state.
  • diff: compare two checkpoints by stable work-item IDs.

Install

Requires Node.js 22.19+ and DeepSeek Harness 0.1.0-rc.6.

dsh plugin --profile web add dsh-workstate

Add this insert to ~/.dsh/profiles/web/cordis.patch.yml, preserving existing rows:

- insert:
    - id: workstate
      name: dsh-workstate

Restart DSH. For a temporary source checkout, point an equivalent patch at the locally installed package.

Commands

/workstate checkpoint [note]
/workstate transfer [target]
/workstate list
/workstate inspect [id]
/workstate diff <from> <to>
/workstate validate [id]
/workstate resume [id]
/workstate resume [id] --allow-diverged

The model also receives workstate_capture, workstate_list, workstate_read, workstate_diff, workstate_validate, and workstate_resume tools.

Storage and safety

Packets use dsh.workstate/v1alpha1 and live under .dsh/workstate/. Checkpoint history is local and gitignored. Only transfer exports are intentionally trackable. Packets contain paths and hashes, never file contents or diffs. Known credential patterns are rejected before persistence.

Resume validation compares Git branch, commit, dirty state and a content fingerprint. Divergence fails closed. The plugin never checks out, resets, stashes, stages, commits, or pushes.

Development

npm install
npm run check

License

MIT

프로젝트 파일 및 신호

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

테스트감지됨

저장소 정보

언어
TypeScript
라이선스
MIT
최신 릴리스
v0.1.0
마지막 업데이트
2026. 8. 16. 오전 9:31

신중하게 설치하기

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