dsh-session-prefix: Mark DeepSeek Harness session status with title prefix

Preface

When running multiple parallel sessions in DeepSeek Harness (DSH), the sidebar often displays a list of similar titles. It can be difficult to immediately identify who is writing code, who is waiting for confirmation, or who has already delivered. Manually renaming each session title can help distinguish them, but as task phases change, the titles need to be updated again, easily becoming disconnected from the Agent’s actual progress.

dsh-session-prefix (a community directory entry john-walks-slow/session-prefix) does only one thing: adds a configurable status prefix (default is Emoji) at the very beginning of session titles, and maintains consistency between the prefix and the phase through the Jev decision model, Agent tools, or slash commands. The plugin is published by the maintainer john-walks-slow, classified under “Fun Dress-up” in the community directory; it currently has 0 stars on GitHub. The DSH ecosystem emphasizes “everything is a plugin”; directory sites such as SkillHub have no official affiliation with DeepSeek or HF (High-Flyer). Please review the source code and license (this plugin is MIT) yourself before installing.

What Is This

dsh-session-prefix is a DSH plugin for Web profiles (npm package name dsh-session-prefix, version 0.1.0). It does not modify session data structures or runtime behavior; it only updates the title string of the current session to visually display the task phase at the front of the sidebar title.

Core Features

Default Classification System

Out of the box, it includes six status categories (keys and default Emojis are as follows; they can be added, deleted, or modified in the settings page, and short text prefixes such as [DEV] are also supported):

Prefix Status Key Name Applicable Phase
🚧 wip In Progress Implementation, execution of plans (default for new sessions)
⏸️ blocked Waiting/Blocked Awaiting user input, approval, or external blockage
👀 review Pending Review Features ready, awaiting user inspection and verification
✅ done Completed All objectives of the current session have been delivered
💡 plan Planning/Research Requirement discussion, architecture design, and technical research
🐛 bug Troubleshooting/Fixing Problem localization, fault diagnosis, and bug fixing

You can directly enter the status Emoji (e.g., 🚧 or ✅) in the sidebar search box to filter sessions of the same type.

Two Auto-classification Paths

  1. Based on the Jev decision model (TypeSafe Jev)
    A lightweight decision model handles phase analysis without needing to inject long prompts into the main model. It quickly judges intent changes during the turn by combining the user’s new instructions with the previous output; at the end of the turn, it updates the classification based on the Agent’s final output (e.g., pending review 👀 or completed ✅). Only the current instruction and output summary are provided to the decision model; if no API Key is configured, it silently skips without blocking the session.

  2. Based on the Agent tool session_prefix
    Exposes the session_prefix model tool to the Agent, with classification definitions and usage scenarios embedded in the tool description; the Agent can proactively tag complex task progressions. Additional rules can be supplemented in the settings page (e.g., “must not mark as completed without user confirmation”).

Self-healing and Naming Compatibility

  • When a user follows up in a session that is in a static state (⏸️ / 👀 / ✅), it automatically falls back to “In Progress” (🚧) at the start of the turn.
  • New sessions are initialized with a default classification (🚧), coexisting with the background asynchronous LLM title generation; once title generation is completed, the prefix is automatically appended.

Manual Control and Web Settings

  • User slash command /prefix (a user command in the installation instructions; not /state).
  • Web: Settings → Session Prefix, where you can manage the classification system, Jev auto-classification (toggle, API Key, model and endpoint, connectivity testing), filter and skip rules (the built-in regular expression defaults to ^\S+ · to skip titles with existing external labels, avoiding duplicate prefixes).

Installation and Activation

After installation, no cumbersome configuration is needed to mount it: the session_prefix model tool, /prefix user command, and the “Session Prefix” settings page are included. The official README provides the following installation methods (must use --profile web):

# Online installation
dsh plugin --profile web add dsh-session-prefix

# Installation from GitHub source
dsh plugin --profile web add github:john-walks-slow/dsh-session-prefix

# Local development direct link
dsh plugin --profile web add link:/path/to/session-prefix

Typical Usage

Slash Command /prefix

View, switch, or clear the prefix at any time in the session:

/prefix              # View current session status and available classification list
/prefix review       # Switch to "👀 Pending Review"
/prefix done         # Switch to "✅ Completed"
/prefix none         # Clear prefix, restore clean title

Agent and Jev

  • After enabling Jev and configuring the API Key and model in the settings page, classifications can be automatically updated during and at the end of turns.
  • The main Agent calls the session_prefix tool at appropriate phases to maintain the status; for complex workflows, supplementary rules can be written in the settings page to constrain tagging timing.

Applicable Scenarios and Notes

Who it suits: Developers maintaining multiple DSH sessions who want to visually distinguish phases such as “In Progress / Blocked / Pending Review / Completed” in the sidebar; teams needing Emoji or short text prefixes and willing to optionally configure Jev endpoints.

Important Notes:

  • The plugin runs with current dsh process permissions. Please read the GitHub repository source code and the MIT license before installation.
  • Automatic classification relies on Jev, which requires you to provide an API Key; if not configured, only the Jev path is skipped, without affecting manual /prefix and Agent tools.
  • The only side effect is the change in the title string; if the title already contains external labels, you can rely on or adjust the skip regular expression to avoid double prefixes.

Conclusion

dsh-session-prefix consolidates session phases at the front of the title: default six Emoji categories, dual paths of Jev and session_prefix, fallback for follow-ups in static states, and /prefix with the Web settings page, making it suitable for lightweight status visualization in DSH multi-session scenarios.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye