kkkkkklze/dsh-context-structurer ↗★ 0
dsh-context-structurer
结构化 DSH 上下文插件:按类型拆分小上下文(思考/工具调用/正式回复),并以结构化目录为索引
AI 分析
核心用途是通过结构化拆分和目录索引来优化长上下文的管理,避免模型迷失。适合处理复杂长对话、需要精细控制上下文投喂结构以提升模型遵循度的用户。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:kkkkkklze/dsh-context-structurer说明文档
阅读完整 README ↗配置(profile cordis.patch.yml 里 context-structurer 行的 config)
- id: context-structurer
name: dsh-context-structurer
config:
mode: release # auto | release(默认 auto)
language: zh # zh | en
baselineEnabled: true # 确定性基线开关
baselineReplies: 1 # 基线自动放行的最近回复数
baselineTools: 2 # 基线自动放行的最近工具调用数
screenerEnabled: true # 内置筛查器开关
screenerMaxIds: 20 # 筛查器最多接受的序号
screenerTimeoutMs: 15000 # 筛查调用超时
screenerProvider: '' # 空=复用会话模型
screenerModel: ''
maxSectionBytes: 4096 # 目录/放行正文的截断上限
auto 模式独有:includeThinking / includeTools / includeReplies(默认 true)、maxThinkingItems(5) / maxToolItems(8) / maxReplyItems(5) / tocMaxInputChars(120)。