catsenior507/dsh-context-assembler0

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

组装式上下文(Assembled Context): a context tree over the dsh session surface with per-node assemble modes (full / key / off), agent-authored presets, and a browser panel that decides what the model actually sees.

AI Analysis

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

Package
@dsh-external/dsh-client-plugin-context-assembler
Version
0.1.0
License
MIT
Last updated
Sep 10, 2026

Install

$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.