i1j/context-assembler-DSH0

context-assembler-dsh

Context Assembler DSH V0.99 — Context Assembler plugin for DeepSeek Harness (dsh): context compaction, cache-friendly topic-block management, water-pressure topic splitting, tool trace/rewrite, handoff planning and reality recall injection.

包名
context-assembler-dsh
版本
0.99.0
许可证
MIT
最近更新
2026年8月17日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:i1j/context-assembler-DSH

Configuration

The plugin is mounted via cordis.patch.yml and configured through the DSH profile's plugin config section. Key options (defaults shown):

Config keyDefaultMeaning
tailN2trailing user turns kept verbatim (cache/recency protection)
topicSwitchEntry0topic-switch Jaccard continuation threshold (0 = most conservative)
topicSplitStartChars5000water level start: accumulated ctx chars begin discounting Jaccard
topicSplitPeakChars20000water peak: force-split regardless of similarity
jaccardPenaltyMax0.30max Jaccard discount in the linear zone
topicSplitForceAtPeaktruepeak ⇒ unconditional split
thresholdRatio0.8compaction pressure trigger ratio
maxTokens8192compaction output budget
injectionEnabled / injectionTokenLimit / injectionKtrue / 500 / 1context injection switch, budget, candidate count
toolTraceEnabled / llmTraceEnabledtruedeterministic tool-trace / llm observability projections
toolRewriteEnabled / toolRewriteDryRuntrue / falsewire-level tool-result rewrite; dry-run = assemble only
handoffEnabled / handoffPressureRatio / handoffMinTurnstrue / 0.8 / 6session handoff switch, trigger line, min-turn gate
realityRecallEnabled / realityDbPath / realityTopKfalse / ./ca_cache/ca_topics.db / 1reality recall injection (fail-open)
oodaRewriteEnabled / oodaThinkBudgetfalse / 2000thought (OODA) assembly (off by default until validated)

Local 4B backfill endpoints (toolBackfillUrl, realityEmbedUrl, oodaBackfillUrl, …) default to an Ollama-compatible local endpoint (http://127.0.0.1:11435) and are all fail-open.