DSH-Slate
English | 简体中文
A workspace-isolated, evidence-backed project progress tracker in the DeepSeek Harness (DSH) right sidebar (项目进度).
Repository: https://github.com/light-cheng/DSH-Slate
One project often spans multiple DSH sessions. Instead of opening past chats one by one to figure out what is done, what broke, and what ships next, DSH-Slate maintains a persistent, workspace-scoped project board that survives session switches, browser reloads, and DSH restarts.
Features
- Workspace-isolated persistent state: stores each project by canonicalized (
realpath) workspace path under${DSH_HOME}/storages/dsh-slate/projects/, guarded by an in-process queue,O_EXCLcross-process file lock, stale-lock eviction, atomic temp+rename writes, and filesystem watchers. Concurrent Web and Headless sessions write without losing updates. - Automatic progress sync (
systemPrompt.section): conditionally injects a compact workspace snapshot (dsh-slate:project-progress) listing activetaskIds, project acceptance criteria, locked goal flags, pendingtodochecks, and open issues wheneverproject_progress_reportis available. Models update progress proactively after substantive edits/tests, skip read-only Q&A turns, and avoid overwriting project-level acceptance criteria on subtask reports. - Completion is not acceptance (
FR-05evidence verification):project_progress_reportresolves authoritativesessionIdandcwddirectly from DSH'sexec.agentcontext (no spoofablesessionIdargument). When an agent reports a check aspassed, the host cross-checks actualtool/callandtool/resultshell executions (exitCode === 0, covering built-inbash/pwsh/shellas well asdsh-opsops_bashwith normalized Windows path/quote matching): unexecuted claims downgrade totodo, failures/aborts/policy refusals record asfailed, long outputs spill safely tooutputs/<hash>/chk-<hash>.txt(64 KiBcap), same-session TDD red-to-green renames reuse the active unverified task, and cross-session real executions clear staletodoplaceholders and supersededfailedchecks on the same task. - Zero-token bootstrap hints & bounded Quick Init: empty workspaces display read-only Git facts (
branch,latestTag, uncommitted file count, latest commit) and an expandable vertical list of real sidebar sessions (filtering archived, blank, deleted, and subagent sessions) at 0 model tokens, plus a one-click 快速初始化 button (typertGateway) that reads at most 1–2 root overview files to bootstrap a concise 1-sentence goal andtodobaseline checks in seconds. - Manual overrides, task deletion & instant restore: project goal, acceptance criteria, task priority, per-task progress estimate, and next deliverable can all be edited in-place inside a neutral grayscale editor. Locked fields show
· 手动调整, resist subsequent session reports (while still collecting live test evidence), and can be unlocked via 恢复会话汇报. Obsolete or orphaned task cards can be removed via an inline two-step 删除任务 confirmation (preserving workspace issues). - Cross-session navigation guard & persistence: clicking any historical session, task title, or 最近通过 item checks live session availability, falls back to another surviving live session on multi-session tasks, avoids bouncing to the DSH Home screen when a session is deleted or archived (showing an inline notice plus
会话已删除/会话已归档), and keeps the Slate rightbar tab mounted across valid switches. - Native monochrome DSH UI: built on
--dsw-*semantic theme variables and DSH typography (no green, no blue in neutral controls/editors; red reserved strictly for failures/severe issues and amber for waiting/blocked states), requesting ~420pxinitial width without overriding user-dragged widths, paired with dual-theme light/dark16pxtab icons.
Interface
Opening a fresh workspace shows zero-token Git status, existing session shortcuts, and one-click Quick Init or manual goal editing:

In active projects, the sidebar stacks the concise project goal, three action counters (without fake overall project percentages), optional 优先处理 and 最近通过 cards, a vertical task axis, expandable verification checks with real commands/exit codes, and deduplicated open issues:

Dark mode switches both --dsw-* surfaces and the mineral slate 16px sidebar tab icon automatically:

Inline editing stays strictly grayscale and preserves manual adjustments across subsequent session reports until 恢复会话汇报 is clicked:

Clicking any failed or passed check reveals the actual shell command, exit code, bounded output reference, and source session link:

Clicking a task navigates directly to its real source session while keeping the project progress rightbar open:

Architecture
DSH Agent Sessions (Web / Desktop / Headless)
├─ systemPrompt.section ──► Injects active taskIds, project criteria & sync rules
└─ project_progress_report ─► Binds real exec.agent sessionId + cwd
Verifies shell tool/call + tool/result exitCode === 0
│
▼
Workspace Store (src/store.js)
realpath key · O_EXCL cross-process lock · atomic rename
${DSH_HOME}/storages/dsh-slate/projects/<hash>.json
│
├──► Authenticated Fetch RPC (/api/dsh-slate/rpc)
└──► Authenticated SSE Feed (/api/dsh-slate/events)
│
▼
Right Sidebar UI (src/client.js + src/styles.css)
~420px initial width · dual-theme icon · openSession nav
Installation
From npm
dsh plugin --profile desktop add @lightcheng/dsh-slate
From a local checkout (development / linking)
git clone https://github.com/light-cheng/DSH-Slate.git
cd DSH-Slate
cd plugin && npm run build && cd ..
dsh plugin --profile desktop add link:"$(pwd)/plugin"
If DSH reports restart-required, restart DeepSeek Harness so the desktop app reloads the plugin bundle and sidebar tab.
The formal publishable plugin package lives under
plugin/.prototype-plugin/is preserved strictly as a historical reference and is never loaded or published.
Security & Boundaries
- Authenticated transport only: sidebar RPC and live SSE routes register via
ctx.connection.fetchbehind DSH's/apiBrowserAuth, Host/Origin checks, andownerPeer verification (401on unauthenticated calls). - Authoritative identity & evidence:
project_progress_reportdoes not accept asessionIdparameter and refuses missingexec.agentcontext; shell evidence verification matches actual commands executed inside the reporting session. - No external network calls: zero telemetry, zero remote fonts or CDN assets, and zero background LLM polling (only read-only local Git
execFilewithout shell interpolation plus explicit user clicks).
Development & Verification
cd plugin
npm run verify # Build client bundle, verify icons/colors, run 18 unit & concurrency tests
npm pack --dry-run # Inspect publishable tarball contents
Full isolated real-DSH end-to-end verification (spawns throwaway DSH_HOME, profiles, and temp repos while asserting ~/.dsh/profiles/{desktop,web} checksums remain unchanged):
node plugin/scripts/e2e-dsh.mjs # Full AC-01..AC-08 acceptance suite
node plugin/scripts/e2e-autoflow.mjs # Proactive auto-report & Quick Init suite
See SPEC.md, TESTING.md, RELEASE.md, and MARKETPLACE.md for detailed specifications and release workflow docs.
No comments yet. Be the first to write one.