Preface¶
When running agent tasks in DeepSeek Harness (DSH), tool calls, plan text, and error logs are often piled up in the sidebar or logs. You have to cross-reference read, edit, grep, and shell outputs yourself to figure out “which step is currently being worked on and how much longer it will take.” The community plugin ecosystem follows the “everything is a plugin” philosophy. The directory site SkillHub has no official affiliation with DeepSeek/Huanfang, but such client plugins can directly change your experience in the Harness.
The following introduces the client plugin dsh-task-lens published by maintainer apoclota (current npm package version 0.1.0, GitHub 1 star): it provides a draggable persistent panel above the input box, translating requests, plans, tool calls, and errors into Chinese steps and progress using local rules, without calling models or consuming additional tokens.
What This Is¶
dsh-task-lens is a “task lens” plugin installed in DSH: it reconstructs task steps by combining your request, AI plan, tool calls, and errors, translates what the AI is doing into plain language, marks the current position with a status light and progress bar, and records pitfalls encountered for reference in future tasks. All processing is done locally; the plugin states it makes no network requests and uploads no content.
- Directory page: https://www.skillhub.cn/plugins/apoclota/dsh-task-lens
- Source code and documentation: https://github.com/apoclota/dsh-task-lens
- License: MIT
Core Features¶
Steps and Task Types¶
The plugin first recognizes whether the task roughly belongs to drawing, coding, documentation, data, research, or configuration, then provides the corresponding step template. For example, coding tasks commonly follow “locate the problem → read code → modify code → add tests → run tests → check build → organize results”; drawing tasks have stages like composition, coloring, exporting, etc. Coding, configuration, and general tasks also reconstruct steps from actual tool operations: distinguishing front-end from back-end, merging consecutive writes in the same region, adding validation steps that haven’t happened yet, and reading the AI’s thinking content and numbered plans to advance to the current step, without additional model calls throughout.
Localization of Tool Calls¶
pwsh, read, grep, edit, web_fetch, etc. are translated into Chinese actions like “running tests,” “modifying login.tsx,” “searching for ‘submitting’”; commands, files, and search terms are included in the text; ops_bash displays commands, scripts, directories, and timeouts, hover to see full content, and secrets are automatically masked.
Progress and Status Light¶
The progress bar prioritizes the task list written by the AI; when there’s no list, it advances according to the current step’s position in the plan. A normal completion of one round is counted as 100%, and when aborted, it won’t pretend to be complete. There’s only one status light next to the progress bar: reading / searching / analyzing is blue, writing / modifying / installing is yellow, running / testing is cyan, completion is green, error or connection interruption is red.
The main panel focuses on three lines: “Completed / In Progress / Next Step”, and compact mode also keeps these three lines; there’s also a single-line “Thinking” summary that updates with the AI’s thinking. Click “Details” in the title bar to see a longer thinking summary, all steps and their statuses, and recent operations, without expanding the full raw thinking text.
Coding tasks are split into 7 stages, while documentation, data, research, configuration, etc. are split into 6–7 stages; within stages, progress also advances according to the number of tool calls and time spent, so progress won’t stay at the same percentage for long during long command executions. When requirements are added during execution, it re-estimates, with progress first backtracking then growing with new tool operations.
Persistent UI and Settings¶
Once enabled, the panel always displays; when there’s no task, it enters standby and won’t disappear. It floats above the input box by default, can be dragged by holding the title bar, remembers its position, and double-clicking the title bar restores the default. Multi-threaded or narrow windows automatically narrow and limit height (up to about 55% of screen height).
“Settings” can adjust panel size, custom width and height (320–900 × 220–900), information density (compact / normal / detailed), 5 background colors, and view current lessons, all automatically saved. When collapsed, it still keeps the status light, star progress bar, percentage, and a one-sentence current task report.
Error Lessons and AGENTS.md¶
When tools return errors, they are categorized into Chinese conclusions based on error.code and error text (e.g., file not found, insufficient permissions, port occupied, dependencies not installed, timeout, rate limiting, etc.). The same tool, same target, and same error are merged and counted; after sorting, they are written to the managed block of ~/.dsh/AGENTS.md (<!-- dsh-task-lens:begin --> … <!-- dsh-task-lens:end -->), content outside the block remains unchanged, and exceeding the limit will be truncated. When the same tool later succeeds on the same target, the corresponding entry is marked as resolved; when only resolved entries remain, the managed block is completely removed. Raw records are in ~/.dsh/dsh-task-lens/lessons.json. The host already loads AGENTS.md, so subsequent sessions can see lessons without additional operations (default limit 10 entries, 1200 characters, configurable).
Installation and Activation¶
Desktop: Open Settings → Plugins, search for dsh-task-lens and install, then refresh the page.
Command line (replace web with your own profile name; desktop profiles are managed by the application, please install in the application plugin page):
dsh plugin --profile web add dsh-task-lens
After installation, the panel will appear above the input box; it starts working when running any task. Hold the title bar to drag, double-click the title bar to return to the default position. The README also mentions that you can use assets/demo.html?hover=1 or ?idle=1 in the repository to preview hover details and the standby panel (need to open the HTML locally).
Configuration¶
Modify in the profile’s cordis.patch.yml (also can be modified in the plugin card on desktop). Example:
- id: dsh-task-lens
name: dsh-task-lens
config:
showPanel: true
showThinking: false
lessonsEnabled: true
lessonsMax: 10
lessonsMaxChars: 1200
| Field | Default | Description |
|---|---|---|
showPanel |
true |
Whether to inject the floating panel above the input box (still records lessons in the background when off) |
showThinking |
false |
Whether to show “analyzing next step” when AI is thinking and hasn’t called tools yet |
lessonsEnabled |
true |
Whether to record error lessons and write to AGENTS.md |
lessonsMax |
10 |
Maximum number of entries written to AGENTS.md |
lessonsMaxChars |
1200 |
Character limit of the managed block |
pollMs |
400 |
Panel polling interval (local read only) |
keepDoneMs |
120000 |
How long to keep task data after task ends before returning to standby |
instructionsFile |
$DSH_HOME/AGENTS.md |
Instruction file for lesson storage |
lessonFile |
$DSH_HOME/dsh-task-lens/lessons.json |
Lesson data file |
Typical Usage¶
- Install as described above and keep
showPanel: true(default). - Start a task in DSH that triggers multi-step tool calls (e.g., modifying code and running tests). Observe whether the three lines on the main panel, status light, and percentage change with the tools.
- Click “Details” in the title bar when you need complete steps; go to “Settings” when you need to change density or background.
- If you want to turn off the floating panel but still accumulate lessons, set
showPaneltofalseand keeplessonsEnabled: true. - After intentionally triggering a recoverable error (like an incorrect path), check whether
lessons.jsonand the managed block ofAGENTS.mdupdate as described in the README; observe the “resolved” logic after successful fixes.
Use Cases and Notes¶
Suitable for users who frequently do coding, configuration, documentation, or research-type agent tasks in DSH and want to see progress and recent operations clearly without increasing model calls. The plugin runs with the current dsh process permissions, reads session and tool events, and writes AGENTS.md and lessons.json locally; please review the GitHub source code and MIT license yourself before installation. The README states that the local interface used by the panel only accepts GET, and requires loopback address, same-origin, and Sec-Fetch-Site not cross-site; lesson paths are sanitized to $DSH_HOME and ~. The package requires Node >= 20 (see engines in package.json).
Conclusion¶
dsh-task-lens consolidates the scattered plans and tool calls in the Harness into a draggable Chinese task lens: steps, progress, details, and error memory are all handled under local rules, making it suitable for long-term use as a client-side progress and lesson plugin. For more information, see the SkillHub directory page and GitHub repository.