dsh plugins中文
← Back to popular plugin directory

DSH context compression/summarization plugin

kusesad-1122/dsh-context-compactor · tools

DSH Context Compression/Summary Plugin: 80% automatic global detailed summary compression (preserves core tasks/decisions/problems to be solved/important file locations, removes debugging details and resolves errors.

★ 4GitHub stars
0Forks
2026-08-16Last updated
JavaScriptLanguage
—License

Key features

  • Estimate the current session token usage through ctx.tokenMeter
  • Every compression will perform before/after verification: totalTokens after compression must be strictly smaller than before compression
  • Global checkpoint, not just one section: each trigger will make "all earlier history" (from the earliest message to before retaining the tail) into a global checkpoint at once
  • When the provider clearly reports that the context has exceeded the limit, it will first summarize the compression in detail, and then automatically retry the current round of requests
  • When reaching 80% of the model window (thresholdRatio defaults to 0.8), a detailed summary is automatically made before the next step: compress all the earlier history into a detailed Chinese checkpoint using LLM, replace the old messages, and only keep the original tail of the most recent retainRatio (default 16%)

Install command

dsh plugin --profile web add github:kusesad-1122/dsh-context-compactor
View GitHub repository ↗Back to popular plugin directory