dsh-goodmemory
为 DeepSeek Harness 提供自动跨会话的 GoodMemory 记忆召回与回写功能。
AI 分析
核心用途是实现 AI 对话的自动记忆读取与写入。适合需要 AI 在新会话中自动继承和参考历史对话上下文的用户,支持本地管理或外部 API 模式。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:hjqcan/dsh-goodmemory说明文档
阅读完整 README ↗Behavior and configuration
type Config = {
recall?: boolean // default true
writeback?: boolean // default true
maxRecallTokens?: number // default 256
requestTimeoutMs?: number // default 10000
scope?: {
userId?: string
workspaceId?: string | null
agentId?: string | null
}
} & (
| { mode?: 'managed'; databasePath?: string; startupTimeoutMs?: number }
| { mode: 'external'; baseUrl: string; tokenEnv?: string }
)
- Recall runs only when the final
agent/pre-stepbatch contains directsource.kind === "user"text. Tool-only continuations and plugin context do not trigger another lookup. - Completed-turn writeback contains all direct user text and the final assistant text. Tool calls/results, reasoning, images, recalled memory, and other injected context are excluded.
- Writeback uses GoodMemory's normal extraction and policy. The plugin sends no annotations and does not force content to become durable memory.
- Runtime recall/writeback failures are logged with phase, session, and turn identity, then the DSH turn continues. Startup failures remain fatal.
- The next recall for the same durable scope waits for pending writeback, including a new session created immediately after the preceding turn.