The core philosophy of DeepSeek Harness (DSH) is that “everything is a plugin.” When developing or debugging agent workflows, developers often need to clarify the time distribution of model inference, particularly the proportion of time spent on Time To First Token (TTFT) versus streaming generation. This article introduces a plugin named dsh-plugin-trajectory-tracker, which displays execution trajectories and timing details in real-time within the DSH WebUI.
Plugin Positioning¶
Maintained by hirohana77, this plugin serves as a real-time timeline trajectory and execution process tracking tool for the DSH WebUI.
Core Features¶
The plugin provides the following seven main capabilities:
- Refined Two-Stage Invocation Breakdown: Decomposes the model invocation process into two independent lifecycles: “Time To First Token” and “Streaming Generation,” facilitating the analysis of performance bottlenecks.
- Dual-Responsive Real-Time Timer: The status bar displays
(Current Step Duration / Total Cumulative Duration)in real-time, with data smoothly incrementing at millisecond-level intervals at a 150ms frequency. - Floating Non-Intrusive Popup: Mounted at the top level of the
bodyvia React Portal, the expansion and collapse are completely detached from the message document flow, avoiding squeezing the space of chat messages above. - Sticky Operation Highlight Card: When hovering over a tool entry, a card pops up directly above it showing core instructions or target file information, without occupying the width of the internal scroll container.
- Intelligent Grouping of Concurrent Tools: Accurately identifies multiple parallel tools dispatched concurrently within a single invocation, preventing the erroneous insertion of extra call sequence numbers.
- Auto Smooth Scroll for New Steps: When the trajectory list exceeds the container height, it automatically slides to the bottom, ensuring the latest dynamics are always within the first view.
- Sandbox-Level Anti-Whitescreen Isolation: Built-in ErrorBoundary prevents interface crashes and white screens without modifying the source code of the official core package.
Installation and Activation¶
The installation process requires entering the DSH Web Profile directory.
- Install Dependencies
Run the following command in the terminal:
cd ~/.dsh/profiles/web && npm install dsh-plugin-trajectory-tracker
- Configure and Activate
Edit~/.dsh/profiles/web/package.jsonand declare the plugin in thedsh.bundle.pluginsarray:
{
"dsh": {
"bundle": {
"plugins": [
"dsh-plugin-trajectory-tracker"
]
}
}
}
- Start Service
Run thedsh webcommand to start the service. Visithttp://127.0.0.1:3080in your browser and refresh the page to enable it.
Typical Usage¶
Launch DSH and initiate a conversation that includes tool calls. During the generation process, observe the real-time timing data in the status bar and the trajectory list below. When hovering over a specific tool entry, a detailed operation information card for that step will automatically stick to the top and appear.
Use Cases and Precautions¶
This plugin is suitable for developers who need to perform fine-grained analysis of time distribution in agent workflows, troubleshoot tool call stuttering, or optimize Time To First Token response times.
Please note the following when using:
* The plugin must be installed within the DSH Web Profile directory.
* The plugin configuration must be explicitly declared in package.json.
* This plugin is developed based on the community directory and is not affiliated with DeepSeek. It is recommended to review the source code and license before use.
Summary¶
dsh-plugin-trajectory-tracker provides a lightweight debugging view solution for the DSH ecosystem, helping developers clearly visualize the “thinking preparation” and execution processes of Large Language Models.
For more details and source code, please visit: GitHub