dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
⚡ Summary-free context window rollover, model-authored notes, and scoped history lookup plugin for DeepSeek Harness (DSH). Inspired by OpenAI Codex.
dsh-newwindows is a performance-oriented extension plugin for DeepSeek Harness (DSH/Cordis). Inspired by the modern OpenAI Codex runtime context architecture, it delivers Summary-Free Context Rollover, Model-Authored Notes, and Scoped Raw History Lookup.
Eliminate sluggish, lossy LLM recursive summarization and empower your agents with microsecond-level, deterministic context relay during long-horizon tasks.
startSeq = 1). Never loses core identity, system rules, or global tool specifications across window transitions.new_context tool declares exclusive execution. Latched state machines postpone compaction until the step boundary, guaranteeing all concurrent tool calls and results pair completely before rollover.| Evaluation Dimension | Traditional LLM Compaction (compaction-basic) | dsh-newwindows Rollover |
|---|---|---|
| Latency & Token Cost | Consumes 1k | Zero inference tokens, microsecond local surface replacement |
| Fidelity & Precision | Hallucination prone; loses exact paths, lines, and errors | Zero loss on key decisions via structured notes; raw logs kept intact |
| Prompt Caching | Rewriting chat history shatters backend KV cache | Discrete windows preserve deterministic system prefixes |
| Traceability | Ambiguous, flattened conversational history | Monotonic window chain tracked via UUIDv7 and sequential indexes |
| History Recyclability | Summarized history is permanently inaccessible | Dedicated bounded tool enables on-demand retrospective lookup |
cordis.patch.yml)Declare the plugin in your DSH bundle configuration:
- insert:
- id: dsh-newwindows
name: '@deepseek-ai/cordis-plugin-group'
group: true
isolate:
newWindows: true
config:
- id: dsh-newwindows-runtime
name: 'dsh-newwindows'
import { Context } from '@deepseek-ai/cordis'
import plugin from 'dsh-newwindows'
const ctx = new Context()
// Load plugin with custom configuration
await ctx.plugin(plugin, {
auto: true,
reminderThresholdRatio: 0.75,
overflowThresholdRatio: 0.90,
maxNotes: 30,
})
// Access registered services from context
const { notesStore, windowChain, engine } = ctx.newWindows
The plugin accepts the following parameters during initialization:
| Option | Type | Default | Description |
|---|---|---|---|
auto | boolean | true | Automatically track context usage and trigger overflow rollover |
reminderThresholdRatio | number | 0.75 | Budget ratio to emit a single-shot reminder to organize notes |
overflowThresholdRatio | number | 0.90 | Hard budget ratio to enforce context rollover |
maxNotes | number | 30 | Maximum number of notes stored per conversation |
maxNoteChars | number | 4000 | Hard ceiling for total note characters |
seedGoalPrompt | string | "Continue execution..." | Guidance prompt appended with active notes into the fresh window |
Once activated, dsh-newwindows equips the agent with three specialized tools:
note_actioncreate, update, delete, list.new_contextnext_goal to cleanly start a fresh window.lookup_raw_historyuser, assistant, tool).Licensed under the Apache-2.0 License. Core mechanisms inspired by the OpenAI Codex context management architecture.