dsh-plugin-rag
Run the following command in DeepSeek Harness:
dsh plugin install mervyn-teo/dsh-plugin-rag
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install mervyn-teo/dsh-plugin-rag in your terminal to install; the full source is available at https://github.com/mervyn-teo/dsh-plugin-rag .
About this plugin
Working across many sessions in DeepSeek Harness quickly exposes a gap: the model has no memory of the decisions you made, the code you wrote, or the context you built up last time, so you end up re-explaining everything each round. dsh-plugin-rag turns every conversation into a searchable semantic memory. As you chat, it incrementally indexes new messages and automatically un-indexes content shadowed by compaction or pruning, so retrieval always reflects the current surface of your sessions rather than a stale snapshot.
The design is deliberately lightweight. Vectors live in a single local JSON file with atomic tmp+rename writes and per-session cursors for idempotent restarts. There is no database, no native module, no extra service. The plugin is non-destructive by construction: it only subscribes to events the session store already publishes, never patches the agent loop, and uninstalling restores the harness to its exact original state.
Embeddings are model-agnostic—plug in BGE-M3, OpenAI text-embedding-3-small or large, Ollama nomic-embed-text, or any OpenAI-compatible endpoint. Once active, the model gains a first-class rag_search tool that embeds a query and returns the most relevant past messages with role, session title, and snippet. It is built for developers who iterate on long-running projects in Harness, reuse code and decisions across sessions, or need the agent to recall prior context without re-explaining. All data stays on your machine; the only outbound traffic is the embedding request you configure, and API keys are resolved through the harness credential store, never written into the index.
Screenshots
Use Cases
- Recall decisions, code, and context across sessions without re-explaining every round
- Automatically builds an incremental vector index as you chat, rolling back shadowed content on compaction or pruning
- Use the rag_search tool to query in natural language and retrieve the most relevant past messages with role, title, and snippet
Best For
- Developers iterating on long-running projects in Harness who reuse code and decisions across sessions
- AI workflow users who want the agent to recall prior context automatically and reduce repetitive prompting
- Privacy-conscious users who prefer all data local with no external database or service dependency
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.
