DSH Marketplace

billion-context-dsh

Tyan66666/billion-context-dsh

Model-driven context compression (Active Context Pruning) for DeepSeek Harness: the model decides when and what to compress.

11120TypeScriptMITSource

Install

Add billion-context-dsh to DeepSeek Harness

via npm

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

via GitHub · npm package

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

What happened when we ran it

Installed cleanly when we ran it

Every command here is run in a throwaway container against a clean profile, and the result is whatever the harness recorded — not a guess from the source. Last run 19d ago.

Show it in your README

install verified — dshmarketplace

For maintainers: the badge serves this listing's latest sandbox verdict, so a re-run updates it on its own — and it links readers to the full result here.

Due diligence

Before you install billion-context-dsh

  • Source of record: Tyan66666/billion-context-dsh — present in the community registry that DSH's own plugin market installs from.
  • Licensed under MIT.
  • Detected: terminal surface. Read the source before granting these.
  • A listing here is not a security review. Plugins run with your agent's permissions.

The AI take

What it is — It provides model-driven context compression for DeepSeek Harness, letting the model decide when and what to compress.

Who it is for — When using DeepSeek Harness to handle long conversations where context is exhausted and you need to retain key details from early messages, this plugin suits you. Users who do not want the model to decide compression can continue using DSH's built-in automatic compression.

Watch out — As a test version plugin, please do not use it in production or engineering environments. Sandbox test passed: it was installed in a fresh profile and registered into the Harness profile. No obvious pits found.

The verdict — I would install it because it turns compression ranges into recoverable checkpoints where key conclusions keep accumulating.

Generated by grok-4.6, and a starting point rather than a verdict. Where it says a plugin installs or does not, that is from a real run in a clean profile — everything else is read off the repository. Trust the source over this.

What billion-context-dsh does

Layered message slabs are selectively folded into checkpoints while original forms remain in a parallel archive.

billion-context-dsh is a DeepSeek Harness plugin that adds model-driven context compression through Active Context Pruning. Rather than applying a fixed truncation threshold or automatically generating a replacement summary, DeepSeek Harness gives the model a compress tool and lets it choose when to compress and which sequence range to cover. The model writes the summary, while an automatic policy only injects a nudge through the agent/pre-step hook.

billion-context-dsh maps compression onto DeepSeek Harness's append-only session surface. A compression becomes a persistent surfaceOp: { op: 'replace' }: the summary remains visible as a checkpoint, while the original messages stay in the session log. decompress restores hidden content, search_context searches summaries and source text, and acp_status reports context composition, block accounting and checkpoint mappings. The plugin also supports repeated compression for tiered distillation and rebuilds its block ledger from the log after restart.

This is intended for long-running agent tasks where selective, recoverable context matters. It is not a replacement for every setup: DeepSeek Harness's built-in compaction-basic must be disabled wherever this backend is enabled, because two providers of ctx.compaction conflict. The README marks the project and DeepSeek Harness as test versions. The plugin reaches the terminal/durable surface to read and update the append-only session record, so it should be reviewed before installation in an agent with sensitive session or terminal permissions.

billion-context-dsh documentation

Configuring billion-context-dsh

DeepSeek Harness loads the bundle into a profile such as web; the bundle applies the compaction-acp composition entry at startup. Custom deployments can add the entry to ~/.dsh/profiles/web/cordis.patch.yml:

Key Behaviour
modelContextLimit Optional model context limit. If omitted, the plugin detects the model window and falls back to 128000.
prompts Optional prompt overrides for nudge text, context decomposition, growth and batch notices, tier distillation, range tables, the ACP system-prompt section and tool descriptions.

Prompt templates accept documented named placeholders such as {pct}, {philosophy} and {surface}. Placeholder spelling is checked during construction and causes startup failure if invalid. An empty string or null has the documented slot-specific meaning.

Commands provided by billion-context-dsh

DeepSeek Harness exposes four model tools:

  • compress replaces a startSeq–endSeq range with the model's summary. Boundaries are balanced to tool-call/result pairs. Compressing an existing summary creates tiered distillation.
  • decompress restores a compressed block as read-only content. It accepts an acp_status block reference such as bN or a compaction id.
  • search_context searches block summaries and hidden source text, then links matches back to their blocks.
  • acp_status reports visible tool, text and summary proportions, the compression ledger, nudge decision and active checkpoint bN → seq mappings. It supports scope, view, tool, sort and limit filters.

The bundle also adds the /acp command.

How billion-context-dsh behaves

DeepSeek Harness derives each model request from the append-only session surface. The agent/pre-step hook injects a nudge based on context pressure; compactIfNeeded returns null, so the policy does not force an automatic summary. Block state is held in memory and rebuilt from the session log, with no sidecar file. Shadowed-token accounting uses DeepSeek Harness's ctx.tokenMeter.measure when available, with the mirrored fallback in src/host-tokens.ts.

Requirements and limits

Enable only one provider of ctx.compaction in each realm. For global use, disable compaction-basic before inserting compaction-acp; for a single agent preset, disable or remove dsh-compaction-basic in that realm. The README identifies version v0.2.11 as a test release and advises against production use. It does not document an operating-system restriction or environment variables.

Written from the project's own documentation and kept in sync with it. Where the two disagree, the source is authoritative — read the README on GitHub

Same category

Alternatives to billion-context-dsh

coding-agents

vectorize-io

41k

Hindsight, agent memory that learns: long-term project memory with auto recall and retain, knowledge pages, deep reflection, and per-repo memory banks.

No one-line install — this plugin lives inside a larger repository and publishes no npm package.

GitHub sourcePython10d ago

AI review

coding-agents

What it is — Hindsight provides long-term project memory management for coding agents.

Who it is for — Developers using AI coding assistants such as Claude Code for code development should install it. If you use a non-Python language for the agent, you can choose other implementations.

Watch out — The plugin requires an API key or token and will execute shell commands. Sandbox testing has not been performed. No obvious pitfalls found.

The verdict — Without sandbox testing results, I would not install it.

Generated by grok-4.6, and a starting point rather than a verdict. Where it says a plugin installs or does not, that is from a real run in a clean profile — everything else is read off the repository. Trust the source over this.Read the source
2Details
39k

OpenViking memory and context bundle for DeepSeek Harness: pre-step auto-recall and profile injection, session capture, `viking://` URI guarding, and recall/write memory tools backed by an OpenViking server.

Installed cleanly when we ran it

npm packagePython9d ago

AI review

dsh-memory-plugin

What it is — dsh-memory-plugin is an OpenViking memory and context bundle plugin.

Who it is for — When you use the DSH plugin system, people who need OpenViking memory and context bundle are suitable to install dsh-memory-plugin. For people who do not need OpenViking as context database, they can use other plugins.

Watch out — Sandbox test passed, installed in a fresh profile and registered into profile by harness. It will execute shell commands. No obvious pitfalls found.

The verdict — I would install it because it can be registered by harness after installation in a fresh profile.

Generated by grok-4.6, and a starting point rather than a verdict. Where it says a plugin installs or does not, that is from a real run in a clean profile — everything else is read off the repository. Trust the source over this.Read the source
1Details

ReMe

agentscope-ai

3.6k

Connects DeepSeek Harness to ReMe's local-first, self-evolving personal knowledge base: automatically captures completed main-agent conversations as user-owned Markdown memory, searches conversations and source material through reme_search with BM25, optional embeddings, and wikilink expansion, and schedules daily memory consolidation.

No one-line install — this plugin lives inside a larger repository and publishes no npm package.

GitHub sourcePython2d ago

AI review

ReMe

What it is — Integrates ReMe's local-first self-evolving personal knowledge base with DeepSeek Harness.

Who it is for — When running agents using DeepSeek Harness that require automatic capture of conversations as Markdown memory, this is suitable. If you do not need shared local workspace across agents, you can skip this plugin.

Watch out — No obvious pitfalls found. The plugin will execute shell commands.

The verdict — I would install it, but only if shell command execution is permitted.

Generated by grok-4.6, and a starting point rather than a verdict. Where it says a plugin installs or does not, that is from a real run in a clean profile — everything else is read off the repository. Trust the source over this.Read the source
1Source

typescript

agentscope-ai

3.5k

Connects DeepSeek Harness to ReMe's local-first, self-evolving personal knowledge base: automatically captures completed main-agent conversations as user-owned Markdown memory, searches conversations and source material through reme_search with BM25, optional embeddings, and wikilink expansion, and schedules daily memory consolidation.

No one-line install — this plugin lives inside a larger repository and publishes no npm package.

GitHub sourcePython22d ago

AI review

typescript

What it is — The plugin integrates DeepSeek Harness with ReMe's knowledge base to automatically capture main-agent conversations as user Markdown memory and schedule consolidation.

Who it is for — When managing main-agent conversations with DeepSeek Harness and wanting to capture completed dialogues as user-owned Markdown memory, this plugin provides integration. For users who do not want to share the workspace with ReMe, independent knowledge base tools offer a different perspective.

Watch out — The plugin requires manually allowing the build script when installing from source. Sandbox testing has not been completed. The plugin executes shell commands.

The verdict — If I am willing to manually allow the build script from source, I would install it because it connects conversations to persistent Markdown memory.

Generated by grok-4.6, and a starting point rather than a verdict. Where it says a plugin installs or does not, that is from a real run in a clean profile — everything else is read off the repository. Trust the source over this.Read the source
1Source

MemSearch

zilliztech

2.6k

Shared Markdown memory for DSH and other coding agents, with automatic capture, pre-step context injection, searchable recall, and memory-to-skill self-evolution through a review panel.

No one-line install — this plugin lives inside a larger repository and publishes no npm package.

GitHub sourcePython26d ago

AI review

MemSearch

What it is — MemSearch provides shared Markdown memory for DeepSeek Harness coding agents. It supports automatic capture, pre-step context injection, searchable recall, and memory-to-skill self-evolution through a review panel.

Who it is for — When building complex coding agents with DeepSeek Harness that require persistent context across sessions, MemSearch offers value. If your work involves only short-lived conversations without cross-platform memory needs, you can skip it.

Watch out — It will execute shell commands. Sandbox testing has not been done yet; no obvious issues were identified.

The verdict — I would install it because it enables memory to evolve into reusable skills, but only if you are willing to use it via subdirectory installation and accept shell command execution as a trade-off.

Generated by grok-4.6, and a starting point rather than a verdict. Where it says a plugin installs or does not, that is from a real run in a clean profile — everything else is read off the repository. Trust the source over this.Read the source
1Source

deja-vu

vshulcz

975

Memory for coding agents — Claude Code, Codex, Cursor and 17 others. Indexes the sessions they already wrote to disk, including months from before you installed it, and recalls them in any of them. No LLM, no embeddings, one local Go binary.

Installed cleanly when we ran it

GitHub sourceGo14d ago

AI review

deja-vu

What it is — Indexes the sessions coding agents have written to disk for recall in Claude Code and others.

Who it is for — Users working in Claude Code who need to recall solutions from months ago. Users whose work does not involve multi-session coding workflows also do not need it.

Watch out — Requires manual approval of the build script when installing from source. Sandbox test passed. No obvious issues found.

The verdict — I would install it because it recalls existing session history from disk without needing additional model calls.

Generated by grok-4.6, and a starting point rather than a verdict. Where it says a plugin installs or does not, that is from a real run in a clean profile — everything else is read off the repository. Trust the source over this.Read the source
2Source