技能包

dsh-rewind

jiangr100/dsh-rewind · ★ 0

jiangr100

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

README 正文来自英文版本。

许可证
MIT
收录
2026-08-16
维护状态
active
安装方式
github
查看 manifest 检查详情
manifest 状态
已声明
manifest 路径
package.json#dsh
manifest 检查
2026-08-19
生命周期脚本
未发现

manifest 静态检查只记录声明与安装脚本,不代表兼容性或安全审查。

安装

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

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

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

项目说明

原始 README · 正文语言:英文 · 阅读英文 README

目录
  1. What it does
  2. Requirements
  3. Installation
  4. Recommended (plugin bundle — no manual edits)
  5. Manual
  6. Verify
  7. Uninstall
  8. License

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