hjqcan/dsh-goodmemory0

dsh-goodmemory

Automatic cross-session GoodMemory recall and writeback for DeepSeek Harness

AI Analysis

核心用途是实现 AI 对话的自动记忆读取与写入。适合需要 AI 在新会话中自动继承和参考历史对话上下文的用户,支持本地管理或外部 API 模式。

Package
dsh-goodmemory
Version
0.1.0
License
MIT
Last updated
Aug 15, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:hjqcan/dsh-goodmemory

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-step batch contains direct source.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.