dsh-history-search
IdentifiedAdds one agent tool (read-only on your transcripts) that searches Claude Code, Codex and DSH session transcripts and returns each match with its resume command. Needs ripgrep (rg) and zstd (zstdcat) o
dsh-history-search
A DeepSeek Harness plugin that gives the agent one search tool over the transcript stores of three CLI agents:
| Source | Store |
|---|---|
| Claude Code | ~/.claude/projects/**/*.jsonl |
| Codex | ~/.codex/sessions/**/rollout-*.jsonl |
| DeepSeek Harness | ~/.dsh/sessions/**/session.*.jsonl* |
The tool is read-only. It returns the newest matching sessions with excerpts,
working directories, and the command that resumes each session
(claude --resume, codex resume, dsh tui --resume).
Install
dsh plugin --profile web add github:mkpoli/dsh-history-search
Restart the host afterwards. The plugin declares its bundle patch in
cordis.patch.yml, so mounting it adds one history-search row with default
configuration.
Use
Ask the agent to search earlier work, for example:
Search my history for the spectrogram rendering fix.
The model calls history_search with:
| Argument | Meaning |
|---|---|
query | Literal words; every word must appear in the same transcript record. |
source | all (default), claude, codex, or dsh. |
project | Case-insensitive substring of the session working directory. |
limit | 1–30 sessions, newest first. Default 8. |
Matching is case-insensitive. A multi-word query requires all words on one record, which keeps results focused on messages that discuss the whole phrase.
How it reads each store
Claude Code and Codex are searched in place with ripgrep, so results always reflect the current files.
DeepSeek Harness appends one zstd frame per batch to each session log. Node's
zstdDecompressSync stops after the first frame, so the plugin decompresses
each log once with zstdcat into ~/.dsh/cache/history-search/dsh/ and
refreshes an entry only when its size or mtime changes. The cache holds plain
JSONL, is created with owner-only permissions, and mirrors live sessions as
they are written. Delete ~/.dsh/cache/history-search to reclaim the space;
the next search rebuilds it (about 10 seconds for a few hundred sessions).
Requirements
ripgrep(rg) on the server'sPATH.zstdcatfrom thezstdpackage on the server'sPATH.
Both are reported as tool errors when missing.
Limits
- Searches record text found in messages, reasoning, tool input, and tool output. Base64 attachments and other binary payloads are skipped.
- Subagent sidechains are included; their resume command points at the parent session.
- Older DeepSeek Harness sessions keep their historical id, which may carry a
session-prefix.
Versions
| Latest version | Published | Size |
|---|---|---|
| 0.1.0 | — | — |
Comments
Loading…
Similar plugins
by wanetcn
DeepSeek Harness 高级搜索插件:按关键字搜索所有会话 + Claude Code / Codex / ZCode 等 agent 历史记录,工作区搜索按钮、会话跳转,内置 MCP 让 agent 自己检索历史
★ 0
MIT
JavaScript
Sep 29, 2026
dsh plugin --profile web add dsh-advancesearchby 240xu
Cross-session full-text search over persisted DSH session logs: builds an incremental message-level index and returns sessionId, seq, and a short excerpt; exposes an agent tool and a standalone panel.
★ 0
JavaScript
Oct 21, 2026
dsh plugin --profile web add @240xu/dsh-session-searchby RUI-debug769
Runs a Claude Code project's .claude/ slash commands and permissions.deny rules inside DeepSeek Harness. Command bodies expand $ARGUMENTS, positional arguments and @file references into the agent's ne
★ 0
MIT
TypeScript
Oct 19, 2026
dsh plugin --profile web add dsh-dotclaudeby chameleonn4
DSH 插件:自动读取本地 Codex 会话历史,让 DeepSeek Harness 与 Codex 无缝衔接
★ 3
MIT
JavaScript
Oct 27, 2026
dsh plugin --profile web add dsh-codex-historyby ciskonc
Claude Code-style @path imports for DeepSeek Harness: expands @imports in AGENTS.md/CLAUDE.md and injects referenced files into context at session start
★ 6
↓ 790/wk
MIT
TypeScript
Oct 24, 2026
dsh plugin --profile web add dsh-context-importsby honyKing
DSH 上下文存档与历史检索插件:自动压缩前把会话完整存档(zstd 解码为可读 jsonl + 摘要),压缩后按需全文检索历史对话。内置 archive_session / search_archive 工具与打包技能,dsh plugin add 一键安装。
★ 0
MIT
Python
Aug 23, 2026
dsh plugin --profile web add dsh-session-archive-plugin