863683348/dsh-plugin-focus0

dsh-plugin-focus

用于 DeepSeek Harness 智能体的聚焦板:在会话工作区中由模型维护的持久便签,用于在压缩和会话间固定目标、约束和决策,支持自动上下文注入、清除时归档及可选的只读 Web 面板。

AI 分析

核心用于在DSH会话中持久化记录任务目标、约束和决策,防止因上下文压缩或跨会话而丢失关键任务信息。适合执行复杂、长周期开发或研究任务的用户。

包名
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)