Back to directory

dsh-compaction-instant

Curated pickArchived

tsfreddie/dsh-compaction-instant

LLM-free lossless* compaction engine for DeepSeek Harness

This repository is archived — it is read-only and no longer maintained. Review the code carefully before installing.

View on GitHub
$ dsh plugin --profile web add dsh-compaction-instant

16

stars

4

forks

JavaScript

Language

MIT

License

2026-08-14

Created

2026-09-02

Last push

A deterministic DSH context compiler with original-token checkpoints and log recall. Direct installation requires a copied preset to replace the built-in engine.

DSH integration

Native runtime

Author-claimed

Safety audit

Unaudited

Last verified

2026-10-19

License

MIT

01What can it help you accomplish?

  • Compact DSH session history without a summarizer model call.

    A checkpoint built from original tokens, with seq pointers for later recovery.

    DSH users replacing the compaction-basic backend.

02How to install into DeepSeek Harness

Prerequisites

  • A DeepSeek Harness web profile; built-in presets pin compaction-basic and need a copied preset for the direct-install route.

Installation steps

  1. 01

    Install: `dsh plugin --profile web add dsh-compaction-instant`.

    $ dsh plugin --profile web add dsh-compaction-instant

  2. 02

    In a session using the shipped cordis preset (creation mode), ask it to copy standard and change the copy’s compaction engine to dsh-compaction-instant; use that new preset.

  3. 03

    Restart dsh web once so its boot graph loads the client bundle and settings card.

Verify the integration

  • Start a session on the copied preset; the README identifies successful preset mounting as validation.

03DSH integration and capability boundaries

DSH integrationNative runtime

Native DSH compaction backend with recall tools and a /recall command.

  • Deterministic compaction

    Shadowed session history→Checkpoint containing original tokens and seq markers

  • Same-session recall and search

    Seq pointers or keyword/regex queries→Restored log content or matching events with seq pointers

04Who is it for? When not to use it?

Good for

  • DSH users replacing the compaction-basic backend.

Not for

  • Only one ctx.compaction implementation may be mounted per context; preset instances keep their own isolate realm.
  • For prose-heavy history, truncation can be less dense than an LLM summary. Elided content is recoverable through seq pointers and recall.

05Compatibility, maintenance and safety notes

  • Only one ctx.compaction implementation may be mounted per context; preset instances keep their own isolate realm.
  • For prose-heavy history, truncation can be less dense than an LLM summary. Elided content is recoverable through seq pointers and recall.
2026-08-142026-09-02v0.1.4

README claims pinned to a commit; runtime not tested.

06Frequently asked questions

Does compaction call a model?

No. The compiler uses deterministic text processing and retains original tokens.

Is direct installation sufficient for built-in presets?

In a session using the shipped cordis preset (creation mode), ask it to copy standard and change the copy’s compaction engine to dsh-compaction-instant; use that new preset.

How do I validate the copied DSH preset?

Start a session on the copied preset; the README identifies successful preset mounting as validation.

What is the main compaction trade-off?

For prose-heavy history, truncation can be less dense than an LLM summary. Elided content is recoverable through seq pointers and recall.

08Data and sources

github.comf688029Not specified by the author
  • Author-claimedgithub.comf688029b39aa…

    Instant, near-lossless context compaction for [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness)

This page is generated from the project’s public documentation, repository metadata and a structured parse of DSH Plugins; last verified on 2026-10-19. Found an error? Submit a correction.

🏆

Best DeepSeek Harness Plugins

Twelve plugins worth installing first — picked from the whole catalog, across every category.

AD

DSH Plugins is an independent community directory of DeepSeek Harness plugins. Not affiliated with or endorsed by DeepSeek. Third-party plugins are not security-audited — review the source before installing.

New DeepSeek Harness plugins, weekly. No spam.