dsh-context-kb
IdentifiedTurn long conversations into a searchable per-project memory of raw text, conclusion indexes pinned to exact lines, and pitfalls, so a model that lost its context can still find the original decision
dsh-context-kb
A context knowledge base for DeepSeek Harness. It keeps the raw conversation text, conclusion indexes that point at exact lines, pitfalls, and tool-usage notes in a per-project store, and exposes them to the model as kb_* tools.
The backend is the bundled why774/context-kb command line (vendor/kb/), executed with the local Python 3 interpreter. Nothing leaves the machine.
Tools
| Tool | Purpose |
|---|---|
kb_log | Append raw text to the project knowledge base (initialized on first call) |
kb_seal | Seal the current segment: move its raw text from session/ to archive/ |
kb_index | Write a conclusion index for a sealed segment, optionally pinned to a line range |
kb_search | Search conclusion indexes first, then dig into raw text; long searches the cross-conversation store |
kb_read | Read raw text by coordinate, e.g. archive/T-20261120-001-p1.md:5 |
kb_context | Tiered context assembly: raw text nearby, summaries further back, pointers far away |
kb_hot | The hottest entries for the project (or long for the global store) |
kb_stats | Counts plus a project-directory sanity check |
kb_close | Close the conversation and merge the short-term store into ~/.context-kb |
Storage:
<project>/.context-kb/talks/<talk id>/— short-term store, one per conversation; commit it with the project~/.context-kb/— the long-term store, one per machine
Requirements
- Python 3. Interpreter lookup order:
DSH_CONTEXT_KB_PYTHON, then the DSH runtime under$DSH_HOME/dsh-runtimes/*/dependencies/python, thenpython3/pythononPATH. - DSH 0.2.x.
Optional environment variables: DSH_CONTEXT_KB_PYTHON (interpreter path) and DSH_CONTEXT_KB_TIMEOUT (per-command timeout in milliseconds, default 60000).
Limitations
- The short-term store's "current conversation" is tracked per project directory via
.context-kb/current. Parallel DSH sessions on the same project share one segment until you seal it. - The bundled CLI prints hints such as
python scripts/kb.py ...; the plugin appends a note so the model uses thekb_*tools instead. - Text memory only — it does not resolve code symbols to definitions.
License
MIT. vendor/kb/ is taken from why774/context-kb, also MIT.
Comments
Loading…
Similar plugins
by ScreamingMaggot
把长对话的重复计费砍掉一半,并给模型配一名只读调查员:先核实,后动手。面向 DeepSeek Harness 的上下文压缩与外置推理插件(MIT)。
★ 1
MIT
JavaScript
Oct 22, 2026
dsh plugin --profile web add rcs-contextby dogbotowo-oss
Long-conversation memory for DeepSeek Harness (DSH): keeps settled decisions, user corrections and exact numbers, with their conditions and sources, available across compaction and restarts in 100-100
★ 1
MIT
JavaScript
Oct 31, 2026
dsh plugin --profile web add dsh-long-memoryby Relistencode
Conversation history recall for DeepSeek Harness (DSH) — literal/fuzzy/semantic retrieval of every past conversation, fully local & offline. AI never forgets what you told it.
★ 4
↓ 301/wk
MIT
JavaScript
Aug 16, 2026
dsh plugin --profile web add dsh-recallPersistent project memory, event-sourced task lifecycle, context budgeting, and cooperative multi-agent handoffs.
★ 0
↓ 67/wk
dsh plugin --profile web add dsh-continuumCross-session event-cue memory for DeepSeek Harness: auto-extracts task/conversation cues and user language habits from every turn into a persistent global cue bank, then re-injects remembered context
★ 0
dsh plugin --profile web add dsh-cue-bankby kkwings
该仓库暂未提供项目说明。
★ 1
MIT
JavaScript
Oct 12, 2026
dsh plugin --profile web add dsh-super-memory