nuwa-skill
alchaincyf
你想蒸馏的下一个员工,何必是同事。蒸馏任何人的思维方式——心智模型、决策启发式、表达DNA。Distill how anyone thinks.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:yyq1025/cc-mem
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
One memory for all your coding agents. Plugins for pi, OpenCode and DeepSeek Harness read and write the auto memory Claude Code already keeps, so every agent you use on a project works from the same notes.
Claude Code saves what it learns about you and your project to ~/.claude/projects/<project>/memory. Other agents start every session blank, and memory tools built for them keep a store of their own that you then have to fill, sync or migrate. cc-mem skips that: the other agents use Claude Code's memory directly, and what one of them saves, Claude Code recalls in its next session, and the other way round.
autoMemoryDirectory; CLAUDE_CONFIG_DIR; the long-path hash. MEMORY.md is loaded within Claude Code's limits of 200 lines and 25,000 characters. Notes are written in Claude Code's own format.memory_write creates a file and never overwrites one.memory_edit makes one exact replacement and can rename a file.memory_delete removes one named memory file at a time and never MEMORY.md, so a mistaken delete cannot take the index or the whole directory with it.metadata.source, modifiedBy) and when.| Agent | Command |
|---|---|
| pi | pi install npm:@cc-mem/pi |
| OpenCode 2.2+ | opencode plugin add @cc-mem/opencode |
| DeepSeek Harness 0.2.1+ | dsh plugin --profile <profile> add @cc-mem/dsh (the desktop app's profile is desktop) |
Start a new session afterwards. Claude Code needs nothing: it already reads and writes the same directory.
| Tool | What it does |
|---|---|
memory_list(project) |
Returns the notes for another project directory; the working directory's are already in the prompt |
memory_write(file_name, content) |
Creates a memory file, or MEMORY.md when there is none |
memory_edit(file_name, old_string?, new_string?, replace_all?, new_file_name?) |
Replaces text exactly in a memory file or MEMORY.md, renames a memory file, or both |
memory_delete(file_name) |
Deletes one memory file; MEMORY.md cannot be deleted |
Agents read memory files with their own file tools. They maintain MEMORY.md themselves, one line per memory, as Claude Code's model does.
There is none of its own: cc-mem follows Claude Code's settings and environment.
| Setting | Effect |
|---|---|
autoMemoryDirectory in user, local or managed settings |
Moves the memory directory, as in Claude Code. Project settings are ignored, as in Claude Code, so a cloned repository cannot redirect it |
CLAUDE_CONFIG_DIR |
Moves the whole Claude configuration, memory included |
autoMemoryEnabled: false, CLAUDE_CODE_DISABLE_AUTO_MEMORY=1 |
Auto memory is off: the agents are told so, and writes are refused |
Print a project's memory index, for scripts or hooks:
npx @cc-mem/core index --project <dir>
Version 0.2.2, on npm under @cc-mem. Tested with pi 1.4.0, OpenCode 2.2.0 and DeepSeek Harness 0.2.1-rc.3 running DeepSeek V4.1 Flash, against Claude Code 2.1.312. The design, and how each agent behaved in the tests, are in docs/design.md. An earlier version was a Go MCP server.
MIT. Not affiliated with or endorsed by Anthropic. "Claude" and "Claude Code" are trademarks of Anthropic.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: memory。