dsh-revise-chan: Signing, Revising Answers, and Floating Outlines in DSH

Preface

When running conversations in DeepSeek Harness (dsh), the session log is append-only and deeply frozen; assistant/message cannot perform surface replacement on 0.2.x either. Therefore, “directly editing that reply in history” is impossible under the host contract. If you still want to manage replies as drafts — seeing billing attribution, revising a body text without losing the conversation thread, quickly jumping to a specific turn in a long conversation — you need an extra layer of capability on the Web client side.

The community plugin dsh-revise-chan (npm package name dsh-revise-chan, Chinese name 「修订酱」) is published by maintainer shellexy and categorized as a client plugin. Without modifying the host’s read-only history, it provides three things: reply attribution, forking from the question point with an appended revised draft, and a floating outline in the conversation area.

What Is This

In one sentence: dsh-revise-chan lets dsh web modify AI reply content and displays a floating outline bar in the conversation area.

The plugin targets the dsh 0.2.x session / surface / slot contract (the README states the target as 0.2.0-rc.2), is pure JavaScript with no build step, and the browser half only requires require('react').

Core Features

The following three items all come from the official README; behavior follows the host’s 0.2.x semantics.

Attribution

At the end of the time row below each assistant reply, model | provider is appended. The value is preferably taken from that turn’s turn-tail.tokenUsage.routes (the routes actually billed); when the collapsed Chat entry lacks this, it falls back to the message’s own providerMetadata.

Revision

A pencil icon is added to the right of the copy button. After opening the in-app dialog, editing the reply body, and saving, the flow does not rewrite the original event; instead:

  1. The host half revise-chan/plan locates the sequence number of the human question event for the turn the reply belongs to in the source session log (only source.kind === 'user' user/message).
  2. The browser half calls sessions.fork({ atSeq }) at the question; the child session inherits up to that question (including the title); the original reply is not included in the branch.
  3. The host half revise-chan/revise appends a complete turn to the child session: the revised body reuses the original message id, provider, and model, retaining thought blocks and images while discarding tool calls; the model-visible history collapses to “…, question, revised reply”.

The superseded old session gets a ·<modification time> suffix added and is archived; the new branch keeps the original title, so you remain in the context of “the same conversation”. The same turn sequence number is reused to avoid collisions with subsequent turns.

Outline (Floating)

There is a floating “Outline” button at the top right of the conversation area. Expanded, it is a list attached to the right side of the conversation column: one row per started turn (1 line for the question + 2 lines of preview for the reply; turns that are purely images or purely commands show the turn number), the current turn is highlighted, and clicking jumps to that turn (turns not yet loaded will first page through according to the seq in turnOutline). The panel height fills the conversation column up to just above the input box, without taking up side-column width. Clicking outside the panel and button, pressing Esc, closing it, or clicking the button again collapses it.

Installation and Activation

The installation commands must use the README’s original text. Web profile examples:

From npm:

dsh plugin --profile web add dsh-revise-chan

From GitHub:

dsh plugin --profile web add github:shellexy/dsh-revise-chan

Local path (changes take effect immediately, no build needed):

git clone https://github.com/shellexy/dsh-revise-chan.git
dsh plugin --profile web add ./dsh-revise-chan

After installation, restart the running dsh web (the host half needs a restart to load the revise-chan Remote; the browser half only needs a page refresh).

Typical Usage

  1. Open any conversation in dsh web and check whether the model | provider attribution appears below the assistant reply.
  2. When you need to change a version of a reply, click the pencil next to that reply, edit the body in the dialog box, and save; an archived session with a timestamp suffix appears in the side or session list, while the current working branch contains the revised reply with the title unchanged.
  3. In a long conversation, click “Outline” at the top right and select a turn in the list to jump; unloaded history will first page through, then scroll to position.

The maintainer provides reproducible verification in the repo’s tools/ directory (README: “How much has been verified”):

bash tools/verify-all.sh          # offline: no model needed, no network access
bash tools/verify-all.sh --e2e    # additionally launches a one-off profile against a real gateway

Use Cases and Caveats

Who it’s for: Developers who frequently proofread model output in DSH Web, need branch-style “revising drafts” rather than starting a new conversation, or need fast navigation in multi-turn conversations.

Boundaries (README “Known boundaries”):

  • Revision loses the original turn’s tool-call chain; thought blocks and images are retained.
  • When the compression summary has already swallowed that turn, revision is impossible; the host returns message-not-found.
  • Session titles have a UTF-8 80-byte limit; the plugin will truncate the title first before adding the timestamp suffix.
  • The outline button position and highlighting depend on the host-provided [data-conversation-scroll] / [data-chat-turn]; renaming these by the host will cause the button or its following to fail, but the outline data itself is unaffected.

Security and trust: The plugin runs with the current dsh process’s permissions and participates in session forking, log appending, and Remote calls. Before installing, please read the source code and the MIT license, and only install from npm or Git sources you trust. Community directories like SkillHub are independent sites and have no official affiliation with DeepSeek / High-Flyer.

Closing

dsh-revise-chan connects “attribution, revision branches, floating outline” onto a feasible path within DSH 0.2.x: without tampering with the frozen history, it implements draft revision via fork + append, and adds navigation to the Web conversation flow. To install or read update notes, visit the SkillHub directory page and the GitHub repo.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye