863683348/dsh-plugin-focus0

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

包名
dsh-plugin-focus
版本
1.0.1
许可证
MIT
最近更新
2026年8月16日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:863683348/dsh-plugin-focus

Usage (model side)

actionargsbehavior
setnote (required)append an entry pinning the current focus / constraints
appendnote (required)append a log entry (decision, discovery, reversal)
getread the whole board (newest first, capped, omitted-count footer)
clearempty 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:

keydefaultmeaning
file.dsh/focus.mdboard path, relative to the session workspace; cannot escape it (runtime-enforced)
archiveFile.dsh/focus.md.bakarchive path for clear
archivetruewhether clear archives first
maxEntries60max entries kept on disk (oldest dropped)
maxChars8000render cap for get / auto-injection (view truncation only)
autoInjecttrueinject the board into model context at turn start / on change
personaSectiontrueregister the prompt-guidance section
sectionOrder5prompt section order (persona is 0, ascending)