dsh-argp: DSH's third-party context compression engine

dsh-argp is a third-party context compression engine for DeepSeek Harness, designed to address the issue of increasing context window pressure in long sessions while retaining historical original text. Its core mechanism comprises two stages: Stage-1 involves the model proposing extraction, summarization, or ignore actions for atomic units, which are implemented after adjudication by a deterministic guard, ensuring the LLM only proposes candidates rather than directly rewriting; Stage-2 prunes atomic units based on reference graph rules when thresholds are exceeded, a process that does not require LLM calls. Compressed or pruned content is stored in an append-only log, supporting retrieval at both summary and detail levels. During installation, the native summarizer must be disabled in the profile and the plugin added to avoid duplicate loader configurations. Users can customize the model backend, with default support for OpenAI-compatible interfaces. The repository provides multiple verification commands to test performance. This tool is suitable for scenarios requiring control over long-session context and preservation...

Read More