DeepSeek Harness 自学习习惯引擎 - 校正信号,阈值判断,两级人门
Self-learning habit engine for the DeepSeek Harness - correction signals, threshold judgment, two-level human gate
安装
dsh plugin --profile web add github:Max-Null/dsh-habitGitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试
安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗
安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。
README
Self-learning habit engine for the DeepSeek Harness — observes user-correction signals from session events, judges habits with a low-cost model on threshold, and settles candidates behind a two-level human gate. No new agent role: the judgment is an event-driven plugin, immune to context decay.
The loop
① observe session/event → correction-signal detection (deterministic, zero-token)
② judge >=3 signals in one session → one flash call (evidence slices + existing habits)
③ settle candidate zone → user confirms → dsh-memory remember() (suggested)
→ user confirms again → auto → recall injection
Compose
- id: habit
name: '@max-null/dsh-habit'
Requires storage and llm in the host composition (dsh-base ships both).
Installs as a bundle: dsh plugin --profile <name> add @max-null/dsh-habit.
Service
ctx.habit— the engine:snapshot()→ candidates (newest first)confirm(id)/discard(id)→ first-level human gate- (the second gate is dsh-memory's own suggested→auto confirmation)
Config
| Field | Default | Meaning |
|---|---|---|
signalThreshold |
3 |
Correction signals before one judgment call |
provider |
deepseek-official |
Judgment model provider |
model |
deepseek-v4-flash |
Judgment model (cheap, deterministic) |
storageRoot |
$DSH_HOME/storages/habit |
JSON storage root |
Design notes
- Deterministic observation, LLM on demand: correction detection is a fixed phrase list + length cap (task descriptions are not corrections); the LLM only runs when a session accumulates enough signals.
- Two-level human gate: candidates must be confirmed in the UI AND then pass dsh-memory's own suggested→auto gate. The model can never promote its own habits.
- Narrow input for quality: the judgment call gets at most 5 evidence texts plus the existing habit list — judgment quality comes from precise context, not volume.
Develop
npm install --legacy-peer-deps
npm test
npm run typecheck
npm run build
原始 README: https://github.com/Max-Null/dsh-habit/blob/main/README.md ↗
同类插件
查看全部 →
dsh-anchored-standard
两阶段 DeepSeek Harness 预设:先 Minimal 对齐的 bootstrap,再切完整 Standard 工具(Project2 98/99)

PicGo-Core
极致的图片上传引擎,CLI 与 API 双支持

awesome-deepseek-harness
DeepSeek Harness(DSH)及其优秀社区插件的精选指南。

awesome-deepseek-harness
DeepSeek Harness (DSH)生态系统:来自dsh-external/hub和公共dsh-plugin主题的精选插件、工具和基础设施。

AI-Novel-Writer
本地优先 AI 小说创作工作台,提供 Windows/macOS 桌面版与 DeepSeek Harness 插件开发预览,支持角色、大纲、章节蓝图、审稿修稿和本地模型。

mcp-for-stata
MCP-for-Stata:把 Stata 集成进你的 agent