DSH Plugins Marketplace

DSH Plugins

Plugins

/

Sessions & Messages

/

dsh-plugin-clm

m

dsh-plugin-clm

Manifest valid★ 1

Context Language Models (CLM) for DeepSeek Harness: Active editable context window mirrored to disk for pruning and token optimization.

hasBundlePatch

🧠 dsh-plugin-clm (Context Language Models for DeepSeek Harness)

Active editable context window mirrored to disk for DeepSeek Harness (DSH).
Inspired by Meta CLM (Context Language Models) & pi-clm.

License: MIT DeepSeek Harness


Overview

dsh-plugin-clm transforms the conventional monolithic, append-only context window of DeepSeek Harness into an active, disk-mirrored, and editable context document (.dsh/clm/LIVE_CONTEXT.md).

In standard LLM conversational loops, the chat history grows indefinitely, accumulating bloated tool dumps, stale search outputs, and abandoned debugging attempts. This consumes thousands of tokens and degrades model reasoning over long conversations.

With CLM active, the agent and user can actively prune, compress, and curate the live conversational state on disk before each generation step.


✨ Key Features

  • 🔄 Real-Time Context Synchronization: Mirrors the ongoing session context into a structured Markdown document (.dsh/clm/LIVE_CONTEXT.md).
  • ✂️ Active Context Pruning: Enables the model to compress extensive terminal dumps and tool results into concise summary notes.
  • 🎛️ Native UI Control: Seamlessly integrated [ 🧠 CLM ON 🟢 / CLM OFF ⚪ ] toggle button in the chat input bar, operating cleanly in the background.
  • 🛡️ Token Overflow Guard: Automatically enforces context budgets (budgetTokens: 64000, reserveTokens: 4096) to prevent sudden context overruns.
  • ⚡ Per-Session State Persistence: Remembers enabled/disabled state across app reloads and per conversation.

🚀 Installation

In your DeepSeek Harness desktop profile (~/.dsh/profiles/desktop/package.json):

{
  "dependencies": {
    "dsh-plugin-clm": "^1.0.2"
  },
  "dsh": {
    "profile": {
      "bundles": [
        "dsh-plugin-clm"
      ]
    }
  }
}

Or install via CLI:

dsh plugin add dsh-plugin-clm

🛠️ Slash Commands

CommandDescription
/clm onEnables active editable context mirroring for the current session
/clm offDisables CLM mode and falls back to standard append-only context
/clm statusDisplays estimated context tokens, revisions, and mirror file path
/clm resetClears and regenerates a clean mirror state for the session

📄 Mirror Document Structure (LIVE_CONTEXT.md)

# CONTEXT LANGUAGE MODEL (CLM) - ACTIVE MIRROR

[[CTX_NOTES]]
- Objective: Refactor authentication architecture.
- Decisions: Retain JWT tokens in protected in-memory store.

[[CTX_TURN document=sess-1 index=1 role=user]]
Check the server logs for recent authentication errors.

[[CTX_TURN document=sess-1 index=2 role=assistant]]
Examining logs:
[Tool output summarized to the 3 relevant failure entries]

👤 Author & License

Developed by Maximiliano Roldán (@maxeone).
Distributed under the MIT License.

Comments

Loading…

From the same category

billion-context

by ranxianglei

基本稳定可用 100K tokens is enough. Universal context-compression proxy for ALL AI coding agents,10w上下文足矣

Sessions & MessagesManifest valid

★ 2.5k

↓ 650.1k/wk

MIT

TypeScript

Oct 24, 2026

dsh plugin --profile web add billion-context

A DeepSeek coding agent harness: persistent shell, Ultra subagents, auto approval, Chrome MCP and session telemetry

Sessions & Messages

★ 1k

MIT

JavaScript

Index only — not installable

by Han-1413141

DeepSeek Harness session cost meter plugin: session/daily cost, budget, history, OpenCode Go quota, official & custom-provider balance, Codex-like token heatmap, peak/off-peak pricing with pre-switch

Sessions & MessagesManifest valid

★ 507

↓ 26k/wk

MIT

JavaScript

Oct 23, 2026

dsh plugin --profile web add dsh-cost-meter

by Nwflower

Import 14+ external agent chat histories (Claude Code, Codex, ChatGPT, Cursor, Gemini, Reasonix, opencode, ZCode, Grok Build, OpenClaw, Pi, Hermes, Kimi CLI, DSH) into DeepSeek Harness as resumable se

Sessions & MessagesManifest valid

★ 249

MIT

JavaScript

Oct 23, 2026

dsh plugin --profile web add dsh-chat-import

by MichengAI

DSH Archive Manager — 在 DeepSeek Harness 中安全查看、恢复和管理已归档会话 · Safely view, restore, and manage archived sessions in DSH

Sessions & MessagesManifest valid

★ 219

↓ 17.2k/wk

Apache-2.0

JavaScript

Oct 23, 2026

dsh plugin --profile web add @michengai/dsh-archive-manager

by SiriLee

DSH 插件:真正便捷无感的同窗口内对话回退,从不新建分支;自带轻量工作区备份,可一并还原文件(完整 Claude Code /rewind 语义)。 · DSH plugin: genuinely effortless in-window conversation rewind — never forking a new session; ships a lightweight workspac

Sessions & MessagesManifest valid

★ 180

↓ 5.6k/wk

MIT

TypeScript

Oct 23, 2026

dsh plugin --profile web add dsh-rewind-plugin