GooDAnDReaDY/dsh-context-lens0

@goodandready/dsh-context-lens

DSH plugin for AST context compression, test log filtering, and token budget guard

AI Analysis

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

Package
@goodandready/dsh-context-lens
Version
0.1.8
License
MIT
Last updated
Sep 2, 2026

Install

$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