In DeepSeek Harness, the core backend supports indexing historical sessions through SQLite FTS5, but this capability is only exposed to human users through the sidebar. Agents don’t have tools to query past conversations. This means that when agents handle tasks requiring reference to historical configurations or context, they often rely on the model’s own memory, which can lead to forgetting details or generating hallucinations.
goodandready/dsh-session-search is a session_search tool for DeepSeek Harness Agent that aims to solve the above problems. It allows agents to directly query historical sessions in the host process, reusing the existing SQLite FTS5 search engine without decompressing or replaying .jsonl.zstd session archives, thus achieving zero additional memory overhead retrieval.
Core Capabilities¶
- Agent Tool Integration: Provides the
session_searchtool for agents, enabling them to actively retrieve historical conversation context. - Zero Memory Overhead: Directly reuses DeepSeek Harness core’s SQLite FTS5 index without occupying additional memory.
- Standardized Output: Returns formatted text summaries containing session title, ID, date, and best matching snippets.
- Security Mechanism: Built-in 30-second timeout protection, with query results limited to between 1 and 100 items per query.
Installation and Activation¶
Install the plugin using DSH CLI:
dsh plugin --profile web add @goodandready/dsh-session-search
After installation, DeepSeek Harness’s Web Profile must be restarted to activate the patch.
Typical Usage¶
When users ask about historical configurations, agents can call the session_search tool to search. The tool returns text containing title, ID, date, and best matching snippets:
• Session Title [session-id-12345] (2026-09-17)
Context snippet with matching keywords highlighted around occurrence...
• Second Session [session-id-67890] (2026-09-15)
Another snippet from past conversation...
(more results available — refine your query)
If the query has no results or the parameters are invalid, the tool will return corresponding error messages.
Notes¶
- Runtime Environment: This plugin is limited to running in the host process without browser runtime overhead.
- Parameter Limits: The query parameter
limitdefaults to no more than 100, andquerymust be a non-empty string. - Dependency Check: It is recommended to check the source code and license (MIT) before installation.
Summary¶
With dsh-session-search, DeepSeek Harness agents gain the ability to query historical sessions, enabling them to more accurately reference past configurations, code snippets, and decisions without adding extra memory burden.