catsenior507/dsh-context-assembler0

@dsh-external/dsh-client-plugin-context-assembler

组装式上下文插件,在 DSH 会话上构建上下文树,支持节点级组装模式、Agent 预设及浏览器控制面板。

AI 分析

核心用途是精细化控制模型可见的上下文内容,节省 Token 并减少干扰。适合处理超长对话、需要手动或自动裁剪上下文以优化模型响应的重度用户。

包名
@dsh-external/dsh-client-plugin-context-assembler
版本
0.1.0
许可证
MIT
最近更新
2026年9月10日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:catsenior507/dsh-context-assembler

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.