← Back to Leaderboard
DNightFrost42

NightFrost42/dsh-compaction-weave

A DeepSeek Harness plugin that compacts context without losing access to original history

Engineering Health (Methodology)
A · 86/100
Maintenance Activity
● Updated today
Latest Release
v0.8.0
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption11/25
Release Cadence20/20
License Clarity20/20
CLI
Total Stars
★ 83
24h Growth
+1
7d Growth
+9
Forks
7

GitHub Star History

Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.

NightFrost42/dsh-compaction-weave Star History (2026-11-09 - 2026-12-04) DAILY STAR HISTORY (26-DAY D1 TELEMETRY) +82 in 25d · avg +3/day 87 44 0 2026-11-09: ★ 12026-11-11: ★ 12026-11-13: ★ 12026-11-15: ★ 12026-11-17: ★ 12026-11-19: ★ 22026-11-21: ★ 322026-11-23: ★ 612026-11-25: ★ 702026-11-27: ★ 752026-11-29: ★ 792026-12-01: ★ 802026-12-03: ★ 832026-12-04: ★ 83 ★ 83 11-09 11-21 12-04

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

DSH Compaction Weave is a native JavaScript ESM plugin that takes over DeepSeek Harness's built-in @deepseek-ai/dsh-compaction-basic, not a standalone inference server. Its bundled index and engine entrypoints, bundle-index.mjs and bundle-engine.mjs, use shared globalThis state for in-place upgrades. On a capacity trigger, a configured idle trigger or /compact, the engine resolves the route window and measures context in two views before selecting a compaction path.

Stage 1 uses hysteresis to fold eligible old tool output, read-only command entries and unsigned reasoning traces without a model call. If that is insufficient, checkpoint-compile reuses a JIT candidate when available or compiles a span with complete tool-call pairs into a v2 checkpoint. Deterministic A1 auditing and two size-reduction checks gate acceptance. The engine writes originals and attachments to a local zstd write-ahead archive before atomically replacing active history.

Key Capabilities & Differentiators

Summarization follows the current session model unless a separate provider and model are configured. The default balanced preset allows one JIT warm-up per cycle at or above 90% effective capacity when Stage 1 is insufficient. The default summary cap is 8,192 output tokens; shard concurrency defaults to two and falls back to one on rate limits. An engine-filled checkpoint section keeps up to four recent verbatim user excerpts under a 960-token default budget, and the format retains v1 compatibility.

For exact details omitted from the checkpoint, history_list enumerates archived ranges, history_search runs pure JavaScript BM25F over archived text and attachment indexes with batched queries[], and history_read slices originals by physical line or literal substring. Pause and resume preserve committed chunks; a changed policy requires confirmation before automatic continuation. context_compact queues incremental work at a safe tool-batch boundary: queued is an acknowledgement, not evidence of a completed compaction.

Trade-offs & Limitations

Weave trades a simpler summarization path for explicit requirement checks, durable history and recoverability. A1 can catch changes to booleans, CLI flags, exact scalars and hard polarity without a second LLM audit, but it is not a proof that every semantic nuance survived. Folding may avoid a summary call; JIT, retries and retrieval can still add work. Source isolation and credential redaction for workspace rereads do not make the full-fidelity archive safe to share.

In the published v0.8.0 small-window benchmark, retention was 93.83% for GPT-6.1 Sol and 94.96% for DeepSeek-V4.1-Flash. Compared with dsh-basic, both improved pooled accuracy and reduced end-to-end time, but the DeepSeek run cost 13% more. Both models completed the 100K long-window suite at 100%, with retention of 98.43%–99.14%; these are suite results, not service guarantees. Weave yields to presets with their own engine and does not support running alongside billion-context or other compaction plugins and proxies.

Hardware & Deployment Guide

Install into a DeepSeek Harness profile on Node.js >=24.9.0 and DSH >=0.2.2-rc.1 <1.0.0-0. Stop the target profile, run dsh plugin --profile web add dsh-compaction-weave with web replaced by the actual profile name, then restart it. DSH also accepts a local .tgz, including through the desktop plugin manager. An offline package changes how the plugin is installed, not whether the configured summary model needs a network connection.

From v0.7.2, the self-contained runtime entrypoints address stale submodule caching during hot upgrades. If an in-place upgrade from v0.7.0 or v0.7.1 fails, disable and uninstall the old plugin, fully restart DSH, then install v0.8.0. Saved settings apply to subsequent compactions without a restart; in-flight work keeps its original settings. Plan local disk capacity and access controls around retained messages and attachments. No plugin-specific GPU or VRAM requirement is specified.

Window sizing: Exact provider/model mapping takes precedence over adapter declaration, provider wildcard and fallback.
Low-cost first pass: Hysteretic Stage 1 folds eligible old content with zero model calls; default JIT allows one warm-up per cycle at or above 90% effective capacity.
Checkpoint format: Compact v2 uses four sections, preserves compatibility with v1 and inserts up to four recent verbatim user excerpts within a 960-token default budget.
Commit safeguards: Deterministic A1 audit and two size checks gate replacement; the zstd write-ahead archive is written before active history changes.
Original-history lookup: Pure JavaScript BM25F accepts batched queries[], while history_read retrieves source text and attachments by physical line range or literal substring.
Recovery: Persistent progress resumes without repeating committed chunks; billion-context migration creates a SHA-256 baseline backup.
Best For

Long-running DeepSeek Harness coding or research sessions where exact constraints, old tool output and resumable compaction matter more than a minimal setup.

Skip If

Your host is not DSH, you must keep a different compaction engine active, or you cannot retain original messages and attachments locally.

Reviewed on 2026-12-04 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

CLI
git clone https://github.com/NightFrost42/dsh-compaction-weave.git
cd dsh-compaction-weave
npm test
npm run check
npm run pack:release

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/NightFrost42/dsh-compaction-weave.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

NightFrost42/dsh-compaction-weave Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about dsh-compaction-weave

Where does Weave sit in the DSH request path?

Weave replaces @deepseek-ai/dsh-compaction-basic inside a compatible DSH profile. Its first stage folds eligible history without calling a model; if more space is needed, it compiles a checkpoint and writes the original messages to the local archive before replacing them in active history. Presets with their own compaction engine keep that engine and its /compact command.

What should I provision for runtime overhead and VRAM?

No GPU or VRAM requirement is specified for the plugin itself. Size the Node.js host for active history, indexing and compression work, and provision disk for retained messages and attachments. Summary generation uses the session model by default or a separately configured model; local inference hardware, provider charges and rate limits depend on that route.

Can we use Weave commercially in a self-hosted environment?

Yes. The plugin is MIT-licensed, which permits commercial use and redistribution subject to preserving the required notices. That does not cover model-provider terms or make inference local. Treat archives and diagnostic logs as potentially sensitive, and review the summary route and local data retention separately.

When should I choose Weave over dsh-basic or billion-context?

Weave is most compelling when exact requirements and old tool output need to remain recoverable after compaction. Against dsh-basic, the v0.8.0 small-window results show higher pooled accuracy for both tested models, but DeepSeek cost 13% more in that comparison. If you already use billion-context, /compact migrate can convert eligible histories after a backup; it does not make simultaneous operation supported.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining NightFrost42/dsh-compaction-weave? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature NightFrost42/dsh-compaction-weave on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare