jonah791/dsh-agent-context-pruner ↗★ 1
dsh-agent-context-pruner
上下文剪枝插件(爱丽丝判断为核心):候选检测(含缓存代价估算)+ 按需剪枝执行(replay-safe,头+标记+尾)+ 统计。是否无用由爱丽丝判断;剪枝不破坏缓存命中(尾部优先)。
AI Analysis
核心用途是智能清理无用上下文。适合需要在不破坏 KV 缓存的前提下,由 Agent 自主识别并剪除冗余信息的长会话任务。
Install
This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗
README
Read the full README ↗配置
| 配置键 | 缺省 | 含义 |
|---|---|---|
| thresholdChars | 8192 | 合并文本超过此码点数才算超预算(缺省阈值) |
| headChars | 4096 | 保留开头码点数 |
| tailChars | 1024 | 保留末尾码点数 |