开发与运行时
#dsh-plugin
dsh-habit
自学习习惯引擎:从会话事件检测用户纠正信号,用低成本模型在阈值上判定习惯,候选需两层人工把关。
max-null
@max-null
⬇ 1
★ 1
main
安装
dsh plugin --profile web add github:max-null/dsh-habit
需要可复现安装时,可在仓库后追加 #commit 固定提交。
自学习习惯引擎:从会话事件检测用户纠正信号,用低成本模型在阈值上判定习惯,候选需两层人工把关。
该插件未提供要点说明,请参考仓库 README。
dsh-plugin
- 安装并启动 DeepSeek Harness:
npx @deepseek-ai/dsh web - 在终端执行上面的安装命令(CLI 会解析插件并核验来源)
- 用 dsh plugins list 确认已安装,必要时重启 Harness 生效
插件以当前 dsh 进程的权限运行,安装时可能执行代码。请先通读仓库源码与许可证,确认无破坏性命令与越权访问;本站只做索引,不对第三方插件安全性作担保。
| 代码仓库 | github.com/max-null/dsh-habit |
| 许可证 | 未标注(见仓库) |
| 主要语言 | main |
| 下载量 | 1 |
| GitHub 星标 | 1 |
| 最近推送 | 2026-08-16 |
| 收录日期 | 2026-09-19 |
| 分类 | 开发与运行时 |
事实信息来自公开插件目录快照(2026-10-01),介绍文案由本站再加工。
以下为插件仓库 README 全文(原始内容,由公开目录抓取整理)。
# @max-null/dsh-habit
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
```yaml
- 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 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
```sh
npm install --legacy-peer-deps
npm test
npm run typecheck
npm run build
```
数据来源:公开的 DeepSeek Harness 插件目录与各插件 GitHub 仓库。本站为独立第三方目录,与 DeepSeek、幻方(High-Flyer)及插件作者均无隶属或背书关系。