HiWhaleW/dsh-toolbox--packages-context-switchboard29

@dsh-toolbox/context-switchboard

Local-first named context profiles, deterministic routing, native runtime-context injection, receipts, and rollback for DeepSeek Harness.

AI 분석

核心用途是管理和切换 DSH 的上下文配置文件,实现任务的确定性路由与回滚。适合需要精细控制 AI 提示词上下文和任务分流的复杂工作流开发者。

패키지
@dsh-toolbox/context-switchboard
버전
0.2.1
라이선스
NOASSERTION
최근 업데이트
2026. 8. 24.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:HiWhaleW/dsh-toolbox#0324df10da261f690b962b0e29fce4c2c43dd5bc&path:packages/context-switchboard

Context Switchboard

Local-first MVP for named context profiles, deterministic task routing, native DSH runtime-context injection, activation receipts, and rollback.

Tools

  • context_profile_save — create or update a profile with keywords, guidance, resources, and a context budget.
  • context_profile_list — inspect configured profiles.
  • context_route — preview ranked profiles for a task without changing state.
  • context_activate — record an explicit selection and return a bounded context packet.
  • context_current — show the active receipt for a session key.
  • context_rollback — roll back the current receipt without deleting history.
  • context_history — inspect the session activation stack.
  • context_profile_export / context_profile_import — move or back up profile definitions.
  • context_diagnose — find duplicated keywords and context-budget problems.

Activation contributes the bounded packet through DSH's native systemPrompt.context() registry. The current full packet is materialized as a durable runtime-context snapshot and replaces the prior snapshot instead of accumulating stale copies. No profile replaces the deployment persona, sandbox policy, or approval policy.

Profiles support positive/negative keywords, priority, enable/disable state, resource pointers, and per-profile token budgets. Activation history is per DSH session id; rolling back reveals the previous active receipt.

Data defaults to ~/.local/share/dsh-toolbox/context-switchboard/context.sqlite3; set dataDir in the bundle config to change it. No resource paths are opened by the plugin: they are labels/provenance pointers only.

License

Source-available under the PolyForm Noncommercial License 1.0.0. Commercial use is not permitted; see the packaged LICENSE file.