Introduction¶
When collaborating with AI in DeepSeek Harness (DSH), common pain points include: switching sessions or returning after several days, only to find the model doesn’t remember your preferences, project conventions, or the conclusions from last time; and when running multiple projects in parallel, to-dos and progress can easily get scattered across conversations. The community plugin @yyfather/dsh-memory (GitHub: YYfather/DSH-memory) provides tiered long-term memory, to-dos, skills, memory synchronization, multi-session collaboration, and external AI dispatch capabilities on DSH. It aims to weave “remember, manage, and collaborate” into a single workflow without losing context.
This fork is published by maintainer YYfather and is based on the upstream csyangwen/dsh-memory-evolve (MIT), with DSH 0.2.0-rc.2 compatibility adaptations. No features have been removed; the memory directory remains <DSH_HOME>/memories, compatible with upstream data.
What Is This¶
In one sentence: It gives AI in DSH long-term cross-session memory, with support for to-dos, skills, multi-session rooms, external CLI agent dispatch, and git memory synchronization extensions.
| Item | Description |
|---|---|
| npm package name | @yyfather/dsh-memory (package.json version 0.2.0) |
| Category | Memory |
| License | MIT (upstream copyright notice preserved) |
| Directory page | https://www.skillhub.cn/plugins/YYfather/DSH-memory |
| Source code | https://github.com/YYfather/DSH-memory |
After installation, the session interface will show additional tabs related to memory, skills, to-dos, COI scheduling, memory synchronization, and more; the AI side will gain tools for memory read/write, to-dos, skill management, session orchestration, external dispatch, etc. Many features are disabled by default and can be enabled as needed in “Memory Evolve Settings.”
Core Features¶
The following are derived from the project README and package.json descriptions, organized by capability.
Five-Track Long-Term Memory¶
- User Profile: Preferences, habits, etc., injected into context every turn.
- Global Facts: Long-term knowledge about environment, tools, conventions, etc.
- Project Key Memories: Conventions, decisions, architecture, etc. for the current project; important conclusions can be marked to be effective only on a specific git branch; writing requires user confirmation, and AI will not apply changes without approval.
- Project Log / Daily Log: Automatically records progress each turn, can be read as needed.
Natural language such as “Note this: the deployment port for this project is 8080” enters the confirmation flow; across sessions, you can ask AI to “check memory” to pick up from previous conclusions. Emotional feedback can be recorded in logs (with 【反馈】 lines), making it easier to later ask AI to analyze recent satisfaction/dissatisfaction points.
To-Dos and Project Isolation¶
Four-track to-dos: Life / Work / Project / Daily. The “Project” track is isolated by working directory. Supports important/urgent flags and due dates; project logs can carry [git branch] markers.
Local File Search¶
Can search local documents by filename or content, making it easy to answer questions like “which document mentioned XX.”
Multi-Session Collaboration (Internal Team)¶
The main session can create multiple sub-sessions and pull them into collaboration rooms; member status and room messages (with images) are visible; you can declare which files will be modified to reduce parallel code conflicts; when the DSH process stays running, the main session can wake idle sessions to continue assigning tasks.
External AI Agents (COI Scheduling)¶
Can dispatch tasks asynchronously to external agents like Kimi / Codex / Grok / Hermes without blocking the current session; progress can be viewed in COI scheduling; dispatch can carry project memory and prompts; upon completion, summaries can be written to project logs and today’s log.
Prompt Injection¶
Prompt library supports categorization, search, enable/disable; AI or users can inject paradigms like “code review checklist”; sub-sessions and external dispatch can also carry the same set of standards.
Bookmarks, Branching, and Context Usage¶
Supports turn bookmarks and branching from any intermediate turn (takes over the official mid-turn branch entry); the input box ring displays context usage (≥30% yellow, ≥40% red) to help decide when to bookmark or start a new session.
Memory Synchronization (git)¶
Project-level memory can be synced to a dedicated branch of the code repository or an independent “shared memory repository”; after cloning the same project on multiple devices, memory can be pulled; conflicts can be resolved in the UI by choosing local/remote/merge strategies. Projects without sync enabled remain purely local.
Others (mentioned in README)¶
Mobile browser access adaptation, session list filtering, channel notifications (de_notify), infinite canvas, session review, model settings, etc.; for detailed items, refer to README-详细说明.md and other docs in the repository.
Installation and Activation¶
The plugin package includes cordis.patch.yml (dsh.bundle.patch). After dsh plugin add, it is automatically registered on the host side — no need to manually insert the same id into the patch again (duplicate inserts will cause a duplicate loader entry and prevent startup).
Taking the web profile as an example:
# 1. Install to profile (can also use link: with local directory or git address)
dsh plugin --profile web add @yyfather/dsh-memory
# 2. Restart dsh web to take effect
To modify default configuration (e.g., enable intra-turn memory review) — override by id in the profile’s cordis.patch.yml (top-level syntax, not insert):
- id: dsh-memory
config:
reviewEnabled: true # Enable intra-turn memory review (default off)
reviewInterval: 10 # Review once every 10 user turns
If a plugin exception causes DSH to fail to start, you can temporarily disable it (no need to uninstall):
- id: dsh-memory
disabled: true
Uninstall:
dsh plugin --profile web remove @yyfather/dsh-memory
If you previously manually inserted this plugin following old documentation, after upgrading you should remove the insert lines from the patch to avoid duplication with the bundle’s automatic registration.
Typical Usage¶
Long-Term Memory¶
- Normal conversation — at the end of each turn, project logs and today’s log are automatically written.
- Tell AI “Note this:…” to write to project key memory; it takes effect after confirmation in the interface.
- In a new session, ask “Check memory, what was the architectural decision we made last time.”
- When memory becomes excessive, you can ask AI to “archive that XX memory.”
Memory Synchronization (Multi-Device Collaboration)¶
- Turn on the “Memory Synchronization” module switch in “Memory Evolve Settings → Configuration.”
- In the project session’s “Memory Synchronization” tab, enable “Sync for this project”; after “Start Sync,” use “Sync and Push” to complete the first push; optionally fill in a shared memory repository to separate public code from private memory.
- On another computer, clone the same project and pull memory to continue using; resolve conflicts within the tab.
To-Dos and Multi-Project¶
Tell AI things like “Remember, deploy the secondary panel to the mobile-accessible instance before Friday” — to-dos enter the confirmation queue; the project track is isolated by directory, so switching project directories won’t interfere with each other.
Orchestrating Multiple Sessions¶
Tell the main session “Create 4 sessions: the designer handles website visuals, the frontend handles pages… pull them into the same collaboration room,” then assign tasks and collect results as needed; before parallel code changes, you can “declare which files you’ll be modifying.”
External Dispatch¶
Tell AI “Dispatch this task to grok: mobile adaptation refactoring” — during this time you can ask for progress or check logs in “COI Scheduling”; after completion, the result summary goes into the log.
Use Cases and Caveats¶
Who it’s for: DSH users who need to preserve project conventions and progress across sessions; developers running multiple projects in parallel, sharing memory across devices, or wanting the main session to coordinate multiple internal sessions and external CLI agents.
Runtime and trust boundary: The plugin runs under the current DSH process permissions, with the ability to read/write memory directories, call external CLIs, access workspace files, etc. Before installing, you should read the source code and MIT license on GitHub, and understand the design attribution of the upstream csyangwen/dsh-memory-evolve; the main changes recorded in this fork’s changelog are DSH 0.2.0-rc.2 compatibility fixes (e.g., client-side style attribution, bookmark star insertion, invalidation caused by .events removal, desktop same-origin guard, etc.).
Host version: Targets DSH 0.2.0-rc.2; memory paths and configuration keys remain unchanged when switching with upstream.
Collaboration prerequisite: The multi-session wake-up chain depends on the DSH process where the main session resides staying running; if the main session is idle or the process is closed, the user needs to return and send a message to restart it.
Conclusion¶
@yyfather/dsh-memory builds on tiered memory, to-dos, skills, and git synchronization as a foundation, then layers on multi-session rooms and COI external dispatch — ideal for DSH usage patterns where you want “no context loss when switching sessions, multi-threaded task orchestration.” Community directory page: skillhub.cn/plugins/YYfather/DSH-memory; installation and scenario details are governed by the GitHub README and the docs/ directory in the repository.