dsh-memory-evolve: cross-session memory and self-evolution for DeepSeek Harness
A pure plugin bringing cross-session long-term memory and background self-evolution to DeepSeek Harness: five-track memory, git branch awareness, in-turn self-review, skill self-evolution with a skill manager, four-track to-dos, COI scheduling, session broadcast, session search, a prompt manager, and scratch notes - zero core modifications, zero runtime dependencies, plug-and-play, clean uninstall.
At a glance
- What is it?
- A pure plugin for DeepSeek Harness that adds five-track long-term memory, skill management, four-track todos and external CLI agent dispatch without patching the core. The trade-off is that most of it is off by default, and the multi-session orchestration only keeps running while the DSH process stays up.
- Who is it for?
- Adopt it if you run DeepSeek Harness daily and keep losing context between sessions, or if you already coordinate several sessions and want the memory and dispatch layer to live in one plugin. Do not adopt it if you need memory to survive a stopped DSH process, or if you want every capability on by default: the README states most features ship disabled and must be switched on in the Memory Evolve settings.
- Can I use it commercially?
- Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository last received commits 27 days ago.
- What is it written in?
- Mainly JavaScript, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.
Star history
- csyangwen/dsh-memory-evolve900 ★ · +585
| Repository | 2026-09-17 | 2026-11-25 |
|---|---|---|
| csyangwen/dsh-memory-evolve | 315 | 900 |
585 Stars in the last 69 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
The problem dsh-memory-evolve targets inside DeepSeek Harness
DeepSeek Harness sessions are one-shot in the way the README describes them: change project, wait a few days, open a new session, and the assistant no longer knows who you are. dsh-memory-evolve is a plugin for that gap. It is packaged for DSH rather than for a general chat client, and the package.json declares a dsh.client block with platform web and a bundle patch pointing at cordis.patch.yml, which is why installation happens through the DSH plugin command rather than through npm directly.
The audience is narrow and specific. The README organises its guide by workflow, and the first scenario is addressed to everyone, because memory is the base the other features sit on. The later scenarios target people running several projects at once, people who want to drive several AI sessions from one main session, and people who want to hand heavy work to external CLI agents such as Kimi, Codex, Grok or Hermes. If you use DSH for a single throwaway conversation, almost none of this applies.
Five memory tracks, branch awareness and the confirmation gate
The memory model has five tracks: user profile, global facts, project key memory, project log, and daily log. The user profile is described as visible to the AI every turn. Project key memory is injected into context and can be marked to apply only on a given git branch, which matters when the same repository carries different conventions on different branches. Project logs and daily logs are written automatically at the end of each turn and read on demand.
The part worth noting is the write path. The README states that when you tell the assistant to remember something, it goes into project key memory only after you confirm it, and that the AI does not write to memory on its own initiative. A separate queue exists for todos: ideas you ask it to remember land in a pending queue and you accept or reject them from the todo view. That is a deliberate constraint rather than an oversight, and it is the main reason the memory stays readable over time.
Archiving is the other mechanism. Archived entries stop being injected into context but can be moved back. The README does not document what happens to an archived entry that is still referenced by a project log line, so treat archival as a context-budget tool, not as deletion.
Installing dsh-memory-evolve and turning on a first track
The plugin ships a cordis.patch.yml inside the package and declares it as dsh.bundle.patch. The README states that after dsh plugin add the host registers it automatically with no manual configuration. Using the web profile as the example, installation is two steps. The first adds the plugin from GitHub:
dsh plugin --profile web add github:csyangwen/dsh-memory-evolveThe second step is to restart dsh web, after which the plugin is active. The README explicitly warns against also inserting the plugin into ~/.dsh/profiles/web/cordis.patch.yml by hand, because the bundle patch already registers it and a duplicate insert of the same id makes the loader fail with duplicate loader entry id.
Default configuration is overridden by id in the profile patch file, using a top-level entry rather than an insert. This example turns on in-turn memory review, which the README says is off by default, and sets it to run every ten user turns:
- id: dsh-memory-evolve
config:
reviewEnabled: true
reviewInterval: 10If the plugin breaks startup, the README gives a one-line disable that avoids uninstalling anything:
- id: dsh-memory-evolve
disabled: trueRemoval is `dsh plugin --profile web remove dsh-memory-evolve`, and the README states that all effects are cleaned up with the uninstall. For a first real use, open any session and tell the assistant to note a fact about the project, for example the deployment port. It should propose the entry for project key memory and wait for your confirmation before it becomes active.
Where the design shows its limits: the wake-up chain and the disabled defaults
The orchestration scenario is the most ambitious part of the plugin and also the most fragile. The README describes a main session that spawns member sessions into a shared room, assigns work, and wakes idle members when results are needed. It then states the precondition plainly: the DSH process hosting the main session must stay running. If the main session goes idle or DSH is closed, the wake-up chain stops, and you have to send a message yourself to restart the team. That is a real boundary, not a configuration detail, and it means the always-on team picture only holds while a process is alive.
The second limitation is discoverability. The README notes that many capabilities are off by default so they do not occupy the AI tool list, and that the scenarios are mostly combinations: you have to enable the relevant features in the Memory Evolve settings before the pipeline works. A new user who installs the plugin and expects the full feature set immediately will be confused by an almost empty tool surface. Memory sync has the same shape. It is only visible after the module switch is enabled in the settings, and then enabled per project in the memory sync tab. The README also states that projects without sync enabled stay purely local, which is a sensible default but another switch to remember.
How it differs from a plain memory file or a general agent framework
The obvious alternative is keeping a notes file in the repository and pasting the relevant part into the conversation. That approach has no injection mechanism, no branch scoping, and no confirmation queue: whatever is in the file is whatever you last wrote, and it is your job to keep it current. dsh-memory-evolve instead writes project and daily logs automatically each turn and injects project key memory into context, which is the difference between a document you maintain and a store the assistant reads.
The second alternative is a general agent framework with its own memory subsystem. Those usually require you to run the framework as the host. This plugin is the inverse: it assumes DeepSeek Harness is already your environment and attaches to it through the bundle patch, with the package.json declaring @deepseek-ai/dsh-client-runtime as an injected client dependency and the platform as web. If you are not on DSH, the plugin is not a candidate at all, regardless of how the memory tracks are designed.
A third comparison is per-session context management. DSH itself supports branching from the last turn; the README states the plugin takes over the branch entry point for any middle turn and routes it through the official branch channel, so the new session still appears in the official branch lineage. That is an extension of an existing mechanism rather than a replacement for one.
Maintenance status, licence and the cost of upgrading
The repository is not archived and the last push was on 2026-09-15, two days before this writing. Three releases are listed in quick succession: v26090801 on 2026-09-08, v26090901 on 2026-09-09, and v26091501 on 2026-09-15. That cadence suggests the plugin is still moving, but it also means configuration keys and install instructions can shift between releases.
The upgrade path carries a specific hazard that the README calls out. If you previously followed older documentation and inserted the plugin manually into your profile patch, you must delete that insert line, because it now duplicates the bundle auto-registration and the loader will refuse to start. The same class of failure appears if you add the plugin by hand today. So the upgrade cost is not the code; it is reconciling your profile patch file with what the bundle now does for you.
The licence is MIT, declared in package.json and present as a LICENSE file at the repository root. MIT permits reuse and redistribution with the licence text retained, but this is a description of the licence, not legal advice, and the package.json also sets private to true, which is worth checking against how you intend to distribute anything derived from it.
Editorial conclusion
Adopt it if you run DeepSeek Harness daily and keep losing context between sessions, or if you already coordinate several sessions and want the memory and dispatch layer to live in one plugin. Do not adopt it if you need memory to survive a stopped DSH process, or if you want every capability on by default: the README states most features ship disabled and must be switched on in the Memory Evolve settings. Before installing, verify that your DSH version accepts a bundle patch, since the README warns that a manual insert of the same loader id produces a duplicate loader entry id error and the host will not start.
Frequently asked questions
How do I install dsh-memory-evolve into DeepSeek Harness?
Use dsh plugin --profile web add github:csyangwen/dsh-memory-evolve and then restart dsh web. The README states the host registers the plugin automatically through its bundle patch, so no manual configuration is needed.
Why does DSH fail to start after I added dsh-memory-evolve manually?
The README warns that inserting the plugin into the profile cordis.patch.yml by hand duplicates the bundle auto-registration, and the loader reports duplicate loader entry id. Remove the insert line, or set disabled: true on the plugin id while you investigate.
Does dsh-memory-evolve keep working when DSH is closed?
No. The README states that the wake-up chain for member sessions depends on the DSH process hosting the main session staying running, and that the chain stops if that session goes idle or DSH is closed.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/csyangwen-dsh-memory-evolve)Star history chart for your README
[](https://hysenlabs.com/projects/csyangwen-dsh-memory-evolve)Was this useful?