GooDAnDReaDY/dsh-context-lens0

@goodandready/dsh-context-lens

上下文管理插件,支持 AST 上下文压缩、测试日志过滤以及会话 Token 预算守护。

AI 分析

核心用途是优化长上下文会话的 Token 消耗。适合在大型项目上进行高频对话、需要精简代码上下文并防止 Token 溢出超支的开发者。

套件
@goodandready/dsh-context-lens
版本
0.1.8
授權
MIT
最近更新
2026年9月2日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:GooDAnDReaDY/dsh-context-lens

⚙️ 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