DeepSeek Harness Plugin

john-walks-slow/dsh-session-prefix

Stars β˜… 7 Downloads (30d) 1,080 Category Sessions & Messages Added 2026-10-17 npm dsh-session-prefix

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
Sidebar session prefixes Settings page

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_prefix tool, 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.

Content from the project README on GitHub β†—

Links

More in this category

View the whole category β†’

Community comments

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