Preface¶
When running long sessions in DeepSeek Harness (DSH), tool calls, Skill loads, and file reads/writes are often scattered across multiple turns of conversation. The main panel focuses on continuing the conversation, so it is hard to see at a glance “what exactly happened in this turn, which step failed, whether a certain file was later deleted.” If you rely only on scrolling through messages or external logs, the cost of statistics and attribution becomes high.
The following introduces the community plugin dsh-plugin-operation-log (maintainer uio-o, category: client). It occupies one tab in the right sidebar, expanding the session events already recorded by the host by “turn → step”, and distinguishes known information from unrecorded information, without guessing.
What Is This¶
dsh-plugin-operation-log is a session panel plugin: it counts Skill calls, MCP tool calls, and file reads/writes within a session, displays failure details, supports filtering by source, and marks deleted files.
The design goal can be summarized as “an honest local view”—data comes from the host’s append-only session log and optional services (connection, shell, fs); questions the panel cannot answer are marked as “unknown / unrecorded”, and it does not replace the main interface.
The plugin registers slots including sidebar.right.pane.tab and an “Operation Log” entry on the conversation header’s conversation.session.header.utilities; the Host semi-maintains the operationLog projection, which is a pure function folding existing event types without adding new events.
Core Features¶
Panel Sections¶
The panel has six collapsible sections from top to bottom (the filter result section stays expanded when a filter is active):
| Section | Content |
|---|---|
| Overview | Total session count, total error count; clickable chips: All / Skill / MCP / Other tools / Errors |
| Filter Result | Counts and involved turns aggregated by subject |
| Tasks | Currently active task list (status dot + text) |
| Activity Log | Per-turn cards: turn header counts + call lines |
| Files | Read/write counts, last turn, three-state existence aggregated by path |
| Session Changes / Git Changes | workspace/changes announcements and git status / diff (when dependent services exist) |
Per-Turn Statistics and Call Details¶
Each turn card header shows the count of Skill / MCP / other tools / errors for that turn. Turns exceeding 12 lines are collapsible; the most recent 10 turns are shown by default, and earlier turns can be paginated. Sub-calls inside PTC (run_code) containers are attributed to the corresponding turn and step, while the outer run_code itself is not counted in statistics.
Each call line contains a type-colored icon, tool name, target (file name or skill name), duration, and status. File tools display the file name (hover to see the full path); skill displays the skill name from the name parameter; MCP displays the service name and method name.
Failure Details¶
Failed lines can be expanded to show the error.name / error.code / error.reason attached by the host, an excerpt of the error body (possibly marked as “truncated”), and support one-click copying. The projection has a size limit for error bodies (≤ 2048 characters per entry, up to 300 entries retained in total); once exceeded, older bodies are released, and the panel states “earlier error bodies have been released”.
Filtering and File Marking¶
After clicking an overview chip, “Filter Result” aggregates statistics by subject; you can further narrow down to a specific call. Skill / MCP filters display by skill load count, method call count, and distribution across turns respectively.
The “Files” section aggregates read/write counts and the last turn of appearance. Existence is batch-probed by the Host via fs.stat (POST /api/operation-log.files-exist, up to 200 paths), with three states: exists, deleted (strikethrough + “Deleted”), unknown. Results carry a “Existence checked at HH:MM” timestamp, indicating the state at the time of probing rather than real-time state.
Tasks, Session Changes, and Git¶
The task list is aligned with the host by task text (text is unique within the same list). If the task list was rewritten during a turn, the card is marked “updated this turn”.
“Session Changes” reads workspace/changes announcements; “Git Changes” explicitly indicates when not in a repository, rather than showing “no changes”. The relevant HTTP routes are not registered when the shell / fs services are missing, and the corresponding sections display a degraded description.
The interface colors use the host theme tokens (--dsw-alias-*) and color-mix(), without hardcoding color values.
Installation and Activation¶
Prerequisite: DSH 0.2.0-rc or higher (requires the projection registry, sidebarRightTabs, ctx.locale.register).
Add the dependency and bundle to the package.json in the profile directory ~/.dsh/profiles/<profile>/:
"dependencies": { "dsh-plugin-operation-log": "github:uio-o/dsh-plugin-operation-log" },
"dsh": { "profile": { "bundles": [ "dsh-plugin-operation-log" ] } }
After running pnpm install, restart DSH. An “Operation Log” button will appear on the right side of the conversation header; clicking it opens the panel in the right sidebar.
Example of pinning the version (not following main):
"dependencies": { "dsh-plugin-operation-log": "github:uio-o/dsh-plugin-operation-log#v0.1.0" }
The current package version is 0.1.0, license MIT.
Typical Usage¶
- After installing and restarting DSH, click “Operation Log” in the header of any conversation to open the right-side tab.
- In “Overview”, click chips like Skill, MCP, or Errors, view the counts and turns aggregated by subject in “Filter Result”, then click a row to narrow down to a single call.
- In “Activity Log”, expand failed lines to view error codes and bodies, and copy the entire error if necessary.
- In the “Files” section, view read/write statistics; if a file has been deleted, you will see a strikethrough and a “Deleted” label.
- If the workspace is a Git repository and
shellis configured, you can view uncommitted items in “Git Changes” and expand diffs.
Note for development: modifying client.js only requires refreshing the browser; modifying index.js (Host-side) requires restarting DSH. “Toggling off and on” in the plugin manager does not re-import Host modules.
Use Cases and Caveats¶
Suitable for developers who need to review long sessions within DSH: verifying which Skills / MCPs were called in a certain turn, which files were read/written, which step a failure occurred in, and whether the task list was updated in a certain turn.
The plugin runs with the permissions of the current DSH process; Git diff, file existence probing, etc. will trigger Host-side routes and optional services. Before installing, you should review the source code and MIT license of the GitHub repository yourself. The README states that this project’s code was written by AI (Vibe Coding); the visual structure borrows from the Abu design language but the implementation does not use its code.
Community directories such as SkillHub are independent sites and have no official affiliation with DeepSeek / High-Flyer; star counts and other metadata are based on the directory page (the current GitHub star count is 0).
Conclusion¶
dsh-plugin-operation-log spreads out the operations already recorded in the session by turns, providing a filterable, drill-down statistical view in the sidebar, and maintains clear descriptions for unknown data. If you need to do session-level auditing within DSH rather than guessing from logs, you can install it via the profile dependency method and enable it by restarting.
- Directory page: https://www.skillhub.cn/plugins/uio-o/dsh-plugin-operation-log
- GitHub: https://github.com/uio-o/dsh-plugin-operation-log