Max-Null/dsh-habit
Max-Null★ 0TypeScriptLast synced: 2026-08-16
Self-learning habit engine for the DeepSeek Harness - correction signals, threshold judgment, two-level human gate
README excerpt
@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 Compose 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 …
View full README on GitHub →