DimitriLIAN/dsh-habits

DimitriLIAN★ 2TypeScript最后同步: 2026-08-14

在 GitHub 打开

Habits editor for DeepSeek Harness — edit the user-global AGENTS.md from Web settings, injected into every session

README 摘要

dsh-habits English 中文 A DeepSeek Harness (DSH) plugin that adds a My Habits editor to the Web settings → General section. The text you save goes to the user-global instruction document $DSH HOME/AGENTS.md , which the built-in dsh-agent-instructions loader already injects into every session — so your preferences and habits reach the model automatically. No DSH core is modified: the host half registers a small REST surface on ctx.webServer ( /api2/habits/describe + /api2/habits/update ), and the browser half registers a settings.general.item row that calls it. This is the same standalone-bundle pattern as dsh-web-plugin-manager . Install Then restart the web profile ( dsh --profile web ) so the bundle layer loads. Open Settings → General → My habits , write your note, and save. New sessions pick it up immediately; a running session refreshes on its next file touch or resume. How it works Layer Mechanism Host half ctx.inject(['webServer']) → ctx.webServer.register() for describe / update Read readFileSync($DSH HOME/AGENTS.md) ; absence is a blank document, never an error Write atomic rename under a 65 536-byte budget, with a SHA-1 expectedRevision conflict refusal Browser half setting…

在 GitHub 查看完整 README →
Agent/智能体cordisdeepseek-harnessdshdsh-externaldsh-pluginpluginagent

分类