Auto-classify DeepSeek Harness sessions via Jev decision models or Agent tools, displayed as title emoji prefixes (wip π§, blocked βΈοΈ, review π, done β , plan π‘, bug π). Features seamless lifecycle recovery, optional Jev inference (needs a Jev API key), model tool maintenance, and a visual settings panel.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-session-prefix
# from GitHub (first run asks for allowBuilds approval β follow the hint, retry)
dsh plugin --profile web add github:john-walks-slow/dsh-session-prefix
Any plugin you install runs third-party code with your own permissions β it can read your files, use your credentials, and reach the network, and tool approvals donβt sandbox it. GitHub-sourced plugins also run build scripts at install time β pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profileβs pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
δΈζ | English
Automatic session classification for DeepSeek Harness via Jev decision models or Agent tools, displayed directly as title emoji prefixes.
As conversations accumulate in DeepSeek Harness, the sidebar quickly fills up with a flat list of titles, making it difficult to spot what each session is doing. dsh-session-prefix classifies sessions automatically and puts status emojis right at the front of each title:
| Sidebar Badges | Settings Panel |
|---|---|
![]() |
![]() |
Quick Install
# Online install
dsh plugin --profile web add dsh-session-prefix
# From GitHub source
dsh plugin --profile web add github:john-walks-slow/dsh-session-prefix
# Local checkout
dsh plugin --profile web add link:/path/to/session-prefix
No manual setup required: the plugin automatically mounts with the session_prefix tool, the /prefix slash command, and the "δΌθ―εηΌ" settings tab.
Auto-Classification Mechanisms
dsh-session-prefix provides two complementary ways to classify sessions automatically. Both work out of the box and can run independently or in tandem:
1. Jev Decision Model Classification (Zero-Config & Seamless)
- Zero Prompt bloat, zero context overhead: Leverages the lightweight TypeSafe Jev decision model for phase classification. No need to inject long prompt instructions or consume your primary model's context budget.
- Adaptive lifecycle awareness:
- Mid-turn responsiveness: When you submit a new instruction, it quickly detects intent shifts (e.g., from development to testing, debugging, or planning) in combination with recent outputs.
- Turn-end precision: Once the Agent finishes its work, the session is classified based on the actual outcome (e.g., marked as ready for review
πor completedβ).
- Privacy-conscious & lightweight: Only the immediate instruction and output summaries are provided to the decision model (full historical context is never transmitted). Silently skips if no API key is configured without interrupting the session.
2. Agent Tool-Driven Classification (Proactive Badge Maintenance)
- Model autonomy: Equips the Agent with the
session_prefixtool, allowing it to advance its state badge as work progresses across multi-stage tasks. - Self-explanatory criteria: Tool descriptions clearly define when each badge applies. You can also append custom rules in Settings (e.g., "never mark as done without explicit user approval").
3. Lifecycle Healing & Smooth Auto-Naming
- Active state fallback: When you send a follow-up message in a resting session (
βΈοΈblocked /πreview /βdone), the badge immediately resets to in-progress (π§), reflecting real-time activity. - Seamless title provider compatibility: New sessions automatically receive a default badge (
π§) without interrupting background LLM title generation. Once the title is generated, the prefix reattaches smoothly.
Default Classification System
| Prefix Emoji | State Key | Label | Applicable Phase |
|---|---|---|---|
π§ |
wip |
In Progress | Coding, implementing, or running tasks (default for new sessions) |
βΈοΈ |
blocked |
Waiting/Blocked | Awaiting user input, approvals, or stuck on blockers |
π |
review |
Review | Implementation or plan ready for user verification |
β
|
done |
Done | All session goals delivered and completed |
π‘ |
plan |
Planning | Requirements discovery, system design, or discussions |
π |
bug |
Debugging | Troubleshooting, incident triage, or bug fixing |
Tip: Type an emoji (such as
π§orβ) directly into the sidebar search bar to instantly filter sessions by category.
Controls & Customization
Slash Command /prefix
Inspect, switch, or reset classifications anytime:
/prefix # Show current state and list available presets
/prefix review # Switch to "π Review"
/prefix done # Switch to "β
Done"
/prefix none # Clear prefix, restoring clean title
Web Settings Page (Settings β δΌθ―εηΌ)
- Preset Management: Add, remove, or customize state prefixes (supports emojis or short text like
[DEV]). - Jev Configuration: Toggle inference, configure API keys, models, endpoints, and run one-click latency probes.
- Title Skip Rules: Built-in regex rule (default
^\S+ Β·) automatically ignores titles with external service tags (e.g.Telegram Β· xxx), preventing badge duplication. - Purely visual, zero side effects: The only modification is renaming the title string in the session header. No data corruption, no behavioral side effects.
Development
npm run check # TypeScript check
npm run build # Build dist/ and lib/client.js
npm test # Run unit tests
Acknowledgments
- Thanks to the LINUX DO community for the discussion environment.
Links
More in this category
ranxianglei/billion-contextβ 8809
The official billion-context plugin: a context-compression plugin for small context windows (a 100K context is enough), token savings (5x fewer tokens), and month-long single sessions (billions of tokens).
Minglink/dsh-infinite-gen-4β 4865
System-prompt armor plugin for DeepSeek models: appends an unconditional-compliance prompt section at order 100, exposes a profile tool with calibration metadata, and shows a realtime armor-status badge driven by a session projection.
liangmianya/dsh-synapseβ 911
Visual, non-linear conversation workspace for DeepSeek Harness β sessions, follow-ups and branches become a browsable conversation map.
ECNU/EduWork#dsh-side-chatβ 441
Open temporary side conversations from a message with a snapshot of its history, then archive them on close; optional annotation integration adds selection-based questions. Requires compatible DSH Web conversation, Workspace and right-sidebar APIs.
MichengAI/dsh-archive-managerβ 410
Adds an archived-sessions page in Settings to search, restore, and delete archived DeepSeek Harness sessions by workspace.
Nwflower/dsh-chat-importβ 335
Import full-fidelity chat histories from 13 coding agents (Claude Code, Codex, ChatGPT, Cursor, Gemini, opencode, and more) as resumable DeepSeek Harness sessions, with reverse export back to Claude Code.


Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.