context-assembler-DSH
Run the following command in DeepSeek Harness:
dsh plugin install i1j/context-assembler-DSH
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install i1j/context-assembler-DSH in DeepSeek Harness to install the plugin; source code is available at https://github.com/i1j/context-assembler-DSH
About this plugin
Every turn, a cloud LLM must re-ingest the entire conversation history. The longer the session grows, the more diluted the information becomes and the steeper the token bill. Context Assembler DSH inverts the economics: the local small model already has idle compute between turns, so it spends that time compressing and reassembling context on the client side, offloading what would have been a peak-cost cloud operation onto local idle cycles.
The core mechanism revolves around topic blocks. The session is split into blocks in real time; within each block a summarized version of the history is built and its prefix kept stable so the cloud prompt cache stays warm. As accumulated characters rise, a water-pressure model progressively lowers the Jaccard similarity threshold, force-splitting at peak to prevent an over-long single-topic session from forfeiting the cache advantage. On top of that, the plugin provides deterministic tool-round compression, topic grading and freezing on switch, reality-recall background injection, and pressure-triggered handoff planning, all as pure computation with zero host dependencies.
It is built for developers running DeepSeek Harness who already have an Ollama-compatible 4B-class model locally and are feeling the token pinch in long multi-turn agentic workflows. A GPU with roughly 10 GB of VRAM runs comfortably; CPU-only setups also work, at the cost of slower assembly.
Screenshots
Use Cases
- Multi-turn agent sessions grow long and cloud token costs keep climbing
- A local Ollama-compatible 4B model is already running and can assist context curation
- Multi-topic conversations need stable prompt-cache hits to avoid redundant billing
Best For
- Developers building multi-turn agent workflows on DeepSeek Harness
- Engineers with a local Ollama-compatible endpoint and roughly 10 GB GPU VRAM
- Tech leads whose agent task chains are long enough that token cost lands in the daily budget
Related Plugins
A method pack that makes AI coding agents plan against your real baseline, prove completion with fresh evidence, and reduce reworks and unsafe changes.
Turns the DeepSeek Harness session into a captain that builds a durable sub-agent team, splits goals into dependency-aware tasks, and coordinates work via direct messages and a live Web UI.
Gives coding agents design judgment, letting Claude Code, Cursor, and 70+ agents generate and iterate high-quality UI, presentations, and graphics right from the terminal.
Run the Pi ecosystem's plugins on DeepSeek Harness, unmodified, via a compatibility layer that implements Pi's public extension ABI on DSH's native services.



