DeepSHPlugins
dsh-msg-rewind 專案預覽
GITHUB / COMMUNITY PROJECT

dsh-msg-rewind

會話與訊息JavaScript

對話回退:/undo 回退一輪,/rewind 回退到歷史訊息,懸浮使用者氣泡可視覺化撤回。

3 Starsflow2dream 更新時間 2026-08-20
訪問 GitHub 倉庫
dsh-msg-rewind 專案預覽
dsh-msg-rewind 介面截圖dsh-msg-rewind 介面截圖dsh-msg-rewind 介面截圖dsh-msg-rewind 介面截圖

專案介紹

中文

對話回退:/undo 回退一輪,/rewind 回退到歷史訊息,懸浮使用者氣泡可視覺化撤回。

English

Conversation rewind for dsh web: /undo rolls back one turn, /rewind cuts to a past message, and hovering a user bubble offers a visual undo.

專案資訊與收錄訊號

快照 2026-09-11
作者 / 組織
flow2dream
倉庫
flow2dream/dsh-msg-rewind
GitHub Stars
3
Forks
0
開發語言
JavaScript
許可證
未記錄
最近推送
2026-08-20
Manifest
資料中檢測到宣告

公開倉庫不自動等於可商用;許可證與當前相容性以原專案文件為準。Manifest 和資料評分不構成安裝安全認證。

資料評分

59/ 100
維護活躍
85
文件與實用資訊
100
生態關注度
17
安裝便捷訊號
100
專案宣告訊號
80

近 22 天仍在更新;README 含完整安裝與使用說明;關注度尚低(3)。

評分來自已有資料快照的五維模型,僅作瀏覽參考,不是實際使用評測或安全檢測結論。

安裝與使用

所有專案資料與許可均以對應 GitHub 倉庫為準。

dsh plugin --profile web add github:flow2dream/dsh-msg-rewind

複製命令不會自動執行。請先閱讀倉庫文件,確認環境要求與許可證。

專案截圖

倉庫 README

GitHub 原文

已儲存的倉庫文件快照;文件抓取時間未記錄,可能與上方目錄介紹處於不同版本。安裝前請核對當前倉庫說明。

儲存庫檔案保留原文,指令與授權文字不作自動改寫。

dsh-msg-rewind

English | 中文

Conversation rewind commands for DeepSeek Harness web.

  • /undo — roll the chat back one full turn (drop the last real user message and everything after it)
  • /rewind — pick a past user message from a dialog and cut the conversation back to it
  • Visual rewind — hover a user message bubble in the chat and click the ⤺ undo button to rewind to that point

Both the model context and the visible transcript are truncated, and the durable JSONL artifact is rewritten so the cut survives a restart.

Screenshots

rewind

rewind dialog

rewind logo

undo

*Real screenshots from dsh web.*

Features

CapabilityDetail
/undoReverts the previous turn: deletes the last real user message and all events after it
/rewind (bare)Opens a dialog listing every user message (chronological, most recent preselected); pick one to rewind there
/rewind <seq>Directly rewinds to the given message seq
Visual rewindHover any user bubble → click the undo icon (shown with time + copy) to rewind to that message
DurableRewrites the session's JSONL+zstd artifact; the cut survives a restart
Clean UINo "command completed" noise cards after a rewind

Requirements

  • DeepSeek Harness web (dsh web)
  • Node ^22.19.0 || >=24.0.0

Install

Via npm (recommended)

dsh plugin --profile web add @flow2dream/[email protected]

Then restart the web profile:

dsh web

Via GitHub

dsh plugin --profile web add dsh-msg-rewind@github:flow2dream/dsh-msg-rewind

Then restart the web profile:

dsh web

Manual

Add the dependency and bundle to your web profile:

// ~/.dsh/profiles/web/package.json
{
  "dependencies": {
    "@flow2dream/dsh-msg-rewind": "0.1.2"
  },
  "dsh": {
    "profile": {
      "bundles": ["@flow2dream/dsh-msg-rewind"]
    }
  }
}

Then install and restart the web profile:

cd ~/.dsh/profiles/web
pnpm install
dsh web

Usage

In any conversation:

  • Type /undo — the chat rolls back one turn.
  • Type /rewind — a dialog opens with every user message; the most recent one is preselected. Arrow keys navigate, Enter rewinds.
  • Hover a user message bubble — a small undo icon appears next to the copy button; click it to rewind to that message.

The rewind target is the real user message (system injections such as runtime-context and skill-catalog snapshots are never treated as user turns).

How it works

  • Host (lib/index.js) registers the /undo and /rewind commands. A rewind drains the persistence coordinator, splices the live session log, resets every derived cache, rewrites the JSONL artifact, resets the agent's request-header anchor, and broadcasts session/rewind.
  • Browser (lib/client.js) listens for session/rewind, resyncs the target session's window from the host, and injects the hover undo button into user bubbles.
  • The session/rewind event is allowlisted in dsh-api-remotes's forwarded events.

Development

# from your web profile
npm install /path/to/dsh-msg-rewind

Source lives in lib/:

  • lib/index.js — host half (commands + truncation)
  • lib/client.js — browser half (resync + visual rewind)

License

MIT

使用前核對

安裝步驟、相容版本與授權範圍以原專案當前文件為準。Stars 和評分是快照中的導航訊號。

安裝與排錯 · 專案問題反饋

同類專案