Introduction¶
When opening a new session in DSH, the context is empty by default. If you want to continue modifying code based on conclusions from a conversation last week, you either have to recite the background from memory or manually reference a specific session in your message. The built-in dsh-session-reference can insert historical session snapshots, but it requires manually writing @[title](dsh-session:<base64url session id>), allows a maximum of 3 references, and relies solely on projected titles to find sessions, with no full-text search capability.
Below is an introduction to the community plugin dsh-recall-sessions (Maintainer: imtwa, Category: Memory): It directly reads DSH’s persisted session logs and projection cache, uses commands or tools to list and load historical sessions by serial number or ID fragment, injects nothing into the prompt by default, and completes single reads in milliseconds.
What is this?¶
dsh-recall-sessions is a Cordis plugin for DeepSeek Harness (MIT, version 0.1.0). Its purpose is to provide lightweight decompression and reading of historical sessions, allowing new sessions to read content from previous sessions when needed. Data comes from files written by DSH itself under the local <DSH_HOME>. It can query existing history immediately after installation and supports Windows / macOS / Linux.
The plugin accesses the disk with the permissions of the current dsh process; please review the GitHub repository source code and license before installing.
Differences from the built-in session-reference¶
| Capability | @deepseek-ai/dsh-session-reference |
dsh-recall-sessions |
|---|---|---|
| Reference Method | Manual session link in message | /recall, natural language + recall_sessions tool |
| Search | Relies on projected titles | By list index or ID fragment |
| Scope | Limited by reference method | Default: current project; /recall all lists all projects on the machine |
| Default Behavior | Inserts only when actively referenced | autoInject: false, loads full text only when specified |
Both can be enabled simultaneously without conflict.
Core Features¶
When autoInject: false (default), the plugin does not inject content into the prompt but provides two entry points:
- Slash command
/recall: Lists available historical sessions (title, last activity time, turns, first question, session id). - Tool
recall_sessions: The model can query on demand; returns a list with no parameters, returns session content withindex/sessionId, and supportsscope: "all"for cross-project access.
Command usage (excerpted from README):
| Entry Point | Function |
|---|---|
/recall |
List historical sessions available in the current project |
/recall all |
List sessions from all projects on the machine |
/recall <index> |
Load the content of the Nth session in the list |
/recall <id fragment> |
Load by ID fragment (e.g., ending in 4e5c-91b4) |
/recall refresh |
Force a re-scan of the disk |
The list contains only metadata for selection and does not include full text, keeping the size very small; logs are decompressed to read full turn text only after a specific session is selected. Loaded results are marked as untrusted historical data for background reference only.
If you need to “automatically include summaries of recent sessions every time the prompt is assembled,” you can set autoInject to true in the profile’s cordis.patch.yml (see Configuration section).
Installation and Activation¶
General steps: Place the repository in a fixed directory, add dependencies and bundles in the profile’s package.json, and restart dsh.
macOS / Linux (Recommended)
cd ~/.dsh/profiles/web
dsh plugin --profile web add link:~/dev/dsh-recall-sessions
Alternatively, manually edit ~/.dsh/profiles/web/package.json, write the link: path under dependencies, add dsh-recall-sessions to dsh.profile.bundles, and then run pnpm install or dsh plugin --profile web install in the profile directory.
Windows
dsh plugin --profile web add link:C:/Users/YourUsername/.dsh/plugins/dsh-recall-sessions
On Windows, it is recommended to place the plugin entity on the system drive: pnpm’s link: may misresolve paths on non-system drives, leading to cannot resolve profile bundle. If modifying source code on another machine, you can use the repository script to sync to the C drive copy:
node scripts/sync.mjs
After modifying the configuration, you can use the following command to check if the bundle is mounted without starting the service:
dsh --profile web --dump-config | grep -A 12 'dsh-recall-sessions'
After restarting dsh, startup logs should show lines such as [dsh-recall-sessions] Registered /recall command and Registered recall_sessions tool.
Compatibility (From source material)
- Tested DSH:
0.2.0-rc.2 - Declared Host:
engines.dsh: >=0.1.0-rc.1 - Node:
>=20.11(depends onzstdDecompressSyncfromnode:zlib) - Cordis:
peerDependencies: @deepseek-ai/cordis ^4.0.1
Typical Usage¶
List View (Current Project)
Enter /recall in a DSH conversation, output looks like:
## Historical sessions available on this machine
### C:\work\my-project
1. Help me add validation to the login page form
2026-10-14 15:24 (17 mins ago) | Turn 1 | session-6213d47e-2a76-4e5c-91b4-b3ccace0c21c
2. What does this error mean
2026-10-12 19:19 (1 day ago) | Turn 3 | session-e8844e24-aeee-4e35-977f-c368137e16be
Usage: Say "Load number N" or provide a session id, and I will read its content; it will not be automatically brought into the context.
Load Specific Session
Enter /recall 2 or /recall 4e5c-91b4, the plugin will read the projection cache and session logs, rendering each turn’s user question and AI reply (subject to character and turn limits). You can also directly say “Load the 2nd historical session” to let the model call recall_sessions.
Cross-Project Browsing
Enter /recall all to list all machine sessions; the tool side can pass scope: "all".
Configuration¶
Override the plugin config in the profile’s cordis.patch.yml. Common items:
| Key | Default | Description |
|---|---|---|
enabled |
true |
Master switch |
autoInject |
false |
Whether to automatically inject historical summaries |
maxListSessions |
20 |
Maximum number of sessions to list |
maxDetailTurns |
30 |
Maximum number of turns to render in details |
maxDetailChars |
1200 |
Character limit per Q&A in details |
includeCurrentSession |
false |
Whether to include the current session |
includeParentCwds |
true |
Whether to include sessions in parent directories |
When autoInject: true, there are also limits like maxSessions, maxTurnsPerSession, maxDigestChars to prevent summaries from bloating the context. Configuration type errors will only trigger a warning and fall back to default values, without causing DSH startup failure.
Use Cases and Notes¶
Who is it for?
- Those who open new sessions frequently in the same repository and need to occasionally retrieve conclusions or error contexts from past conversations.
- Those who don’t want to manually write
dsh-session:links and prefer locating quickly by index or ID fragment. - Those who want to keep the prompt clean by default and only load historical text upon explicit
/recallor tool calls.
Implementation Boundaries (From source material)
- When
autoInject=false, no disk scanning occurs during the startup phase; actual scanning happens during/recallor tool calls. There are timeouts and per-item degradation; if a read fails, it simply drops a record without blocking startup. - Session format relies on
session.v4.jsonl.zstdand projection cacheversion: 7; if DSH changes its disk format generation, the plugin might fail to list or fully read sessions, but this will not cause DSH to fail to start. - Historical content is treated strictly as untrusted data; rendering includes truncation and whitespace collapsing.
The community plugin directory SkillHub dsh-recall-sessions page and the GitHub repository are independent of each other and are not an official DeepSeek / High-Flyer application store; the DSH ecosystem emphasizes “everything is a plugin,” so choose as needed.
Conclusion¶
dsh-recall-sessions fills the gap of “on-demand, searchable, cross-project” reading of local DSH historical sessions: zero injection by default, lightweight list, and full text reading via log decompression only after specification. Install using dsh plugin add link:... under the profile, and use /recall and recall_sessions daily.
- Directory Page: https://www.skillhub.cn/plugins/imtwa/dsh-recall-sessions
- Source Code: https://github.com/imtwa/dsh-recall-sessions