deepSeek harness context compression tool
giter00/dsh-headroom · skills
deepSeek harness context compression tool
★ 11GitHub stars
0Forks
2026-08-23Last updated
JavaScriptLanguage
Apache-2.0License
Key features
- Automatically compress tool output: mount tools/post-execute to replace text content before tool results are materialized.
- lib/compress.jsPure function compressor, no node: dependency, can be tested independently.
- apply() registers the tools/post-execute listener and 3 tools
Requirements
- The default scorer is a heuristic simulation, not a real model inference: lib/kompress.js faithfully transplants the pipeline structure and scoring formula of Headroom Kompress-v2-base, but the default scoring comes from a deterministic pure JS heuristic
- When real model semantic scoring is required, ONNX/PyTorch scorer can be injected at the library level.
Install command
dsh plugin --profile web add github:giter00/dsh-headroom