Preface¶
When using DSH (DeepSeek Harness) to write code, the assistant can often get things done within a single session, but it doesn’t remember the pitfalls you’ve stepped into before. In a new conversation, you have to repeat yourself: callback guards should come before idempotency checks, don’t use float for amounts, run a certain script before releasing. Common workarounds are either uploading the entire conversation to the cloud, or only saving conclusions without tracking “how many times you’ve already made this mistake.”
Below introduces the community plugin dsh-evolution (maintainer: wycto, category: memory): it records development sessions locally, uses the model you’ve already configured in DSH to do cross-session reviews, and distills recurring pitfalls and effective practices into local knowledge; by default it doesn’t connect to the internet, doesn’t upload, and doesn’t write into your code repository. Data is stored in human-readable files on disk that you can view, export, or delete at any time.
What This Is¶
dsh-evolution is a local-first automatic evolution plugin for DSH. The current README is labeled Phase 1 — Real Review + Injection (package version 0.2.2): session ledger collection, data preview, dry run (to see effects and costs, without calling models), redaction, UI-based configuration, directory self-check; manual/automatic review, local insight library, retrieval and injection, export and skill drafts are all available. Automatic review is disabled by default — having the plugin installed won’t generate model costs until you explicitly turn it on; injection only sends locally stored entries, without calling models or connecting to the network.
License: MIT, runtime requirement: Node >= 22.
Core Features¶
Workflow Overview¶
During normal conversations, each event is structurally written to a local ledger (purely local, zero cost, no model calls). After enough N turns have accumulated and the session goes idle (or you click “Review Now” in the panel), a summarization is performed using the model explicitly specified on the “Configuration” page — if not specified, no calls are made at all, and the plugin will not default to using the model from the current session. The summarization results are validated by the code layer (evidence chain, prohibited list, re-redaction) before being written to the local insight library; next time you enter the same repository, relevant entries are injected into the context.
Three key design decisions:
| Decision | Meaning |
|---|---|
| Ledger recording: zero LLM, zero network | Can record every turn, can scan history, cost is approximately zero |
| Only records signals, not tool inputs/outputs | Avoids size bloat and noise |
| Disables all “outward-facing” behaviors by default | Upload, writing to repo, vectorization, cross-workspace aggregation all require explicit enabling |
Insights are not empty one-line conclusions, but entries with evidence chains (session id + turn + original quote); entries without evidence are rejected. When the same experience occurs again, it is merged and counted (recurrence) rather than stacking duplicate entries.
What to Record, What Not to Record¶
| Content | Record? |
|---|---|
| Questions and assistant answers (configurable truncation) | Yes |
| Tool names and success/failure | Yes |
| Tool parameters and outputs | No |
| Model thinking process, images and other non-text content | No |
| Absolute paths | Redacted by default to <path>/filename |
Panel Capabilities¶
After installation and restarting dsh web, there is “Auto Evolution” at the bottom of the sidebar, containing pages for Overview, Insights, Dry Run, Data Preview, Injection Preview, Redaction Preview, Export & Drafts, Configuration, and Data & Privacy. Key points:
- Dry Run: Before enabling automatic review, preview whether it will run, what will be injected, and roughly how much it will cost; no model calls, no file writes.
- Injection Preview: Shows verbatim what content will be added to the system prompt next time you enter that repository.
- Insights: Manual “Review Now”, view evidence chains, pin/adopt/archive/merge entries, etc.; can rebuild index from logs.
Privacy Defaults (Conservative Side)¶
| Capability | Default |
|---|---|
| Record session ledger | On |
| Inject existing insights | On (zero model calls) |
| Automatic review | Off |
| Upload, write to code repository, vector search, SQLite, cross-workspace profiling | Off |
Redaction is completed before writing to disk; built-in rules cover API keys, Bearer/Basic, JWT, common cloud provider keys, absolute paths, etc., and support custom sensitive word lists. The author’s README states: no cloud hosting, no uploading by default, no manager-facing personal profiling display.
Installation & Activation¶
In an environment where a DSH Web profile is already configured, run:
dsh plugin --profile web add dsh-evolution
After installation, restart dsh web, and “Auto Evolution” will appear at the bottom of the sidebar.
It’s recommended to do three things after installation:
- Open “Auto Evolution” → Overview, confirm “Running” and that the data storage path meets expectations.
- Click “Re-check” on the Data & Privacy page, confirm that directories can be created.
- Have a few normal conversations, refresh on Data Preview, confirm there are records.
If you want to try a real review: first preview on the Dry Run page (free), then click “Review Now” on the Insights page — this step will call the model and consume the quota you’ve configured in DSH.
Data Storage Location¶
The default directory is ~/.dsh-evolution/ (Windows: C:\Users\<you>\.dsh-evolution\). Can be modified via the environment variable DSH_EVOLUTION_HOME or the data directory in the panel’s “Configuration”.
~/.dsh-evolution/
├── config.json # Configuration (plain JSON, manually editable)
├── state.json # Review watermark, usage, pause, etc.
├── ledger/ # Ledger, NDJSON sharded by day
├── insights/ # insights.ndjson (source of truth) + index.json (rebuildable)
├── exports/ # Export archives
├── skills/ # Default location for skill drafts
├── observations/ # Reserved
└── drafts/ # Reserved
When optionally enabling the SQLite backend (database.enabled + driver=sqlite, off by default), the ledger and insights are migrated to index.sqlite; on first enable, a one-time import is performed from old NDJSON files, and the original files are retained.
The main configuration file is ~/.dsh-evolution/config.json, which can also be modified in the panel; groups include master switch, session ledger, automatic review, privacy & redaction, injection, export & drafts, etc. In the automatic review group, review.enabled is off by default; the model must be selected via dropdown on the config page from providers × models that are actually available in the host; if left empty, no automatic model calls will be made.
Typical Usage¶
- Collect only, accumulate first: Keep defaults (automatic review off), have multiple development conversations, confirm the ledger is working in Data Preview; existing insights will be injected in the same repository’s next session (check the original text in Injection Preview).
- Manual review once: Select a review model in the Config page → click “Review Now” in the Insights page → expand entries to verify evidence chains and recurrence.
- Before enabling automatic review: Use the Dry Run page to confirm extraction conditions, injection snippets, and estimated costs, then enable
review.enabled. - Export and skill: Export markdown/JSON in “Export & Drafts”; for entries that are “reproduced and adopted”, a
SKILL.mddraft can be generated (written to the plugin directory by default; writing to the code repository requires additional confirmation in the panel).
Installation from source development (provided in README, requires local build or direct use of the committed client/dist/index.js):
git clone https://github.com/wycto/dsh-evolution.git && cd dsh-evolution
npm run build
dsh plugin --profile web add "link:<absolute-path>/dsh-evolution"
Use Cases & Notes¶
Suitable for: Developers who iterate with DSH in the same repository long-term, want to turn repetitive mistakes into injectable local reminders, but don’t want to default to uploading full conversations to third parties.
Notes:
- The plugin runs with the current dsh process permissions; before installation, it’s recommended to read the GitHub repository source code and the MIT license.
- When summarization quality is poor, incorrect conclusions may be injected and take effect long-term; make sure to use Dry Run and Injection Preview first before enabling automatic review.
- Injection matches repositories by
repoRootpath, avoiding cross-contamination between directories with the same name; better to inject less rather than letting repo A’s experience leak into repo B. - The DSH ecosystem is “everything is a plugin”; the community directory SkillHub plugin page is an independent site, with no official affiliation to DeepSeek / High-Flyer.
Conclusion¶
dsh-evolution brings “cross-session memory and evolution” to your local machine: zero model cost for ledger recording, review and outward-facing capabilities disabled by default, insights with evidence chains and exportable. If you long-term write the same codebase in DSH Web, it’s worth installing and enabling in the order of Overview → Self-check → Preview → then enable Review.
- Directory page: https://www.skillhub.cn/plugins/wycto/dsh-evolution
- GitHub: https://github.com/wycto/dsh-evolution