catsenior507/dsh-context-assembler ↗★ 0
@dsh-external/dsh-client-plugin-context-assembler
组装式上下文插件,在 DSH 会话上构建上下文树,支持节点级组装模式、Agent 预设及浏览器控制面板。
AI 分析
核心用途是精细化控制模型可见的上下文内容,节省 Token 并减少干扰。适合处理超长对话、需要手动或自动裁剪上下文以优化模型响应的重度用户。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:catsenior507/dsh-context-assembler说明文档
阅读完整 README ↗Configuration (the profile row's config)
- id: ui-context-assembler
name: '@dsh-external/dsh-client-plugin-context-assembler'
config:
port: 4799 # loopback API port when no webServer is available
offMarker: "({count} items removed from context, ~{tokens} tokens)" # set to "" for a truly zero-token off
digestHeadLines: 12 # head lines kept by the automatic digest
digestTailLines: 4 # tail lines kept by the automatic digest
digestMaxChars: 6000 # per-digest character cap
exposeTool: true # register the context_assembler tool
A preset rule with auto: true applies itself at the end of every turn (turn/end). Every built-in
template ships disabled.