Preface¶
In DeepSeek Harness (DSH) Web interactions, as the number of conversation turns increases, the native interface tends to lose structural information, making it difficult for developers to quickly review context or locate specific paragraphs. This article introduces huangfuren/dsh-conversation, which reorganizes conversations into a tree outline via a floating panel, providing navigation, statistics, and quick location capabilities.
Plugin Overview¶
huangfuren/dsh-conversation is a pure UI plugin that does not touch prompts, message content, or tool results; it only reads the conversation snapshots provided by the host for rendering. It primarily addresses the issues of unclear session structure and difficulty in quick location and review on the Web, providing a reading experience similar to a document outline.
Installation and Activation¶
The plugin supports installation via immutable tags to ensure version consistency. The command is as follows:
dsh plugin --profile web add github:huangfuren/dsh-conversation#v1.3.1
If you need to track the development branch or debug locally, you can use the following commands:
dsh plugin --profile web add github:huangfuren/dsh-conversation
dsh plugin --profile web add file:/absolute/path/to/dsh-conversation
Core Features¶
-
Floating Panel & Conversation Outline
The panel is docked in the top right corner of the page by default. It uses “User Questions” as root nodes. A root node contains the sequence number, question time, and statistics on the number of tools and word count of the text body for that turn; Markdown headings in assistant replies are mounted hierarchically under the nearest question. The panel supports dragging by a handle, and its position is persisted. -
Jumping & Reading Memory
- Single Click on any line: The panel automatically scrolls to the corresponding position in the body text and highlights the node.
- Double Click on any line: Jumps to the “End of this section” (the next node at the same or higher level; if already at the bottom, it scrolls to the bottom).
- The plugin records the reading position of each conversation. When reopening the panel after switching conversations, it automatically locates the last read node.
-
Panel Width & Keyboard Navigation
- The panel offers three width settings: Compact (320px), Wide (480px), and Full Screen (720px). These can be cycled through via buttons on the title bar.
- When the panel is focused, use
Alt+↑/Alt+↓to quickly navigate up and down between nodes.
-
Right-side Density Scale
The right side displays a conversation density map. Each tick represents a round of questions, with its length normalized according to the volume of the body text in that round. Hovering shows a summary of that round, and clicking jumps directly to it. This function serves as a “Conversation Density Map.” -
Search & Export
- Search: Supports entering keywords in the search box. You can toggle the search scope (All / Questions Only / Headings Only), and matching fragments will be highlighted.
- Export: Supports exporting the outline as Markdown. It can be copied to the clipboard or downloaded as a
.mdfile (the filename is fixed asdsh-conversation-outline.md).
-
State Persistence
All user preferences (favorites, expansion levels, panel width, scale toggle, reading position) are persisted vialocalStorage(with the key prefixdsh-conversation:).
Typical Usage¶
- Adjust Panel Width: Click on the panel title bar or use the
Alt+↑ / Alt+↓shortcuts. - Jump & Locate: Single click an outline node to jump; double click to jump to the end of the node.
- Switch Search Scope: Click the button to the left of the search box to cycle through “All”, “Questions”, and “Headings”.
- Expand/Collapse Hierarchy: Use the hierarchy slider in the title bar to control how many levels of Markdown headings are displayed.
Compatibility & Notes¶
- Version Requirements: The plugin has been verified on DSH 0.1.5-rc.2 +
webprofile and is adapted for DSH 0.2.x (>=0.2.0-rc.1 <1.0.0). Earlier DSH versions and other profiles are not certified. - Degradation Mechanism: If the plugin encounters unknown host APIs, it will degrade gracefully by not appearing (the panel will not show) rather than throwing errors, to avoid affecting host stability.
- DOM Dependency: The click-to-locate function relies on the host’s DOM contract (
data-chat-anchor-keyordata-chat-flow-kind). If the host changes these attributes in the future, the location function may fail. - Layout Conflicts: The panel uses fixed positioning. If coexisting with other top-right floating plugins, visual overlap may occur.
Summary¶
dsh-conversation provides a lightweight, pure-UI conversation navigation solution for the DSH Web side. Without intruding on the data layer, it helps developers manage long conversations more efficiently through clear hierarchical structures and quick jump capabilities. For project details and source code, please refer to the GitHub Repository.