dsh-rewind

by jiangr100

0 技能包github 检测到 manifest package.json#dsh收录于 08-16

克劳德代码复制品 /rewind 技能

Replica of the Claude Code /rewind skill

安装

dsh plugin --profile web add github:jiangr100/dsh-rewind

GitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试

安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗

安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。

README

目录

A /rewind plugin for DeepSeek Harness (dsh): rewind a conversation to any earlier message and continue from a clean forked session — all later context is trimmed away, reducing context pollution. The original conversation is archived (restorable from the sidebar); nothing is deleted.

What it does

  • /rewind opens a picker window above the composer (type it, or pick the rewind skill from the / menu).
  • The window opens at the most recent message — scroll up through the conversation, then click a line to rewind to that message.
  • Each line shows a preview, its position number, and how many later entries a rewind would drop. Messages in the still-open turn are dimmed and not selectable.
  • Rewinding forks a new session at that message's completed turn, switches to it automatically, and archives the original conversation (restorable from the sidebar). The rewound session appears in the sidebar, titled like a fork (e.g. Session (2)).
  • Close the window with Esc, ✕, or by clicking outside. /rewind <anything> is ignored — the window is the only usage.
  • A rewind skill is registered, so the model recognizes rewind requests and points you to /rewind.

Requirements

  • A DeepSeek Harness deployment (web profile layout, $DSH_HOME/profiles/<name>).
  • pnpm on PATH (the dsh plugin command forwards to it).

Installation

dsh plugin --profile web add github:jiangr100/dsh-rewind

Then restart the harness. dsh plugin installs the package into the profile and, because it declares dsh.bundle, mounts the plugin row automatically on the next boot.

Manual

# 1. Install into the profile
cd "$DSH_HOME/profiles/web"          # or your profile directory
pnpm add github:jiangr100/dsh-rewind

# 2. Add the row to the profile's patch layer
#    ($DSH_HOME/profiles/web/cordis.patch.yml):
- insert:
    - id: dsh-rewind
      name: dsh-rewind

# 3. Restart the harness

Verify

Type /rewind in a conversation and press Enter — the picker opens at the most recent message; scroll up, click a line, and the GUI switches to the rewound session.

Uninstall

dsh plugin --profile web remove dsh-rewind

Then restart the harness. (With a manual install, remove the row from cordis.patch.yml and run pnpm remove dsh-rewind in the profile directory.)

License

MIT

原始 README: https://github.com/jiangr100/dsh-rewind/blob/main/README.md ↗