rasyidmmz/dsh-ai-memory ↗★ 0

dsh-ai-memory

在会话结束时同步AI记忆到知识库 适合需要将DSH会话观察沉淀为可检索Wiki页面的用户。

套件
dsh-ai-memory
相容性
待驗證
版本
1.0.1
授權
MIT
最近更新
2026年9月24日

同名套件的其他儲存庫

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:rasyidmmz/dsh-ai-memory

Configuration

Optional. The defaults are correct for a standard ai-memory install, and the plugin behaves identically with no config: block at all.

- insert:
    - id: ai-memory
      name: dsh-ai-memory
      config:
        exePath: /usr/local/bin/ai-memory   # default: platform standard location
        dataDir: /home/me/.local/share/ai-memory  # default: let the CLI decide
        agentKind: claude-code              # default: claude-code
        sweep: true                         # default: true
        preflight: true                     # default: true
        timeoutMs: 120000                   # default: 120000
KeyDefaultMeaning
exePathWindows: %LOCALAPPDATA%\Programs\ai-memory\ai-memory.exe; elsewhere: ai-memory from PATHPath to the ai-memory executable.
dataDirunsetai-memory data directory. Leave unset unless you use a non-standard location; the CLI then resolves its own, which is what the hooks use.
agentKindclaude-codeThe agent kind recorded in ai-memory's store. See the note below — this is not a free choice.
sweeptrueThe abandoned-session safety net. Set false to disable it entirely.
preflighttrueLog one line at startup naming the ai-memory version, data directory, and server it found.
timeoutMs120000Per-finalize-session timeout.

Why agentKind should stay claude-code

ai-memory recognises a fixed set of agent kinds — claude-code, codex, cursor, open-code, opencode2, pi, omp, zero, kiro-cli, pool, zcode — and rejects anything else outright. There is no dsh kind.

DSH reaches ai-memory through the Claude Code hook bridge, so every captured DSH session is stored as claude-code. That is simply what the store contains, and finalize-session must be told to look there. Passing anything else — including the CLI's own default, which is codex — will match no session ever.