TencentDB Agent Memory integration with conversation capture, structured memory extraction, automatic recall, and memory and conversation search tools.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-tdai-memory
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:Scorp1o117/dsh-tdai-memory
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
简体中文 | English
Bring TencentDB Agent Memory's layered memory system to DeepSeek Harness: capture conversations, extract structured memories and retrieve relevant context in later conversations. This project adapts the original OpenClaw plugin's core to DSH.
Features
| Layer | Purpose |
|---|---|
| L0 | Capture raw conversations for later search |
| L1 | Use an extraction model to organize facts, preferences and events |
| L2 / L3 | Produce scene information and a user profile |
| Recall and search | Retrieve relevant memory for the current message; expose tdai_memory_search and tdai_conversation_search |
Data defaults to ~/.memory-tencentdb/memory-tdai, allowing existing data in that directory to be reused. Capture, extraction and recall depend on enabled settings, model connections and retrieval results; saving or recalling every detail is not guaranteed.
Compatibility and installation
DSH Web / Desktop accepts host versions from 0.2.0-rc.2 onward at startup, including future prereleases. See package.json for the compatibility declaration. Node.js >=22.18 is required.
For Desktop, install its dsh command through Application → Manage dsh Command first:
dsh plugin --profile desktop add dsh-tdai-memory
Replace desktop with web for Web. Restart DSH and open Plugins → Installed → dsh-tdai-memory. You can also install it through the Enhancement Suite.
Quick setup
- Configure an OpenAI-compatible LLM address, model and key for memory extraction.
- Configure an OpenAI-compatible embedding address, model and dimensions. The default
http://127.0.0.1:8088/v1is a configuration value, not an included service; provide a working embedding service yourself. - Select Automatic memory, save and restart DSH to apply pipeline changes.
- After a conversation, ask the Agent to search memory or check the plugin logs for extraction and tool registration.
| Mode | Capture | Extraction | Automatic recall | Search tools |
|---|---|---|---|---|
| Automatic memory | On | On | On | On |
| Search existing memory only | Off | Off | Off | On |
| Pause memory features | Off | Off | Off | Off |
Advanced settings expose individual switches, storage location and tuning. Existing mixed settings appear as a custom combination and are not overwritten automatically. The search-tool switch applies immediately; restart as prompted for other pipeline changes. The form writes edited fields only and retains unchanged keys.
Usage notes
- The extraction model needs to produce reliable structured output. Extraction runs in the background; latency and quality depend on the model and service.
- LLM deduplication is off by default. The default embedding configuration points to a local OpenAI-compatible endpoint; remote compatible endpoints do not require
node-llama-cpp. For the fully local embedding backend, install and approve the optionalnode-llama-cppbuild in the target profile separately. - If search tools are missing, check that they are enabled and look for
[tdai-memory] tools registeredin the logs. The interface follows the DSH language setting. - Captured conversations and memories are stored locally; extraction and embedding requests go to your configured services. Choose appropriate endpoints and back up your data.
Development, attribution and feedback
- The historical detailed documentation preserves architecture, configuration examples and older notes; its install commands and compatibility information may be outdated.
- This project ports TencentDB Agent Memory. See the corresponding directories for third-party code and license notices included with the repository.
- npm · Issues · MIT License
Links
More in this category
vectorize-io/hindsight#coding-agents★ 64676
Hindsight, agent memory that learns: long-term project memory with auto recall and retain, knowledge pages, deep reflection, and per-repo memory banks.
volcengine/OpenViking#examples/dsh-memory-plugin★ 43185
OpenViking memory and context bundle for DeepSeek Harness: pre-step auto-recall and profile injection, session capture, `viking://` URI guarding, and recall/write memory tools backed by an OpenViking server.
MemTensor/MemOS#memos-local-plugin★ 12573
Local-first memory plugin for DeepSeek Harness: layered L1/L2/L3 memory with automatic capture, manual memos_* retrieval tools, and a built-in memory viewer.
agentscope-ai/ReMe#dsh★ 3888
Connects DeepSeek Harness to ReMe's local-first, self-evolving personal knowledge base: automatically captures completed main-agent conversations as user-owned Markdown memory, searches conversations and source material through reme_search with BM25, optional embeddings, and wikilink expansion, and schedules daily memory consolidation.
zilliztech/memsearch#MemSearch★ 2993
Shared Markdown memory for DSH and other coding agents, with automatic capture, pre-step context injection, searchable recall, and memory-to-skill self-evolution through a review panel.
vshulcz/deja-vu#extensions/dsh★ 1734
Cross-session memory and context recovery across forty-five other coding agents (45+) on this machine, reading session files they already wrote before install (Claude Code, Codex, Cursor, Windsurf, Trae, Antigravity, VS Code Copilot Chat, opencode, OpenClaw, Hermes, Kimi, Qoder, Cline, Zed, Magpie and more): six tools (deja_recall, deja_session, deja_blame, deja_fix, deja_how, deja_remember), a /deja command, and optional automatic recall injected into runtime context. Local BM25 CLI/MCP index, no LLM, no embeddings, no network (dsh plugin --profile web add dsh-deja).
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.