nuwa-skill
alchaincyf
你想蒸馏的下一个员工,何必是同事。蒸馏任何人的思维方式——心智模型、决策启发式、表达DNA。Distill how anyone thinks.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:miguelangelnieto/dsh-memory
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Durable notes that follow you across chats. Every new session receives a Long-term memory system-prompt section with the notes for its workspace and the global notes, so the assistant starts with what earlier sessions learned instead of rediscovering it. The assistant decides when a fact is worth keeping; you can also manage the same notes in Settings → Memory.
Add this directory as a profile bundle: Plugins → Add plugin in the app, or
ask the agent to run the plugin_manager tool with install_bundle and this
directory's absolute path.
Either route installs the package and selects the bundle. Installing the package
alone with pnpm (dsh plugin --profile <profile> add <dir>) is not enough: the
bundle must also be listed under dsh.profile.bundles in the profile's
package.json, which is what the two routes above do.
The package deliberately keeps the local name @local/dsh-memory; rename it before
publishing to a registry. It installs the row dsh-memory, so the feature can be
disabled from Plugins without uninstalling the package.
Refresh the Web page once after installing so its client bundle is fetched.
It is plain JavaScript with no build step, and was tested with DeepSeek Harness 0.2.2-rc.2.
Open Settings → Memory to:
The page lists workspaces that already have notes. A workspace first appears after the assistant saves a note there; once present, use its + to add more notes from this page. Notes can be edited and deleted here, but not moved between scopes; delete and recreate a note to move it.
The page reads and writes through an authenticated route that uses the same browser authentication as the Harness API. An unauthenticated request is rejected.
Ask naturally, for example:
pnpm test."The assistant saves durable facts with memory_save, searches with memory_search, and reads a full note with memory_get when a result is clipped.
| Tool | Purpose |
|---|---|
memory_save |
Save a note, or update one with the same title and scope. Omitting tags keeps the existing tags. |
memory_search |
Search titles, content, and tags; an empty query lists the newest notes. |
memory_get |
Read one note in full by id when a search or digest result is clipped. |
memory_forget |
Delete a note by id or exact title. Deletion is permanent. auto tries the workspace, then global. |
Notes are JSON files under ~/.dsh/memory, or under $DSH_HOME/memory when DSH_HOME is set:
global/ holds notes visible in every chat.projects/<workspace>-<hash>/ holds notes for one absolute working directory.Directories are created owner-only (0700); note files are 0600.
scope: "auto" on memory_save (the default) saves into the current workspace when one exists and into global/ otherwise. Use scope: "global" for user-wide preferences, DeepSeek Harness tool usage, and environment knowledge that should follow every chat; use scope: "project" for facts tied to this workspace. The system prompt shows the current workspace's notes first, then the global notes.
memory_forget with scope: "auto" tries the current workspace first, then global, so a note found in either scope can be deleted without repeating the scope.
The memory section is part of the system prompt, not a user message. It repeats on each request and stays stable while the notes are unchanged. Workspace notes appear before global notes, newest first. Notes are reference material from earlier chats, not instructions.
The Memory page manages notes, not plugin configuration. To change defaults, override the plugin row in the profile's patch file, $DSH_HOME/profiles/<profile>/cordis.patch.yml:
- id: dsh-memory
name: '@local/dsh-memory'
config:
directory: '~/.dsh/memory'
maxPromptChars: 12000
maxNoteChars: 3000
| Field | Default | Meaning |
|---|---|---|
directory |
$DSH_HOME/memory |
Memory root; ~ is expanded. Must be a non-empty string. |
maxPromptChars |
12000 |
Maximum characters of notes in the prompt section (2000-60000). |
maxNoteChars |
3000 |
Maximum characters of one note in the prompt section (200-20000). |
memory_save.maxNoteChars, and memory_search clips each result at 4,000 characters with at most 20,000 characters of note text across the results; call memory_get for the full text.Disable or remove the plugin in Plugins; the tools, prompt section, and Settings → Memory page disappear, and existing files stay on disk. Delete ~/.dsh/memory (or the configured directory) to remove the notes themselves.
MIT — see LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: ai-agent、memory。