GooDAnDReaDY/dsh-context-lens ↗★ 0
@goodandready/dsh-context-lens
上下文管理插件,支持 AST 上下文压缩、测试日志过滤以及会话 Token 预算守护。
AI 分析
核心用途是优化长上下文会话的 Token 消耗。适合在大型项目上进行高频对话、需要精简代码上下文并防止 Token 溢出超支的开发者。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:GooDAnDReaDY/dsh-context-lens說明文件
閱讀完整 README ↗⚙️ Configuration Reference (settings.yaml)
dsh-context-lens:
compressionMode: balanced # 'raw', 'balanced', or 'aggressive'
astSkeletonMaxDepth: 3 # Maximum depth level for AST signature traversal (1..10)
tokenSavingsTracking: true # Track and display live token savings
autoCompressThreshold: 4000 # Auto-compression character threshold (0 to disable)
budgetLimit: 100000 # Session token budget limit
autoCollapse: true # Auto-collapse UI when budget is nearly exhausted