READMESource: main@15280b82
English | 简体中文
dsh-sequence
In-conversation per-turn agent tool-call sequence diagram, timeline, and animated playback plugin for DeepSeek Harness (DSH).
Key Features
- Synchronized Dual Entry Points (Shared State & Cursor)
- Per-Turn Quick Jump: Adds a Sequence Replay action button to each assistant message's action bar (
conversation.chat.assistant-actions), opening a compact replay in the right sidebar (sidebar.right.pane.tab) without interrupting the conversation flow. - Full-Width Conversation Tab: Adds a Sequence tab to the conversation view (
conversation.view) listing Turns1..N, with a synchronized frame inspector and one-click Open in Full Tab ↗ handoff from the sidebar that preserves the active turn and playback cursor.
- Per-Turn Quick Jump: Adds a Sequence Replay action button to each assistant message's action bar (
- Timeline & Sequence Diagram Views
- Timeline View: Displays
User, indentedTools/Subagents, andAgent Outputwith direct role-colored icon connectors and expandable parallel/nested call details. - Sequence Diagram View: Compiles DSH
trajectory/useChatevent streams intoUser ↔ Agent ↔ Tools ↔ Subagentsswimlane frames, supporting parallel groups (par), error and same-turnretrydetection, slow-call markers (≥ 3s), nestedsubCallsdrill-down, and liverunningstates.
- Timeline View: Displays
- Deterministic SVG Canvas & Animated Playback
- Zero heavy diagramming dependencies (
lib/client.jsonly externalizesreactandreact/jsx-runtime). - Supports play/pause, step
← / →, playback speed (0.5x / 1x / 2x / 5x), scrubbing with error/retry markers, an Issues Only filter, and one-click export to standalone SVG or a self-contained playable HTML file.
- Zero heavy diagramming dependencies (
- Host Session Projection (
seqReplay)- Registers a
ctx.sessionProjectionsunit to surface summary cards for unpaged earlier turns in long conversations, loading full details on demand vialoadOlder().
- Registers a
Installation
dsh plugin add dsh-sequence
Build, Test & Preview
# Typecheck
npx tsc --noEmit
# Run unit tests
npx vitest run
# Build Host (lib/index.js), Client (lib/client.js), and offline demo (demo/index.html)
node build.mjs
- Offline demo: Open
demo/index.htmlin a browser to explore the interactive replay, view switching, and export flow. - Local development: Install from the local directory via the DSH plugin manager (supports
0.2.0-rc.2+/0.2.1-rc.2+/0.2.2-rc.1+).
No comments yet. Be the first to write one.