nuwa-skill
alchaincyf
你想蒸馏的下一个员工,何必是同事。蒸馏任何人的思维方式——心智模型、决策启发式、表达DNA。Distill how anyone thinks.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Libraqg/dsh-memories
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 中文
Long-term memory for DeepSeek Harness (dsh).
New sessions start knowing your preferences, your projects and what worked last time.
dsh-memories reads your finished sessions in the background, keeps what is worth remembering, and gives every new agent a short memory summary plus tools to look up the details. It is a port of the memory pipeline in OpenAI Codex, with the same prompts, limits and file layout.
[!WARNING] Beta. This is an early release, tested by one person on macOS with a release candidate of dsh. Expect bugs, and expect behaviour and settings to change between versions. Please report problems in Issues.
Requires dsh 0.2.2-rc.1 or a later 0.2.x release, Node.js 24.9 or later (the
version dsh needs) and git on your PATH.
dsh plugin --profile web add @libraqg/dsh-memories
From GitHub source instead of npm:
dsh plugin --profile web add github:Libraqg/dsh-memories
From a local checkout:
git clone https://github.com/Libraqg/dsh-memories
cd dsh-memories && npm install
dsh plugin --profile web add link:/absolute/path/to/dsh-memories
In the desktop app, add the plugin from its plugin manager instead; the desktop profile is managed by the app. Restart dsh after installing.
Nothing to do: keep using dsh. Memory builds up on its own.
So the first memories appear about 6 hours after your first sessions, not right away.
Open the plugin's settings in the plugin manager. Pick an extraction model (runs once for each idle session, a fast model is enough) and a consolidation model (runs the merge, a stronger model helps). Changes apply without a restart.
| Setting | Default |
|---|---|
| Extraction model | deepseek-official / deepseek-flash |
| Consolidation model | deepseek-official / deepseek-v4-pro |
Any provider configured in dsh works, including a signed-in subscription.
/memories command| Command | What it does |
|---|---|
/memories or /memories status |
Models, number of stored memories, failed jobs and the last merge |
/memories path |
Where the memory folder is |
/memories model list |
Providers and models you can choose |
/memories model set <extract\|consolidation> <provider> <model> [effort] |
Change a model |
/memories model clear <extract\|consolidation> |
Go back to the default model |
/memories reset --confirm |
Delete every stored memory |
The memory folder is plain Markdown; you can read it and delete files in it.
memory_summary.md is what new agents see; MEMORY.md is the full handbook.
Other options go in the plugin's row of the profile's cordis.patch.yml.
| Option | Default | Meaning |
|---|---|---|
memoryRoot |
$DSH_HOME/memories (~/.dsh/memories) |
Memory folder. Must be a folder used only by this plugin: it replaces any .git in it, removes symlinks and /memories reset deletes everything in it |
stateDbPath |
beside the memory folder | SQLite state database |
generateMemories |
true |
Extract and merge new memories |
useMemories |
true |
Give agents the summary and the memory tools |
externalKnowledge |
off | Keep a knowledge base out of memory, see below |
maxRolloutsPerStartup |
2 |
Sessions extracted per pass |
minRolloutIdleHours |
6 |
Idle time before a session is extracted |
maxRolloutAgeDays |
10 |
Older sessions are skipped |
maxRawMemoriesForConsolidation |
256 |
Memories considered by each merge |
maxUnusedDays |
30 |
Unused memories are dropped after this |
If your agents read a hand-maintained notes folder (an Obsidian vault, say), its content would otherwise be copied into memory. Point the filter at it:
- id: memories
name: '@libraqg/dsh-memories'
config:
externalKnowledge:
root: ~/Documents/Notes
sessionExcludedPaths:
- personal
Content read from root is replaced with a placeholder before extraction.
A session that reads anything under sessionExcludedPaths is left out of
memory entirely, and its earlier memories are dropped at the next merge.
| Piece | What it does |
|---|---|
| Extraction | Filters and redacts a session, then asks the extraction model for a raw memory and a summary, or nothing if the session holds no lasting signal |
| Consolidation | A hidden agent, limited to five file tools inside the memory folder, merges the changes since the last merge into MEMORY.md, memory_summary.md and skills/ |
| Read path | A system-prompt section with the summary (up to 2,500 tokens), plus the tools memories_list, memories_read, memories_search, memories_add_ad_hoc_note |
| Storage | The memory folder (Markdown, tracked by a private git baseline) and a SQLite job database |
See docs/DESIGN.md for the design and every difference from Codex.
.lock file next to
it and the state database with its -wal and -shm files. The
consolidation agent's file tools refuse any path outside the memory folder
and inside its .git; its other tools are disabled.git on the memory folder only, without your git
config or hooks./memories command, a settings page, and one hidden subagent session per
merge.npm install
npm test
core/ must not depend on dsh; npm test runs scripts/check-boundaries.js
to enforce it.
Apache-2.0. dsh-memories is a port of the memory pipeline of OpenAI Codex, Copyright 2025 OpenAI; NOTICE.md records what changed.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: memory。