863683348/dsh-plugin-focus ↗★ 0
dsh-plugin-focus
用于 DeepSeek Harness 智能体的聚焦板:在会话工作区中由模型维护的持久便签,用于在压缩和会话间固定目标、约束和决策,支持自动上下文注入、清除时归档及可选的只读 Web 面板。
AI 分析
核心用于在DSH会话中持久化记录任务目标、约束和决策,防止因上下文压缩或跨会话而丢失关键任务信息。适合执行复杂、长周期开发或研究任务的用户。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:863683348/dsh-plugin-focus說明文件
閱讀完整 README ↗Usage (model side)
| action | args | behavior |
|---|---|---|
set | note (required) | append an entry pinning the current focus / constraints |
append | note (required) | append a log entry (decision, discovery, reversal) |
get | — | read the whole board (newest first, capped, omitted-count footer) |
clear | — | empty the board; the old board is archived to the archive file |
The plugin also injects a focus:instructions prompt section (disable with personaSection: false) and re-injects the board into context automatically (disable with autoInject: false).
Configuration
All optional, on the composition row's config:
| key | default | meaning |
|---|---|---|
file | .dsh/focus.md | board path, relative to the session workspace; cannot escape it (runtime-enforced) |
archiveFile | .dsh/focus.md.bak | archive path for clear |
archive | true | whether clear archives first |
maxEntries | 60 | max entries kept on disk (oldest dropped) |
maxChars | 8000 | render cap for get / auto-injection (view truncation only) |
autoInject | true | inject the board into model context at turn start / on change |
personaSection | true | register the prompt-guidance section |
sectionOrder | 5 | prompt section order (persona is 0, ascending) |