Preface¶
When running agents with DSH, a single conversation turn often already contains “what was done, why it was done, and where things got stuck”—but this information is scattered across session events and memory, and is rarely consolidated into a reviewable text after work wraps up. Hand-writing dev logs tends to fall behind: you might remember on the same day, but by the next day only a vague impression remains.
dsh-devlog-auto is a community-maintained DSH plugin (category: memory). At the end of each working turn (agent/turn-stopping), it processes the current turn’s context into a first-person dev log and appends it to a local Markdown file. It is not a CHANGELOG, nor a session summary for external audiences; the only reader is the developer themselves, with emphasis on “why” and the pitfalls encountered along the way.
What This Is¶
- Plugin name:
dsh-devlog-auto(npm package name matches thenamein the Cordis patch) - Maintainer: ccr-wer
- Repository: GitHub - ccr-wer/dsh-devlog-auto
- Directory page: SkillHub plugin page
- Current version (package.json): 0.2.2, MIT license, requires Node.js >= 20
In the DSH plugin ecosystem, dsh-memory-type plugins focus on handing memory fragments to the Agent; dsh-git-commit-type plugins focus on committing; dsh-trail-plugin-type plugins focus on retrieval. This plugin fills another gap: writing context and technical discussions into a self-facing dev log, and validating whether “context + memory + checkpoint → automatic summary” can run stably within DSH.
Core Functionality¶
The closed loop can be summarized as:
agent/turn-stopping → slice/filter current turn events → model judgment/generation → append to disk
Concrete steps (consistent with the README):
- Listen for
agent/turn-stopping(serial hook, observe only, no steering). - Slice the current turn’s events from the
session/eventsubscription buffer, filtering out noise (system messages, plugin/skill-catalog injections, request/header, session/title, etc.). - Call the configured model (default
deepseek-flash) to process the material into a first-person dev log; when there is no substantive content, the model outputsSKIPand nothing is written to disk. - Append to the log file: default
$DSH_HOME/devlog/YYYY-MM-DD.md(i.e.,~/.dsh/devlog), each segment begins with a level-2 heading, the date is uniformly expressed by the outer filename, only appends, never rewrites.
Installation and Activation¶
When published to npm, install the dependency in the repository directory or any Node environment:
npm install dsh-devlog-auto
The README states: the name in the main cordis.patch.yml uses the package name dsh-devlog-auto, so it can be installed via dsh plugin add dsh-devlog-auto or through the desktop plugin manager, without needing to modify absolute paths across machines.
For local development, run the following in the cloned repository directory:
cd <repo directory>
npm install
When running DSH, attach the patch (replace the path with your repository directory):
dsh --profile headless --patch <repo directory>/cordis.patch.yml "<your task>"
You can also merge the insert lines from cordis.patch.yml into $DSH_HOME/profiles/<profile>/cordis.patch.yml for persistent mounting. The plugin code is not located under $DSH_HOME; the home directory is primarily read from. Output artifacts are written by default to $DSH_HOME/devlog/.
Settings and Behavior¶
The following configuration items can all be modified in the plugin card on the DSH settings page (excerpted from the README):
| Config Item | Default | Purpose |
|---|---|---|
logPrompt |
prompts/system.md content |
System prompt (volatile, can be hot-edited; the host cordis 4.0.2 may restart the plugin after saving) |
blocking |
true |
true: wait for the log to finish writing before ending the turn; false: generate in the background, unfinished generations may be lost on process exit |
provider |
deepseek-official |
Provider used for log generation |
model |
deepseek-flash |
Generation model name |
reasoningEffort |
low |
CoT intensity (flash has no none) |
debugDump |
on-error |
Debug material to disk: always / on-error / off |
outputDir |
empty | If left empty, uses $DSH_HOME/devlog; can be set to an absolute path |
For runtime troubleshooting, start by checking $DSH_HOME/devlog/.devlog-runtime.log (skips/generation/disk writes/errors and durations). When debugDump is on-error or always, it produces .devlog-context-debug.txt in the log directory (complete model-feeding material and event dump; contains code and tool echoes, so be mindful of sensitive information).
In terms of dependencies, the plugin pins @deepseek-ai/schemastery as a hard dependency at 3.18.4, so that the settings page logPrompt can use .volatile(); when this is inconsistent with the host’s built-in 3.18.2, installation may produce pnpm peer-type warnings—the README notes this is expected and does not affect operation.
At the top of prompts/task.md there is a time-basis note: to prevent the model from mistaking earlier log segments from the same day as “yesterday,” this section should not be removed when rewriting prompts.
Typical Usage and Notes¶
Who it’s for: Developers who use DSH long-term for coding or troubleshooting and want to review “motivations and pitfalls” afterward, rather than just looking at the git diff.
Explicitly not doing in v1 (per the README): timestamp-based segment triggers, manual full-collection overwrites, PPT output, the Coze Skill line.
Security and trust: The plugin runs with the current dsh process’s permissions, reads session events, and may write context to local logs or debug files. Before installing, please read the source repository and the MIT license, and adjust debugDump and outputDir as needed.
The community directory SkillHub has no official affiliation with DeepSeek or Hithink RoyalFlush; the DSH ecosystem follows “everything is a plugin,” and the facts in this introduction all come from the aforementioned README and package.json.
Closing¶
dsh-devlog-auto treats “turn end” as a natural checkpoint, using the default deepseek-flash to turn filtered current-turn material into an append-only dev log, reducing the burden of “finished writing code but forgot to write the log.” For installation instructions, configuration fields, and the meaning of debug files, refer to the GitHub README; to search the directory site, visit https://www.skillhub.cn/plugins/ccr-wer/dsh-devlog-auto.