jonah791/dsh-agent-context-pruner1

dsh-agent-context-pruner

上下文剪枝插件(爱丽丝判断为核心):候选检测(含缓存代价估算)+ 按需剪枝执行(replay-safe,头+标记+尾)+ 统计。是否无用由爱丽丝判断;剪枝不破坏缓存命中(尾部优先)。

AI Analysis

核心用途是智能清理无用上下文。适合需要在不破坏 KV 缓存的前提下,由 Agent 自主识别并剪除冗余信息的长会话任务。

Package
dsh-agent-context-pruner
Version
0.1.0
Last updated
Aug 17, 2026

Install

This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗

配置

配置键缺省含义
thresholdChars8192合并文本超过此码点数才算超预算(缺省阈值)
headChars4096保留开头码点数
tailChars1024保留末尾码点数