cwh-123456/dsh-handoff-bus ↗★ 0

dsh-handoff-bus

Cross-session message bus for DeepSeek Harness GUI conversations: deliver instructions and reports directly between the main conversation and sub-conversations. 适合需要在主对话与子对话之间进行自动化消息路由的复杂任务。

패키지
dsh-handoff-bus
호환성
미검증
버전
0.3.0
라이선스
MIT
최근 업데이트
2026. 10. 19.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:cwh-123456/dsh-handoff-bus

Configuration

Configuration is read in this order (later wins):

  1. built-in defaults (DEFAULT_CONFIG)
  2. JSON file: $DSH_HANDOFF_BUS_CONFIG, or /handoff-bus/config.json
  3. the plugin row's config in your profile patch (advanced)

Example config.json:

{
  "handoffDir": "handoff",
  "stateDirName": ".bus",
  "maxMessageChars": 4000,
  "maxSendsPerHour": 30,
  "maxPairSendsPer10Min": 8,
  "blockSecondInstruction": true,
  "pendingInstructionTtlSec": 600,
  "requireDone": true,
  "routeMaxAttempts": 3,
  "retiredRetentionDays": 7,
  "digestReports": true,
  "digestMinCount": 3,
  "digestMaxWaitSec": 900,
  "handoffAfterMessages": 40,
  "handoffAfterIdleMin": 30,
  "briefing": true,
  "briefingFiles": ["README.md", "PROTOCOL.md"],
  "briefingScan": [],
  "briefingScanLimit": 4,
  "briefingTailLines": 80,
  "contextBudget": true,
  "contextWindowTokens": 524288,
  "contextWarnRatio": 0.4,
  "contextStopRatio": 0.7,
  "contextOverheadTokens": 40000,
  "requireHandoverOnLeave": true,
  "handoverWindowMin": 30
}

centralStateRoot is optional (an absolute path); it defaults to /handoff-bus. Restart the client after editing the file. See config.example.json.

KeyDefaultMeaning
handoffDirhandoffCoordination directory name; if present, state goes to /.bus/
stateDirName.busState subdirectory name
centralStateRoot/handoff-busState root when the workspace has no coordination directory
maxMessageChars4000Per-message limit
maxSendsPerHour30Per-conversation hourly limit
maxPairSendsPer10Min8Per role-pair limit, to stop ping-pong
blockSecondInstructiontrueRefuse a 指令 while the previous one to the same target has no 回报 yet
pendingInstructionTtlSec600After this long without a 回报, the pending instruction stops blocking
requireDonetruekind="指令" must carry done
routeMaxAttempts3Candidates probed when target is a line name
retiredRetentionDays7How long retired roles are remembered
digestReportstrueBatch plain reports (disable to wake on every report)
digestMinCount3Reports per digest wake-up
digestMaxWaitSec900Longest a report waits before the digest fires
handoffAfterMessages40suggestHandoff threshold: messages exchanged
handoffAfterIdleMin30suggestHandoff threshold: minutes idle
briefingtrueInject the start-up briefing before the first request of a conversation
briefingFiles["README.md","PROTOCOL.md"]Files to read in full, relative to the coordination directory
briefingScan[]Globs read as structure + tail, e.g. ["4*-*.md"]
briefingScanLimit4How many matching ledgers to name (newest first)
briefingTailLines80Lines in the tail -n suggested by the briefing
contextBudgettrueContext watermark notices
contextWindowTokens524288What counts as 100% (not the declared 1048576)
contextWarnRatio0.4Warn: finish the current task, write the ledger, switch conversations
contextStopRatio0.7Demand an immediate wrap-up
contextOverheadTokens40000Fixed cost of the system prompt and tool definitions
requireHandoverOnLeavetrueRefuse bus_unregister when the coordination directory is stale
handoverWindowMin30Window for the check above, in minutes

deliveries.jsonl is append-only. Delete it manually if it grows; automatic rotation is planned for a later release.