dsh-session-summarizer
Run the following command in DeepSeek Harness:
dsh plugin install KhalilYamber/dsh-session-summarizer
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install KhalilYamber/dsh-session-summarizer in your terminal to install the plugin into your current profile; the full source code is at https://github.com/KhalilYamber/dsh-session-summarizer
About this plugin
Long conversations routinely outgrow a model's short-term memory, leaving it unable to recall key points, constraints, and decisions made earlier in the thread. dsh-session-summarizer was built to fix exactly this: it registers a session_summarize tool that the model can invoke on its own, pulling in a specified, current, or most-recent session and producing a structured Chinese context summary so the lost thread is handed back to the reasoning process.
The entire pipeline runs inside the official DSH runtime. Session content is read through @deepseek-ai/dsh-session (supporting both live derived messages and persisted event-log paths), and the summary is generated via the streaming API in @deepseek-ai/dsh-llm. No external services or third-party APIs are involved. For very long transcripts the plugin applies a keep-head-and-tail, truncate-middle strategy with a default budget of 12 000 characters; the optional lastTurns parameter lets the model focus on only the most recent N user turns for a tighter, more targeted summary.
If you regularly work through multi-turn, in-depth conversations in DSH and want the model to look back through context on its own instead of you manually pasting history, this plugin offers a lightweight, self-contained solution. It mounts into your profile as a bundle patch and is ready to use in-conversation with no extra setup or external dependencies.
Use Cases
- Model loses track of earlier key points or constraints in a long multi-turn conversation and needs to recover context quickly
- Returning to a previous session after a break and needing a concise summary to re-orient the discussion thread
- Producing a structured Chinese summary at the end of a long session for record-keeping or future reference
Best For
- Developers working through multi-turn deep conversations in DSH who want the model to retrieve context on its own
- Users who prefer the model to pull session summaries automatically rather than manually pasting history
- Teams building workflows on the official DSH runtime and looking for a lightweight, self-contained plugin
Related Plugins
A service-oriented sidebar framework for DSH, offering a full workbench with file explorer, embedded browser, real terminal, Git panel, and extensible plugin services.
A beautiful, practical Claude Code-style TUI plugin with pixel whale top bar, flowing glow title, real-time status line, streaming thought expansion, time rewind, context progress bar and TPS gauge — zero core changes.
The plugin market for DeepSeek Harness: browse/search/one-click install community plugins and themes, with updates, backup/restore, hot disable, diagnostics, and AI fix.
A persistent whale widget on the DSH web UI that shows DeepSeek balance, today's usage, and per-turn cost, with drag-and-snap and sound effects.