yin52133/dsh-luban--packages-dsh-luban-context ↗★ 0
@yin52133/dsh-luban-context
用于 DSH 的可审计上下文压缩与虚拟文件重放插件。
AI 分析
核心用途是在长对话中自动压缩上下文并生成虚拟文件摘要,以降低 Token 消耗。适合进行超长对话或大型开发任务的用户。需要配合 telemetry 提供者使用。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:yin52133/dsh-luban#fd42aad0a6c5628a3bee24796f0caba131fb0252&path:packages/dsh-luban-context说明文档
阅读完整 README ↗Configuration
- insert:
- id: luban-context
name: @yin52133/dsh-luban-context
config:
trigger: { ratio: 0.80, minGapRounds: 4 }
strategy: summarize+virtualfile
keepRecentTokens: 24000
archiveDir: .luban/context-archive
nightProfile:
trigger: { ratio: 0.70 }
keepRecentTokens: 16000
archiveDir must be relative to the session workspace. An unknown telemetry ratio does not trigger compaction.