yyq1025/cc-mem--packages-dsh ↗★ 1

@cc-mem/dsh

Claude Code's auto memory in DeepSeek Harness: the index in every request, and tools to write and edit it

包名
@cc-mem/dsh
兼容性
待验证
Harness 依赖范围
>=0.2.1-0
Cordis 依赖范围
*
版本
0.2.2
许可证
MIT
最近更新
2026年10月28日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add 'github:yyq1025/cc-mem#059bd31aacd68c5f52c0f73390962bce179236ec&path:packages/dsh'

@cc-mem/dsh

Gives DeepSeek Harness the auto memory Claude Code already keeps for your projects, so DeepSeek Harness, Claude Code and your other agents work from the same notes. What it saves, Claude Code recalls in its next session, and the other way round.

dsh plugin --profile 
 add @cc-mem/dsh

The desktop app's profile is desktop. Needs DeepSeek Harness 0.2.1 or later; restart it afterwards.

What it does

  • Puts the MEMORY.md index for each session's working directory into the runtime context when a session starts, and reads it again after each compaction or a change of directory. The directory is the one Claude Code uses, ~/.claude/projects/ /memory by default. One Harness host serves many workspaces, so the directory comes from each session, not from the process.
  • Registers four tools:
    • memory_list(project) returns the notes of another project directory.
    • memory_write(file_name, content) creates a memory file, or MEMORY.md, and never overwrites one.
    • memory_edit(file_name, …) replaces text exactly, renames a memory file, or both.
    • memory_delete(file_name) deletes one memory file; it cannot delete MEMORY.md.
  • Records source: dsh in the files it writes and modifiedBy: dsh in the files it changes.

The agent reads memory files with its own file tools. It keeps MEMORY.md up to date itself, one line per memory, as Claude Code's model does.

The plugin follows Claude Code's settings: autoMemoryDirectory, CLAUDE_CONFIG_DIR, and turning auto memory off with autoMemoryEnabled: false or CLAUDE_CODE_DISABLE_AUTO_MEMORY=1. When auto memory is off, the agent is told so and writes are refused.

Part of cc-mem, with plugins for pi and OpenCode.

License

MIT. Not affiliated with or endorsed by Anthropic. "Claude" and "Claude Code" are trademarks of Anthropic.