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.

AI 분석

核心用途是优化大模型上下文管理。通过智能压缩、主题拆分和缓存优化,减少 Token 消耗并提升响应质量。适合长对话、复杂多任务及对 Token 成本敏感的 DSH 用户。

패키지
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.