dsh-plugin-dex-style-edit: Edit sent messages in DSH like Codex and continue

Preface

During multi-turn conversations with models in DeepSeek Harness (DSH), a common scenario is: a user message contains a typo, misses a constraint, or needs rephrasing—but the conversation has already moved forward. If you can only start a brand-new session and re-explain everything, the context and file state persist, but branch management becomes painful.

Products like the Codex App allow editing already-sent content within chat bubbles and continuing from that point. DSH’s conversation log is append-only and cannot be modified in place. The community plugin dsh-plugin-dex-style-edit (maintainer XylaAlyx) achieves a similar experience by forking sessions: edit text, fork, archive the old session, all without touching the working directory or files.

Below introduces the plugin’s positioning, capabilities, and installation/usage. For behavioral details and limitations, see docs/README.full.zh.md in the repository.

What Is This

dsh-plugin-dex-style-edit is a Cordis plugin for DSH. In one sentence: in-place editing of already-sent user messages, and continuing the conversation from after that turn (Codex-style message editing).

The DSH ecosystem emphasizes “everything is a plugin”; this plugin is categorized as model-inference-related capability. Its core is conversation branching after message editing, not replacing the underlying model.

Core Features

Verified capabilities (all from README / package description):

  1. Pencil editing: A pencil icon appears below each user message; click to enter in-place editing, and press Enter to submit after editing.
  2. Continue from the edit point: The edited text is sent as the first user message of a new branch, and subsequent conversation continues from the new session.
  3. Implementation under append-only logs: Fork a new session at the turn before the target message, using the edited text as the new session’s opening message; the replaced original session is archived, without deleting the workspace.
  4. Workspace unchanged: Files and the current working directory remain as-is during the fork.
  5. Model consistent with Composer: Before sending an edit, the model you selected in the input box (Composer) is the model actually used for this edited message.
  6. Sidebar indicator: Forked sessions carry a branch glyph in the sidebar, making them distinguishable from the main line.

The plugin integrates with DSH via cordis.patch.yml, with the client targeting the web platform (see dsh.client.platform in package.json).

Installation and Enabling

The installation command must use the README’s original text (desktop profile):

dsh plugin --profile desktop add github:XylaAlyx/dsh-plugin-dex-style-edit

After installation, restart DSH. After restart, a pencil should appear below user messages; forked sessions display branch markers in the sidebar.

Dependencies and environment (package.json, check before installing):

  • peer: @deepseek-ai/cordis ^4.0.1, @deepseek-ai/dsh >=0.2.0-rc.2 and <0.3.0
  • Node: ^22.19.0 or >=24.0.0

Typical Usage

  1. Have a normal multi-turn conversation in DSH until you need to correct an already-sent user message.
  2. Click the pencil below that user message and modify the text within the bubble.
  3. Press Enter to confirm; the plugin forks a new session and sends the edited content, archiving the original session.
  4. If you want to switch the model for answering this corrected message, select the model in the Composer before sending the edit, then submit the edit.

After the above steps, you will see a new session with a branch marker in the sidebar, and all subsequent replies will hang off this branch.

Use Cases and Notes

Who It’s For

  • People who frequently run long sessions and debug agents in DSH, needing to “fix one sentence and re-ask” instead of restarting the whole conversation.
  • Developers who want conversation history to be branchable and old lines to be archived and inspectable, without the plugin modifying their working directory.

Before Use, Please Note

  • The plugin runs with the permissions of the current DSH process; before installing, it is recommended to read the repository source code and the MIT license to confirm it meets your security policy.
  • Conversation logs cannot be modified in place; what is archived is the replaced session record. This behavior differs from “deleting history.” See docs/README.full.zh.md for more detailed limitations.
  • Information such as star counts on the community directory page changes over time; verify features and installation commands against the GitHub repository README.

Conclusion

dsh-plugin-dex-style-edit brings the Codex-style “edit an already-sent message and continue from there” to DSH’s append-only conversation model: pencil editing, forking, archiving, workspace untouched, and the model selected in the Composer is the runtime model for the edit.

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

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

Xiaoye