863683348/dsh-plugin-focus ↗★ 0
dsh-plugin-focus
Focus board for DeepSeek Harness agents: durable, model-maintained notes in the session workspace that pin the objective, constraints, and decisions across compaction and sessions — with automatic context injection, an archive on clear, and an optional read-only web panel
安装
$
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) |