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.

15723TypeScriptMITSource

Install

Add billion-context-dsh to DeepSeek Harness

Install into

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

DeepSeek Harness 0.2.2-rc.5 refuses the latest release

From 0.2 DeepSeek Harness checks a plugin's dsh range before installing anything, and refuses the whole command when the running version is outside it. The latest release asks for >=0.1.5-alpha.1 <0.2.1-0, 0.2.0-rc.2; we ran 0.2.2-rc.5.

No release of it accepts DeepSeek Harness 0.2.2-rc.5 yet. `dsh plugin allow-version … --accept-risk` forces one in, at the risk the harness itself warns about; otherwise wait for an update.

Why DeepSeek Harness refuses plugins, and every way around 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 3d agoon DeepSeek Harness 0.2.2-rc.5.

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.

Security

What installing billion-context-dsh runs

Build scripts

Not measured — DSH refused the latest release before running anything.

Source: our sandbox install on DeepSeek Harness 0.2.2-rc.5, 3d ago.

Install hooks

package.json declares no preinstall, install or postinstall script.

Source: package.json on GitHub, read at our last sync. prepare is not recorded; it runs only on a GitHub install, and shows up under build scripts when pnpm blocks it.

README mentions

shell commands (bash, exec, spawn …)

Source: a keyword match on the README — a hint about what the plugin touches, not an analysis of its code.

Not an audit. These are the record of one install and two text scans; nobody has read this plugin's code on your behalf. 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

53k

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 sourcePython1mo 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
41k

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 packagePython1mo ago

AI review

dsh-memory-plugin

What it is — Connects DeepSeek Harness to an OpenViking server for pre-step recall, profile injection, session capture, viking:// URI guarding, and memory read/write tools.

Who it is for — You keep revisiting the same repo in DeepSeek Harness and lose conventions across sessions, with OpenViking as the place those should live. If in-repo docs and rule files already are your context, or you only open throwaway chats, skip it.

Watch out — It installed on a fresh profile and the harness registered it. A reachable OpenViking server is required, and it executes shell commands.

The verdict — I'll turn it on: the product for me is recall happening before the step, not two more tools the agent might ignore.

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
12k

Local-first memory plugin for DeepSeek Harness: layered L1/L2/L3 memory with automatic capture, manual memos_* retrieval tools, and a built-in memory viewer.

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

GitHub sourceTypeScript27d ago

AI review

memos-local-plugin

What it is — Hooks DeepSeek Harness to on-device MemOS memory so a turn can be captured, recalled around the next task, queried with memos_* tools, and inspected in a viewer.

Who it is for — You keep driving the same repo inside DeepSeek Harness and each new agent turn starts blind because prior decisions are not stored. If memory has to live in a shared team store rather than on your machine, this plugin is the wrong place for it.

Watch out — There is no published package; you wire it up from a subdirectory of the MemOS repo. You must supply an API key or token, and it executes shell commands.

The verdict — The subdirectory tax only pays off if DSH is already where the work happens—I would not install this as a memory experiment.

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

typescript

agentscope-ai

3.8k

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 sourcePython6d 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

ReMe

agentscope-ai

3.8k

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 sourcePython18d 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

MemSearch

zilliztech

2.9k

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 sourcePython10d 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