すべてのプラグイン

dsh-cc-auto-memory

dsh-cc-auto-memory · バージョン 0.1.4 · 2026/11/29 更新

Claude Code の自動メモリを DSH で使えるようにします。セッション開始時にメモリの説明と MEMORY.md の索引を自動で挿入し、モデルが読み取り・書き込み・編集ツールでメモリファイルを管理します。形式は Claude Code と互換性があります。

  • バージョンごとに審査
  • メモリー
  • MIT
  • 0回ダウンロード

説明

以下はプラグイン作者による原文です。

dsh-cc-auto-memory

Claude Code's auto memory, packaged as a lightweight plugin for DeepSeek Harness (DSH): persistent, file-based memory.

npm dsh license English 简体中文

At the start of each session, memory-usage instructions and the MEMORY.md index are injected automatically; the model manages memory files with the plain read / write / edit tools — no dedicated memory tools are registered. The on-disk format is identical to Claude Code's, so memories are directly interoperable between the two (claude mode even shares the exact same directory).

Works with DSH 0.2.2-rc.2 and later 0.2.x releases.

Installation

Web:

sole plugin --profile web add dsh-cc-auto-memory
sole plugin --profile web update dsh-cc-auto-memory

Desktop:

sole plugin --profile desktop add dsh-cc-auto-memory
sole plugin --profile desktop update dsh-cc-auto-memory

Mechanism

A faithful port of Claude Code's native auto memory — see the official docs for the original mechanism. Per session it works like this:

session start
    │
    ▼
host injects into the system prompt:
  • Memory usage instructions (with the memory dir path)
  • MEMORY.md index — first 200 lines / 25 KB
    │
    │   the model manages memory with the
    ▼   plain read / write / edit tools
memory dir — one per git repo
  MEMORY.md     ← index: one line per memory
  <topic>.md    ← one memory per file
    │
    │   after each write/edit, the host backstops:
    ▼   `modified` timestamp · index size limits
next session recalls the refreshed index … loop
  • Subagent sessions get no main-session memory injected (same as Claude Code).
  • Project resolution: git repository root (cwd when outside a repo), every character outside [A-Za-z0-9] replaced by - in the slug (Claude Code's rule); one shared memory per repository.

Viewer panel

Settings → Auto Memory (read-only viewing; editing/creating/deleting is left to the agent's file tools during a session):

  • Storage mode: two mode cards (dsh standalone directory / claude reuse) plus an "Apply switch" button — switching only takes effect for new sessions:

    • dsh (default): $DSH_HOME/projects/<slug>/memory/
    • claude: ~/.claude/projects/<slug>/memory/ (CLAUDE_CONFIG_DIR respected) — shares the same memory with Claude Code, interoperable both ways

    In claude mode, the model's write/edit calls into ~/.claude/ fall outside the session workspace and trigger approvals per the session sandbox policy — this is expected.

  • Project list filtered by the active mode: dsh mode shows only projects under $DSH_HOME; claude mode shows only projects under ~/.claude

  • Memory table: click any row to open a floating card showing the raw file content (plain text, Markdown not rendered); Esc or clicking the overlay closes it

Configuration

cordis.patch.yml can be overridden at the user layer:

FieldDefaultDescription
modedshStorage mode dsh / claude
claudeConfigDir''Claude Code config root for claude mode; empty = $CLAUDE_CONFIG_DIR or ~/.claude
maxIndexLines200Line limit when reading MEMORY.md
maxIndexBytes25600Byte limit when reading MEMORY.md

License

MIT

バージョン履歴

  • 0.1.42026/11/29 · 161 KB
dsh-cc-auto-memory · SoleAPI Agent プラグイン | SoleAPI