Introduction¶
The core philosophy of DeepSeek Harness (DSH) is “Everything is a Plugin.” During agent development and debugging, the number of sessions accumulates over time. By default, sessions are retained indefinitely unless manually archived, which clutters the sidebar list.
The dsh-session-task-tags plugin aims to solve this session lifecycle management issue. It empowers each session with explicit task attributes (Long-term or Short-term), records the Agent mode at creation, and automatically archives sessions when the time window expires, helping developers maintain a tidy workspace.
What is it¶
This is a tool providing session lifecycle management for the DeepSeek Harness plugin ecosystem. The plugin name is dsh-session-task-tags.
- Owner: Som2233
- Category: Memory
- License: MIT
- Core Value: Replacing manual session organizing operations with tagging and auto-archiving mechanisms.
Core Features¶
The plugin provides the following capabilities:
- Session Task Tagging: Tags each session as either a “Long-term Task” or “Short-term Task”.
- Agent Mode Recording: Automatically records the Agent mode selected when the session was created.
- Auto-Archive Policy:
- Short-term Tasks: Supports 1 / 5 / 7 / 15 / 30-day windows, with a default of 7 days.
- Long-term Tasks: Supports 15–85-day windows, defaulting to manual archiving (excluded from auto-scanning).
- UI Integration & Countdown: Displays semi-transparent task tags and remaining day countdowns in the sidebar.
- Multi-stage UI Support: Provides selectors and tag displays in both the Conversation Stage (session header) and the Creation Stage (Hero row).
Installation & Activation¶
Execute the following command in the terminal to install the plugin. After installation, JS changes in the Host half require a DSH restart to take effect.
dsh plugin --profile web add dsh-session-task-tags
Typical Usage¶
Once installed, the plugin provides interaction entries in the sidebar and the session header.
- Create or Open a Session.
- Add Tag:
- In the Conversation Stage, the selector is located after the Agent preset chip.
- In the Creation Stage, the selector sits side-by-side with the Workspace/preset chip.
- Observe Tags:
- A semi-transparent Long-term/Short-term marker appears at the beginning of the sidebar row.
- The chip displays the specific duration and countdown, formatted as follows:
Short-term Task 7d · 6d leftLong-term Task 35d · 20d left
- Archiving:
- Sessions are automatically archived upon expiration, showing “Archived”.
- Long-term tasks do not auto-archive by default and require manual operation.
Notes¶
- Restart Required: The Host half involves JS code changes; DSH must be restarted after modifications to take effect.
- Hot Update: The Client half supports HMR (Hot Module Replacement), allowing frontend code changes to take effect immediately.
- Default Behavior: Long-term tasks default to manual archiving; they are only included in auto-scanning if a specific auto-archive duration (15-85 days) is selected.
- Security Limit: Browser API routes are protected by a Host header trust fence, ensuring access is restricted to local or same-origin requests only.
Ecosystem Background¶
The DSH community maintains an independent plugin directory (e.g., SkillHub) and has no official affiliation with DeepSeek or High-Flyer. This plugin follows community open-source standards and is released under the MIT License.