dsh-session-index
Run the following command in DeepSeek Harness:
dsh plugin install longyu065/dsh-session-index
Paste the following prompt into your AI chat to install this plugin:
Install it in DeepSeek Harness by running dsh plugin install longyu065/dsh-session-index; the source is at https://github.com/longyu065/dsh-session-index
About this plugin
Multi-turn, multi-session agent workflows suffer from a persistent gap — the session/event stream does not replay history from resumed conversations, and the framework's built-in SQLite FTS5 (unicode61 tokenizer) treats a whole CJK string as one token, making Chinese recall nearly impossible. Agents therefore cannot remember what was said in a previous session, nor search back tool-call results using natural language.
dsh-session-index extracts user messages, assistant replies, tool calls/results, and session titles from every conversation into searchable documents and builds a cross-session inverted index exposed via two model-facing tools: session_search and session_index_stats. It supports real-time incremental indexing, watermark-based backfill of persisted sessions at startup, and hybrid retrieval that runs FTS5 in parallel with a bigram in-memory index (the engine field reports memory / fts5 / hybrid). Hits can be projected into per-session grouped, expandable cards in the Web UI. The index is appended as JSONL locally; restarts only patch the delta, and session disposal cleans up its documents synchronously.
Built for developers running multi-turn, multi-session DeepSeek Harness workflows who need agents to recall content from any past conversation. If you have hit the wall of poor Chinese FTS5 recall or lost search coverage in resumed sessions, this plugin fills both gaps.
Use Cases
- Agent needs to search prior conversations for user questions or assistant answers
- Chinese recall is poor under FTS5, requiring the bigram in-memory index as a complement
- Resumed sessions need watermark-based backfill of historical events into the search index
- Reviewing per-session grouped, expandable hit cards in the Web UI
Best For
- Developers running multi-turn, multi-session workflows on DeepSeek Harness
- Teams hit by the Chinese FTS5 tokenization gap who need a hybrid retrieval path
- Harness integrators who want cross-session memory for their agents
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.