dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
Every change to your agent's instructions is recorded with a diff, and any change can be undone.
dsh plugin --profile web add dsh-prompt-vcs
Or from source:
dsh plugin --profile web add github:hj01857655/dsh-prompt-vcs
AGENTS.md, CLAUDE.md, skill files — any file
that shapes how the agent behaves..promptvcs/history.jsonl (append-only).promptvcs log shows every change: when, what file, who changed it,
how many lines were added or removed.promptvcs diff <hash> shows the unified diff for a specific change —
additions, deletions, and context lines.promptvcs rollback <hash> restores a file to its state before a change.
The rollback itself is recorded as a new change, so the timeline stays complete.dsh-prompt-vcs log # show change history
dsh-prompt-vcs diff <hash> # show diff for a change
dsh-prompt-vcs rollback <hash> # undo a change
A Prompt VCS page inside Settings. The host registers GET /api/prompt-vcs.panel and
rebuilds the payload from the history log on every request. A headless host simply skips
the route.
The panel shows:
| Path | Role |
|---|---|
src/index.ts | Host half — apply(ctx), exposes the promptVcs service |
src/vcs.ts | Core VCS logic — record, timeline, rollback, file stats |
src/diff.ts | Unified diff algorithm |
src/store.ts | Append-only .promptvcs/history.jsonl |
src/cli.ts / src/bin.ts | Command-line entry, usable without dsh |
src/routes.ts | Panel and rollback routes on the host's web connection |
src/client/view.tsx | Browser half — pure rendering |
src/client/index.tsx | Browser half — fetch and settings registration |
src/client/locales.ts | zh / en dictionaries |
npm ci
npm run typecheck
npm run build
npm test
MIT