i1j/context-assembler-DSH ↗★ 0
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.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:i1j/context-assembler-DSH说明文档
阅读完整 README ↗Configuration
The plugin is mounted via cordis.patch.yml and configured through the DSH profile's plugin config section. Key options (defaults shown):
| Config key | Default | Meaning |
|---|---|---|
tailN | 2 | trailing user turns kept verbatim (cache/recency protection) |
topicSwitchEntry | 0 | topic-switch Jaccard continuation threshold (0 = most conservative) |
topicSplitStartChars | 5000 | water level start: accumulated ctx chars begin discounting Jaccard |
topicSplitPeakChars | 20000 | water peak: force-split regardless of similarity |
jaccardPenaltyMax | 0.30 | max Jaccard discount in the linear zone |
topicSplitForceAtPeak | true | peak ⇒ unconditional split |
thresholdRatio | 0.8 | compaction pressure trigger ratio |
maxTokens | 8192 | compaction output budget |
injectionEnabled / injectionTokenLimit / injectionK | true / 500 / 1 | context injection switch, budget, candidate count |
toolTraceEnabled / llmTraceEnabled | true | deterministic tool-trace / llm observability projections |
toolRewriteEnabled / toolRewriteDryRun | true / false | wire-level tool-result rewrite; dry-run = assemble only |
handoffEnabled / handoffPressureRatio / handoffMinTurns | true / 0.8 / 6 | session handoff switch, trigger line, min-turn gate |
realityRecallEnabled / realityDbPath / realityTopK | false / ./ca_cache/ca_topics.db / 1 | reality recall injection (fail-open) |
oodaRewriteEnabled / oodaThinkBudget | false / 2000 | thought (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.